OPEN-SOURCE SCRIPT
Aktualisiert MACD + Timeframe Display

Have you ever maximized your MACD pane to get a closer look at a crossover, only to realize the top toolbar disappeared and you forgot exactly which timeframe you were analyzing?
This indicator solves that frustrating UI quirk.
This script is a 1:1 replica of TradingView’s standard built-in MACD, but with one major quality-of-life upgrade: it features a dynamic, built-in display table in the top right corner of the indicator pane that continuously tracks your active chart timeframe.
Because the text is drawn directly onto the indicator's canvas, it stays perfectly visible even when the pane is double-clicked and maximized.
Key Features:
Classic MACD Math: Uses the exact same calculations, inputs, and histogram color schemes as the default TradingView MACD. Your signals and familiar aesthetics remain completely unchanged.
Smart Timeframe Formatting: Automatically detects your active timeframe and converts raw minutes into a clean, human-readable format. Instead of displaying "60" or "240", it dynamically formats the text to "1H", "4H", "15m", "1D", etc.
Unobtrusive UI: The timeframe is displayed in a clean, semi-transparent box in the top right corner of the pane, ensuring it doesn't block your view of the moving averages or histogram.
How to use:
Simply add it to your chart, replace your old MACD, and customize your moving average lengths just like you normally would. The timeframe display is entirely automatic!
This indicator solves that frustrating UI quirk.
This script is a 1:1 replica of TradingView’s standard built-in MACD, but with one major quality-of-life upgrade: it features a dynamic, built-in display table in the top right corner of the indicator pane that continuously tracks your active chart timeframe.
Because the text is drawn directly onto the indicator's canvas, it stays perfectly visible even when the pane is double-clicked and maximized.
Key Features:
Classic MACD Math: Uses the exact same calculations, inputs, and histogram color schemes as the default TradingView MACD. Your signals and familiar aesthetics remain completely unchanged.
Smart Timeframe Formatting: Automatically detects your active timeframe and converts raw minutes into a clean, human-readable format. Instead of displaying "60" or "240", it dynamically formats the text to "1H", "4H", "15m", "1D", etc.
Unobtrusive UI: The timeframe is displayed in a clean, semi-transparent box in the top right corner of the pane, ensuring it doesn't block your view of the moving averages or histogram.
How to use:
Simply add it to your chart, replace your old MACD, and customize your moving average lengths just like you normally would. The timeframe display is entirely automatic!
Versionshinweise
I have moved the table to the bottom right corner, which usually keeps it completely clear of your mouse and the MACD lines.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.