From the recent candle till few candles back i should be able to plot peaks (swing high) or troughs (swing low) without using built in peaks or troughs function since those refer to future data. Can you point me to an article or any kind of help is much appreciated ?
Built in HHV and LLV functions allow to read highest high or lowest low of n-past bars.
HHV( array, periods ) https://www.amibroker.com/guide/afl/hhv.html
LLV( array, periods ) https://www.amibroker.com/guide/afl/llv.html
An alternative involves delaying the response of the indicator as explained in link below
http://www.amibroker.com/members/traders/11-2003.html
1 Like