Can some good programmer help me (and the community) with a small change to this indicator, which sets alerts on the Heiken Ashi indicator in MT4?
The signal would be more reliable if the arrow appears on the third candle of the same color rather than on the first one when the change in the trend is detected.

My request is to please adjust the code so that the arrow/buffer signal appears on the third candle instead of the first one.
Indicator attached.Heiken_Ashi_Arrows.mq4
Many thanks.