SMA +7 ATR Lines (Normal atr extension + jfserv version)

531
This script is a comparison study between two different ATR extension calculation methods from a chosen SMA (10, 21, or 50).
Purpose:
To visually compare the classic “Normal / Matrix Style” ATR extension (used in the ATR Matrix indicator) with the jfserv percentage-normalized method.
The Two Methods Compared:

Normal / Matrix Style (Orange Line)
Line = SMA + Multiplier × ATR
→ Classic dollar-based extension. Same formula used in the “ATR Matrix” script (f_lvl_from_sma(n) => sma50 + n * atr).
jfserv % Method (Red Line)
Line = SMA + Multiplier × ATR × (SMA / close)
→ Percentage-normalized approach. Adjusts the extension level based on the current price relative to the SMA.

Features:

Switch between SMA10, SMA21, or SMA50
Show one or both lines (both visible by default)
Background color based on chosen method
Adjustable ATR multiplier (default 7x)
Thicker lines (default width 4)
Fill zone and visual labels

Created by: @denis__hamel

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.