public class BunceIndicator : Indicator
{
private ZigZag zigZag;
private Bollinger bollinger;
private Series<double> zigZagHighs;
private Series<double> zigZagLows;
private Series<int> zigZagHighBars;
private Series<int> zigZagLowBars;
then
else if (State == State.Configure)
{
zigZagHighs = new Series<double>(this);
zigZagLows = new Series<double>(this);
zigZagHighBars = new Series<int>(this);
zigZagLowBars = new Series<int>(this);
}
and then in onbarupdate
i am stuck I want to find 3 consecutive highs and 2 lows

Comment