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
Versionshinweise: .
Versionshinweise: Stop Loss Line removed.
Versionshinweise: Fix for repainting issue and higher time frame correction for weekly chart
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9


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
+3 Antworten
This indicator may have repaint issue, and signals may push you to give wrong decisions. better not use it.
+1 Antworten
Is not the same that with stop line and I couldn't put in strategy tester...
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?
@aciriaco, both of them may have repaint issue. you can use it but possible to make wrong decisions
@LonesomeTheBlue, Please tell me what is the higher timeframe for 5 minutes? One hour? What is the logic?
@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'
Screenshot 2019-02-21 at 17.41.33
Unfortunately i have to say it repaints heavy
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender Über Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Private Nachrichten Chat Abmelden