I want to work with lat four swing indicator values. How do i obtain them?
I created this series but its not right, when i print they dont come up as last 3 values that swing indicator laid on the chart...
Thank you
private Series<double> myDoubleSeries;
in dataloaded
myDoubleSeries = new Series<double>(this);
and in barupdate
myDoubleSeries[0] = High[Math.Max(0, Swing(5).SwingHighBar(0, 1, 10))];
myDoubleSeries[1] = High[Math.Max(0, Swing(5).SwingHighBar(0, 2, 10))];
myDoubleSeries[2] = High[Math.Max(0, Swing(5).SwingHighBar(0, 3, 10))];
Print("TmyDoubleSeries[0] " + myDoubleSeries[0]);
Print("TmyDoubleSeries[1] " + myDoubleSeries[1]);
Print("TmyDoubleSeries[2] " + myDoubleSeries[2]);
Comment