OPEN-SOURCE SCRIPT
Telah dikemas kini

Buy/Sell Setup counter to 9

272
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.
Nota Keluaran
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.
Nota Keluaran
Update:
If desired, a line from the last 9 to the next 9 can be displayed.

Colors fixed.
Nota Keluaran
The candle is only counted after it is finished.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.