ZenAndTheArtOfTrading

Higher Timeframe EMA

This script plots a higher timeframe EMA to your chart.

You can specify the timeframe and the length of the EMA in the settings.

This chart demonstrates the 5-minute 50EMA (black) combined with the 1-hour 50EMA (colored) on the 1 minute timeframe.
Release Notes:
Fixed error in code that did not allow user to change EMA length, added Offset setting.
Release Notes:
Minor improvements
Release Notes:
Minor improvements
Release Notes:
-
- Converted to Pine Script v4
- Added smoothing or stepped option
Release Notes:
-
- Changed offset default to zero
Release Notes:
-
- Changed lookahead to off.
- Removed offset.
Release Notes:
- Fixed repainting issue
Release Notes:
Updated to Pine Script v5
Release Notes:
Fixed potential repainting issue

My Resources Hub: theartoftrading.com
FREE YouTube Lessons: rebrand.ly/zyt
FREE Pine Script Basics Course: rebrand.ly/zpsbc
Pine Script MASTERY Course: rebrand.ly/zpsmc
My Indicators & Strategies: rebrand.ly/zmisc
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?