How do I not get the value to plot? here is some of my code to see where I am going wrong.
protectedoverridevoid Initialize()
{
Input = Median;
Add(new Plot(Color.Green, PlotStyle.Hash, "UpTrend"));
Add(new Plot(Color.Red, PlotStyle.Hash, "DownTrend"));
Add(new Plot(Color.Red, PlotStyle.Hash, "buysellTrend")); // +1 uptrend / -1 downtrend
CalculateOnBarClose = true;
.....
.....
#region Properties
[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 buysellTrend
{
get { return Values[2]; }
}
Thanks
Comment