Not sure about Zigzag direction at the current bar in a backtest - if the Close[0] doesn't exceed the Deviation Threshold,
- is the Zigzag bar directionless (i.e. horizontal) or
- does it assume the value of Close[0]. This might point upward, but if the next bar closes below the Deviation Threshold, ZigZag would point downward.
Basically, if i have a rule such as
Buy when ZigZag[0] > ZigZag[1]; //
can this be backtested? Or, will ZigZag[0] change direction depending on value of Close[-1]
thx
Kiran
Comment