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.
Note di rilascio: Fixed error in code that did not allow user to change EMA length, added Offset setting.
Note di rilascio: Minor improvements
Note di rilascio: Minor improvements
Note di rilascio: -
- Converted to Pine Script v4
- Added smoothing or stepped option
Note di rilascio: -
- Changed offset default to zero
Note di rilascio: -
- Changed lookahead to off.
- Removed offset.
Note di rilascio: - Fixed repainting issue
Rimuovi dagli script preferiti Aggiungi agli indicatori preferiti
If you want to master Pine Script coding, watch my free YouTube lessons or get the source code to my scripts then check out my Pine Script Mastery Course website: https://www.pinescriptmastery.com

Commenti

Thanks a lot! I really respect your contribution!
+1 Rispondi
@ujeenine, You're most welcome! Glad to be of service. Good luck with your trading :)
Rispondi
I am using V4 and your 7th line keeps giving me the error: Undeclared identifier 'resolution';

Is there a new way to write this in V4? Since yours says V3.

Thanks!
+1 Rispondi
@Charles_Trades, Hey Charles! Yes, in v4 that line of code must be changed to say this: type=input.resolution

Let me know if that doesn't work. Good luck with your trading :)
Rispondi
@Charles_Trades, I actually just released a small update for the script. I converted it to v4 and added a "stepped" or smoothed option for the EMA on lower timeframes :) have fun!
Rispondi
Thanks a lot sir... solved my problem for working with higher and lower timeframes at the same time ...
+1 Rispondi
any idea why the "smoothing" leads to a gap in emas line?
Rispondi
Home Screener azioni Screener forex Screener cripto Calendario economico Come funziona Caratteristiche Grafico Costi Invita un amico Regolamento Centro di supporto Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Blog & Novità Twitter
Profilo Impostazioni profilo Account e fatturazione Amici invitati Coin I miei ticket di supporto Centro di supporto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci