OPEN-SOURCE SCRIPT
Aggiornato Buy/Sell Setup counter to 9

For a buy setup: Any candle whose closing price is lower than the closing price four candles earlier.
For a sell setup: Any candle whose closing price is higher than the closing price four candles earlier.
The count starts at 1 as soon as a candle meets the condition and is increased by 1 for each additional matching candle.
Interruption: If a candle does not meet the condition, the counter is reset to 0 and restarts at the next matching signal.
A maximum of 9 is counted – this is the end of the setup.
In the chart, this number is displayed above (for sell) or below (for buy) the respective candle.
For a sell setup: Any candle whose closing price is higher than the closing price four candles earlier.
The count starts at 1 as soon as a candle meets the condition and is increased by 1 for each additional matching candle.
Interruption: If a candle does not meet the condition, the counter is reset to 0 and restarts at the next matching signal.
A maximum of 9 is counted – this is the end of the setup.
In the chart, this number is displayed above (for sell) or below (for buy) the respective candle.
Note di rilascio
For a buy setup: Any candle whose closing price is lower than the closing price four candles earlier.For a sell setup: Any candle whose closing price is higher than the closing price four candles earlier.
The count starts at 1 as soon as a candle meets the condition and is increased by 1 for each additional matching candle.
Interruption: If a candle does not meet the condition, the counter is reset to 0 and restarts at the next matching signal.
A maximum of 9 is counted – this is the end of the setup.
In the chart, this number is displayed above (for sell) or below (for buy) the respective candle.
Note di rilascio
Update:If desired, a line from the last 9 to the next 9 can be displayed.
Colors fixed.
Note di rilascio
The candle is only counted after it is finished.Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.