TREND, MOVING AVERAGES & STRUCTURE
McGinley dynamic
A trend line that adjusts its own speed to the market, so it hugs price in fast moves instead of falling behind like a fixed-length average.
spec id: mcginleylength (default 14)
What does McGinley dynamic measure?
A trend line that adjusts its own speed to the market, so it hugs price in fast moves instead of falling behind like a fixed-length average.
How is McGinley dynamic calculated?
Keep a running line. Each candle, move it toward the new close by an amount divided by 14 AND by how far price has run away from the line — so the further price gets, the harder the line catches up.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use McGinley dynamic in a bot?
In the builder, add an indicator of type mcginley (parameters: length, default 14). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- Rolling medianThe middle closing price of the recent window.
- Median priceThe midpoint of a single candle — halfway between its high and its low.
- MidpointThe middle of the recent CLOSING range — halfway between the highest and lowest close.
- MidpriceThe middle of the recent FULL range — halfway between the highest high and the lowest low, wicks included.
Or browse all 158 indicators in the full library.