How to plot Moving ...
 
Notifications
Clear all

How to plot Moving Average indicator below the main chart?

3 Posts
2 Users
1 Likes
708 Views
ZaQ
 ZaQ
(@rhanz)
Posts: 15
Active Member User
Topic starter
 

It seems that all Moving Average Indicator are plotted in the main chart? Is there a way to plot it below?

 

TYIA.

 

ZaQ

 
Posted : 19/04/2021 9:55 am
Topic Tags
Mike
 Mike
(@vanguardai)
Posts: 70
Co-Founder Admin
 

Yes you can by editing the script. 

Here is the syntax:
plot(indicator name, chart type, color, destination pane)

if you want it to be placed in the charts, the destination pane is "main" and written like this
plot(MA,line,red,main)

otherwise you can create your own pane name and throw in whatever indicators you want to show up in that pane, for your request, let's simply name it MA. An example is shown below

plot(MA10,line,red,MA)
plot(MA30,line,blue,MA)

1618797694-MA-pane.png
This post was modified 5 years ago by Mike
 
Posted : 19/04/2021 10:01 am
ZaQ reacted
ZaQ
 ZaQ
(@rhanz)
Posts: 15
Active Member User
Topic starter
 
Posted by: @vanguardai

Yes you can by editing the script. 

Here is the syntax:
plot(indicator name, chart type, color, destination pane)

if you want it to be placed in the charts, the destination pane is "main" and written like this
plot(MA,line,red,main)

otherwise you can create your own pane name and throw in whatever indicators you want to show up in that pane, for your request, let's simply name it MA. An example is shown below

plot(MA10,line,red,MA)
plot(MA30,line,blue,MA)

1618797694-MA-pane.png

Tested and working perfectly. Thank You!

 
Posted : 19/04/2021 10:46 am
Share: