View Full Version : More than 4 Plots for an Indicator?
dowhk
02-05-2010, 04:47 PM
Hi,
Please help me:
How to plot more than 4 plots(default setting) in an Indicator?
I want 7 plots in an indicator.
I added more plots in the code, but they do not appear in the chart although they are listed in the indicator menu box.
NinjaTrader_RyanM
02-05-2010, 05:41 PM
Hello Dowhk,
You have to expand the properties region and add code for each plot:
[Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
[XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
public DataSeries Plot5
{
get { return Values[5]; }
}
This is for Plot5 (would actually be the 6th plot if using convention 0-5)
Note the Values[] index increases by one for each plot you need to add
dowhk
02-05-2010, 06:17 PM
Hello Dowhk,
You have to expand the properties region and add code for each plot:
This is for Plot5 (would actually be the 6th plot if using convention 0-5)
Note the Values[] index increases by one for each plot you need to add
Hi Ryan,
Thank you very much.
It works !!