OPEN-SOURCE SCRIPT

Simple MACD Lines

168
█ 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

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.