OPEN-SOURCE SCRIPT

Fractal Retracement [Jamallo]

1 189
(2025)

Intro
FRAMA is a moving average that adapts its speed based on fractal geometry — specifically, the fractal dimension (D) of recent price action. When price is trending strongly (low fractal dimension), it moves fast. When price is choppy/ranging (high fractal dimension), it slows down. This makes it far more responsive than a standard EMA or SMA.

Breakdown:

The indicator wraps this[FRAMA logic] with a continuous range logic layer: the
Pine Script®
only moves if price breaks beyond the FRAMA ± ATR-based range, creating a stepped/ratcheting effect that filters out noise.

Two sets of bands are plotted around the filtered line, scaled by ATR multiplied by user-defined multipliers (tight at 0.5×, medium at 1.0×). They're smoothed with a short EMA to reduce jitter, and filled with gradient colors for visual clarity.

Direction is simply determined by whether
Pine Script®
is rising or falling, and colors everything green (uptrend) or pink/red (downtrend).

END
In short, it's a noise-filtered trend indicator useful for identifying trend direction, dynamic support/resistance, and gauging how far price has retraced from the trend baseline.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.