A candle counter is needed.
1Good day! This indicator counts how many bars are ascending or descending in a row. It is necessary to add a candle counter and send the signal from the last candle to the buffer. Thank you in advance!
)