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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.