LonesomeTheBlue

MACD Enhanced System MTF with optional TSL and Alerts [LTB]

This script is developed to analyse MACD , MACD Signal, MACD Histogram movements by using current and higher time frame. Script calculates higher time frame automatically, no manuel entry. there is trailing stop loss line that is optional.

You can change the parameters as you wish.

btw. you should know that MACD is more successful when there is a trend.

I already shared this as a strategy script. Some ppl wanted to see the code.
You might want to see strategy test =>

by LonesomeTheBlue
Sürüm Notları: .
Sürüm Notları: Stop Loss Line removed.
Sürüm Notları: Fix for repainting issue and higher time frame correction for weekly chart
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu komut dosyasının yazarı açık kaynak olarak yayınladı, böylece yatırımcılar bunu anlayabilir ve doğrulayabilir. Yazara tebrikler! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından belirlenmektedir. Bir grafikte kullanmak için favorilerinize ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Yorumlar

Great strategy and thanks for sharing. If you add this indicator to a chart that already has the same strategy you shared applied, the alert is delayed by 2 to 3 bars. This is with the same MACD settings. Is there a way to remove the alert lag on the indicator so it more closely matches the strategy? Thanks
+5 Cevap Gönder
This indicator may have repaint issue, and signals may push you to give wrong decisions. better not use it.
+3 Cevap Gönder
Is not the same that with stop line and I couldn't put in strategy tester...
Cevap Gönder
the strategy "enhanced macd" you developed, has triggers that appear before this indicator. so i guess this one doesn't make much sense to exist. any chance to access the strategy code, to compile it with other indicators?
Cevap Gönder
@aciriaco, both of them may have repaint issue. you can use it but possible to make wrong decisions
Cevap Gönder
@LonesomeTheBlue, Please tell me what is the higher timeframe for 5 minutes? One hour? What is the logic?
Cevap Gönder
@Chtoesli, below you can see the table. if current period is 5 minutes then htf is 15 minutes.
period == '1' ? '5'
period == '3' ? '15'
period == '5' ? '15'
period == '15' ? '60'
period == '30' ? '60'
period == '45' ? '60'
period == '60' ? '240'
period == '120' ? '240'
period == '180' ? '240'
period == '240' ? 'D'
period == 'D' ? 'W'
period == 'W' ? '5W'
Cevap Gönder
Screenshot 2019-02-21 at 17.41.33
Cevap Gönder
Unfortunately i have to say it repaints heavy
Cevap Gönder