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
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?
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!
+4 Rispondi
@ujeenine, You're most welcome! Glad to be of service. Good luck with your trading :)
+2 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!
+2 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 :)
+1 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!
+1 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