OPEN-SOURCE SCRIPT
Simple MACD Lines

█ OVERVIEW
This indicator displays only the MACD line and signal line — no histogram.
It sounds simple, but it solves a specific problem: when you try to set a price alert directly on a standard MACD indicator in TradingView, the histogram can interfere and make it hard to place the alert exactly where you want it.
With this indicator, there is nothing but the two lines, so alerts snap cleanly to the line positions.
█ HOW IT WORKS
• Calculates MACD using standard settings (12, 26, 9) — same math as the built-in MACD
• Plots the MACD line in blue and the signal line in red
• Includes a zero line for reference
• No histogram — cleaner chart, easier alert placement
█ HOW TO SET ALERTS
• Hover your cursor over one of the lines on the chart
• A "+" icon will appear — click it to set an alert at that exact price level
• Works well for zero line crosses, signal line crosses, or any custom level you want to watch
█ SETTINGS
• Fast Length — default 12
• Slow Length — default 26
• Signal Length — default 9
• Source — default close
All settings can be adjusted from the indicator's input panel. Colors can be changed from the Style tab.
█ NOTES
• This is a niche tool — if you just want to view MACD visually, the built-in TradingView MACD works fine
• Best used by traders who rely heavily on TradingView's alert system and want precise line-based alert placement
• Can be added as a separate pane alongside your existing indicators without interfering with them
This indicator displays only the MACD line and signal line — no histogram.
It sounds simple, but it solves a specific problem: when you try to set a price alert directly on a standard MACD indicator in TradingView, the histogram can interfere and make it hard to place the alert exactly where you want it.
With this indicator, there is nothing but the two lines, so alerts snap cleanly to the line positions.
█ HOW IT WORKS
• Calculates MACD using standard settings (12, 26, 9) — same math as the built-in MACD
• Plots the MACD line in blue and the signal line in red
• Includes a zero line for reference
• No histogram — cleaner chart, easier alert placement
█ HOW TO SET ALERTS
• Hover your cursor over one of the lines on the chart
• A "+" icon will appear — click it to set an alert at that exact price level
• Works well for zero line crosses, signal line crosses, or any custom level you want to watch
█ SETTINGS
• Fast Length — default 12
• Slow Length — default 26
• Signal Length — default 9
• Source — default close
All settings can be adjusted from the indicator's input panel. Colors can be changed from the Style tab.
█ NOTES
• This is a niche tool — if you just want to view MACD visually, the built-in TradingView MACD works fine
• Best used by traders who rely heavily on TradingView's alert system and want precise line-based alert placement
• Can be added as a separate pane alongside your existing indicators without interfering with them
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.