OPEN-SOURCE SCRIPT
SMA 21, 50 y 200 All-in-One Script | Triple Moving Average

📊 TRIPLE MOVING AVERAGE SCRIPT (3-in-1)
This script plots the 3 most important Simple Moving
Averages in a single indicator:
📈 MOVING AVERAGES INCLUDED
- SMA 21 → Short-term trend
- SMA 50 → Medium-term trend
- SMA 200 → Long-term trend
🎯 HOW TO USE
✅ Price above SMA 200 = Bullish bias
✅ SMA 21 crosses above SMA 50 = Buy signal
❌ SMA 21 crosses below SMA 50 = Sell signal
❌ Price below SMA 200 = Bearish bias
⚙️ FEATURES
- All 3 MAs in one single indicator
- Clean and simple visualization
- Works on any timeframe
- Works on any asset (stocks, crypto, forex)
💡 RECOMMENDED TIMEFRAMES
Daily and Weekly for best results
⚠️ DISCLAIMER
This is not financial advice.
Use it as part of your own analysis.
This script plots the 3 most important Simple Moving
Averages in a single indicator:
📈 MOVING AVERAGES INCLUDED
- SMA 21 → Short-term trend
- SMA 50 → Medium-term trend
- SMA 200 → Long-term trend
🎯 HOW TO USE
✅ Price above SMA 200 = Bullish bias
✅ SMA 21 crosses above SMA 50 = Buy signal
❌ SMA 21 crosses below SMA 50 = Sell signal
❌ Price below SMA 200 = Bearish bias
⚙️ FEATURES
- All 3 MAs in one single indicator
- Clean and simple visualization
- Works on any timeframe
- Works on any asset (stocks, crypto, forex)
💡 RECOMMENDED TIMEFRAMES
Daily and Weekly for best results
⚠️ DISCLAIMER
This is not financial advice.
Use it as part of your own analysis.
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.