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

Or browse all 158 indicators in the full library.

Build a bot that trades on McGinley dynamic — the first backtest is free.

Run a free backtest