I'm a newbie with ninjascript and have been fiddling with a ninjascript extension to get it to do what i want (basically a series of SMA arithmetic calculations) and am kind of there in that i have created a series of SMA based algorrithms which all plot correctly in a chart and appear in market analyser BUT now i have so many lines plotted i need to reduce them to just 1 of the 4 to be plotted and I'm struggling with how to do it.
To add additional series I figured out i need to add the following code :
Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "TallCandleHeight"));
TallCandleHeight.Set(CandleHeight[0] * 1.46);
[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 TallCandleHeight
{
get { return Values[3]; }
I am assuming that the Add noew plot automatically defines the series so I am wondering what to replace this with so that i still get the underlying series data in the chart (detail box) and market analyser but without plotting on the chart
thx for any help
ian
Comment