OPEN-SOURCE SCRIPT

Higher Timeframe EMA

Updated
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
averageDAYExponential Moving Average (EMA)exponentialhigherHTFmovingMoving AveragestimeframetradingTrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


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
Also on:

Disclaimer