Alb Average - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

A version of the average that is calculated using an adaptive (variable) period instead of a fixed-length average. This version uses an adaptive backtracking method
adaptive backtracking
Adaptive Lookback is a true market driven indicator that determines the period of a variable lookback of many different indicators, rather than a traditional fixed period chart.
It is based on the frequency of market swings—the time between swing highs or swing lows. A swing high is defined as two consecutive higher highs followed by two consecutive lower highs; a swing low is defined as a low defined by two consecutive lower lows followed by two consecutive higher lows. Since swing points are often accompanied by reversals, they occur more often in volatile markets than trends.
The adaptive lookback period is determined as:
This allows variable lookback periods to grow in calm or trending markets and to shorten in range-bound and choppy markets. For a trend following system, you want the opposite to prevent being zigzag, so this indicator and its use as a period correction is more suitable for short-term traders and counter-trend systems (so, in all systems, the maximum speed of reaction and signal is required).
Calculate average

Attachment download
📎 alb_average.mq5 (13.61 KB)
Source: MQL5 #22229
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •