Back to Docs
Traderoid

McGinley Dynamic Pass

McGinley Dynamic — Series Input

IndicatorTrendOverlay

Overview

McGinley Dynamic Pass applies John McGinley's adaptive smoothing filter to any upstream numeric series. The filter automatically adjusts its speed to market conditions by using a power-law denominator that responds faster to down-moves than up-moves.

Formula

MD[t] = MD[t−1] + (x[t] − MD[t−1]) / (period · (x[t]/MD[t−1])⁴)

Parameters

ParameterTypeDefaultDescription
periodnumber14Base smoothing constant. Actual speed adapts dynamically.

Inputs & Outputs

PortDirectionTypeDescription
inputInput(number | null)[]Any numeric series (values + timestamps).
valuesOutput(number | null)[]Smoothed output series, null for warm-up bars.
timestampsOutputnumber[]Bar timestamps aligned with values.