Trend Detection Index of Averages (MT5)
Trend Detection Index of Averages (TDIA) builds a composite trend index from multiple moving‑average families (EMA/SMA/WMA, etc.). The index reads direction, strength, and transition risk with zero‑line flips and slope/color cues in MetaTrader 5.
What it shows
- Composite index of average‑based signals → bull/bear regime via zero line.
- Slope/Color to visualize trend acceleration/deceleration.
- Filters for chop (flat index) vs impulse (rising/falling with breadth).
- (Optional) arrows/alerts — zero flips, level exits, slope changes, MTF confirmation.
Trade ideas
- Flip → first pullback: after a zero‑line flip up, buy the first dip while TDIA stays above zero; mirror for shorts.
- Ride the slope: when slope > 0 and price above structure, pyramid on higher‑low hooks; exit on slope loss.
- Range fade: if TDIA is flat/oscillating around zero, fade extremes back to mean/structure.
- Confluence: add S/R or higher TF MA; TDIA slope keeps the bias obvious.
Inputs that matter
- Base average(s) — EMA/SMA/WMA/JMA, etc.
- Periods/weights — composition of the index (responsiveness vs stability).
- Signal smoothing — low‑lag vs noise.
- Levels & alerts — flips, slope, exits, MTF agree/disagree.
- Colors/widths — quick visual read.
Suggested usage
- M5–M15: flips & first pullbacks.
- M30–H4: swing continuations (flip → pullback → resume).
- Daily+: regime map and risk tilt.
Installation (MT5)
- Open MetaTrader 5 → File → Open Data Folder.
- Copy
trend-detection-index-of-averages.ex5
to MQL5/Indicators. - Restart MT5 (or refresh Navigator) and attach Trend Detection Index of Averages.
- Tweak inputs → OK.
FAQ
Does it repaint? The index uses completed bars; no repaint on closed candles.
Use in EAs? Yes, via iCustom
.
Markets? FX, indices, metals, crypto — anything on MT5.
Disclaimer: Test on a demo account first; risk management is essential.