I'm using the swing indicator in my custom indicator, to calculate high low points for a Fib Extension calculation. I use say high bar [3] and low bar [2] and it calculates a zone for me.
It works well, until I realised using the swing indicator it's possible to get multiple high points in a row, or multiple lows, so doesn't always go high - low - high etc. sometimes low - low - high etc
Is it possible to code that if there is multiple highs or lows in a row that it uses the highest one and ignores the lower one??
Comment