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 completely different information units or viewing a number of time frames concurrently. To create a separate pane, you should utilize the `newPane()` perform. This perform takes two arguments: the peak of the brand new pane and the supply of the info that shall 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 transferring common of the shut worth:
//@model=4study(“My Script”, overlay=true)// Create a brand new panenewPane(h=plot.peak / 2)// Plot the transferring common on the brand new paneplot(ma(shut, 20), title=”Shifting Common”, colour=colour.crimson)