The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The CPositionInfo, CTrade and CSymbolInfo classes are used in the code.
Version 1: N Candles
Version 2: N Candles v2
New in version 3:
Example of search with N=3:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/18575
The indicator shows the statistics of the "Evening Star" pattern.KiS_max_min_Avg
A redrawing channel with a colored background.