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 should use the `newPane()` operate. This operate takes two arguments: the peak of the brand new pane and the supply of the information that shall 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 shifting common of the shut worth:
//@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”, coloration=coloration.purple)