OPEN-SOURCE SCRIPT
Multiple EMAs

This TradingView indicator allows you to display six EMAs (Exponential Moving Averages) on your chart, all based on a single, user-defined timeframe, regardless of the chart’s current timeframe.
- Set a specific timeframe (e.g., 4h, 1h, D) for all EMAs using the tf input.
- Six EMA Lengths
- Each EMA has its own customizable length (default: 21, 50, 100, 200, 300, 400).
- Timeframe Independence
- All EMAs are calculated using request.security, so they appear based on the selected timeframe even if you're viewing a smaller or larger chart timeframe.
- Set a specific timeframe (e.g., 4h, 1h, D) for all EMAs using the tf input.
- Six EMA Lengths
- Each EMA has its own customizable length (default: 21, 50, 100, 200, 300, 400).
- Timeframe Independence
- All EMAs are calculated using request.security, so they appear based on the selected timeframe even if you're viewing a smaller or larger chart timeframe.
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.