The attached picture shows price action overlaid with SMA(20) and Swing(20). I am trying to isolate the first bar of of each SwingHigh and SwingLow, as illustrated with white dots. Once located these points would have to be referenced from latest bar (i.e. currentbar, as the current bar changes though the passing of time).
Any ideas on how to isolate the first bar of each swing high/low, would be greatly appreciated.
Thanks
Shannon
Comment