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.
Catatan Rilis: Fixed error in code that did not allow user to change EMA length, added Offset setting.
Catatan Rilis: Minor improvements
Catatan Rilis: Minor improvements
Catatan Rilis: -
- Converted to Pine Script v4
- Added smoothing or stepped option
Catatan Rilis: -
- Changed offset default to zero
Catatan Rilis: -
- Changed lookahead to off.
- Removed offset.
Catatan Rilis: - Fixed repainting issue
Skrip open-source

Sejalan dengan semangat TradingView, penulis skrip ini telah mempublikasikannya secara open-source, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk sang penulis! Anda dapat menggunakannya secara gratis, tetapi penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk dapat menggunakannya didalam sebuah chart.

Inggin menggunakan skrip ini pada chart?
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


Thanks a lot! I really respect your contribution!
+4 Jawab
@ujeenine, You're most welcome! Glad to be of service. Good luck with your trading :)
+2 Jawab
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.

+2 Jawab
@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 Jawab
@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 Jawab
Thanks a lot sir... solved my problem for working with higher and lower timeframes at the same time ...
+1 Jawab
any idea why the "smoothing" leads to a gap in emas line?