In Pine Script, making a separate pane permits you to show a number of charts or indicators in a single window. This may be helpful for evaluating totally different knowledge 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 can be displayed within the pane. For instance, the next code creates a brand new pane that’s half the peak of the primary pane and shows the shifting common of the shut value:
//@model=4study(“My Script”, overlay=true)// Create a brand new panenewPane(h=plot.peak / 2)// Plot the shifting common on the brand new paneplot(ma(shut, 20), title=”Transferring Common”, shade=shade.purple)