In Pine Script, making a separate pane lets you show a number of charts or indicators in a single window. This may be helpful for evaluating totally different information units or viewing a number of time frames concurrently. To create a separate pane, you need to use the `newPane()` operate. This operate takes two arguments: the peak of the brand new pane and the supply of the info that will likely be displayed within the pane. For instance, the next code creates a brand new pane that’s half the peak of the principle pane and shows the transferring common of the shut worth:
//@model=4study(“My Script”, overlay=true)// Create a brand new panenewPane(h=plot.top / 2)// Plot the transferring common on the brand new paneplot(ma(shut, 20), title=”Shifting Common”, shade=shade.purple)