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

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
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
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.