danilogalisteu

MACD MTF Lines

danilogalisteu Aggiornato   
The indicator shows the MACD histogram sign (positive or negative) for several timeframes at once. You can see at a glance how the price is trending across higher and lower timeframes.

The code uses recursive calculations for the SMA and EMA to avoid lookahead errors and repainting on higher timeframes.

Note that, for lower timeframes, the line becomes yellow to the left because history is limited and there are not enough bars to calculate.
Note di rilascio:
The indicator was updated to show the maximum number of lines supported.
Note di rilascio:
Each line can be enabled or disabled individually, so that unused ones can be hidden.
Note di rilascio:
Added simple trend detection based on the number of bullish and bearish timeframes; threshold can be changed in Settings.

Added data outputs:
* "Score": counting the net number of bullish and bearish timeframes
* "Trend": changes to bullish or bearish as the score goes over or under the threshold

Added background color (green or red according to trend); can be enabled in Settings.

Added alert for trend change.

Fix: named individual timeframe outputs.
Note di rilascio:
Added another alert with a separate threshold score for flexibility.
Note di rilascio:
Fix: minimum values set to 1.
Note di rilascio:
Added score weights for further customization of trend detection and alerts. Input parameters are now set in terms of score values instead of number of lines.
Note di rilascio:
Release notes:
Added input options to choose alert modes for trend and extra alerts. The options are:
* once per bar close (default)
* once per bar
* every time

Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?