Closed kfreskgard closed 2 years ago
If you have the same candle, setting new high and low, twice in a row changed or direction will not by updated resulting in an extra pat in the same direction. Final zigzag would be something like HLLHL, causing a division by zero later on.
changed
direction
pat
No, the changed variable is changed after a new high or new low is found, so there will not be HH or LL
If you have the same candle, setting new high and low, twice in a row
changed
ordirection
will not by updated resulting in an extrapat
in the same direction. Final zigzag would be something like HLLHL, causing a division by zero later on.