The Expert Advisor tracks the breakout of horizontal lines and generates a signal after the completion of the breaking candlestick.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/18024
The EA searches for N identical candlesticks in a row. If the found candlesticks are bullish, it buys. I they are bearish, the EA sells.ToClearComment
The script removes from the chart a comment located in the upper left corner.