I have an indicator that I coded and I simply want one variable within that indicator to plot on a chart. When applying the indicator to a chart nothing plots at all...I don't understand why. The variable I want to plot is called "VarStok".
In my "Initialize" area I have this code:
Add(new Plot(Color.FromKnownColor(KnownColor.PaleTurquoise ), PlotStyle.Line, "VarStoK"));
In my "OnBarUpdate" area I have this code:
StVarK = SMA(myDataSeries, sl)[0]; Print("Current StVarK = " + StVarK);
myDataSeries3.Set(StVarK);
double VarStoK = SMA(myDataSeries3, D)[0];
myDataSeries4.Set(VarStoK); Print("Current VarStoK = " + VarStoK);
In my "Properties" area I have this code:
#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 VarStoK
{
get { return Values[0]; }
}
Any help appreciated...
Comment