OPEN-SOURCE SCRIPT
20 MA Pack (SMA / EMA / SMMA / WMA)

This script provides a flexible 20-period Moving Average toolkit designed for active traders working with futures and high-momentum instruments.
It includes:
• 20 SMA (Simple Moving Average)
• 20 EMA (Exponential Moving Average)
• 20 SMMA (Smoothed Moving Average)
• 20 WMA (Weighted Moving Average)
Each average responds differently to price action:
SMA → Balanced trend view
EMA → Faster reaction to momentum
SMMA → Smoother structure, reduces noise
WMA → Stronger emphasis on recent price
This pack is especially useful for:
Current month futures contracts
Commodities with short contract lifecycles
Intraday and short-term swing trading
Identifying trend direction and dynamic support/resistance
The 20-period length aligns closely with one trading month, making it particularly effective for near-month contracts where longer moving averages lose relevance.
Use individually or compare them together to understand how price reacts to different smoothing methods.
It includes:
• 20 SMA (Simple Moving Average)
• 20 EMA (Exponential Moving Average)
• 20 SMMA (Smoothed Moving Average)
• 20 WMA (Weighted Moving Average)
Each average responds differently to price action:
SMA → Balanced trend view
EMA → Faster reaction to momentum
SMMA → Smoother structure, reduces noise
WMA → Stronger emphasis on recent price
This pack is especially useful for:
Current month futures contracts
Commodities with short contract lifecycles
Intraday and short-term swing trading
Identifying trend direction and dynamic support/resistance
The 20-period length aligns closely with one trading month, making it particularly effective for near-month contracts where longer moving averages lose relevance.
Use individually or compare them together to understand how price reacts to different smoothing methods.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
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.