The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The EA checks whether the account is netting or hedging. The CPositionInfo, CTrade, CSymbolInfo, and CAccountInfo trade classes are used in this code.
Version 1 N candles.
Search example for N=3:

Version 2 N- candles v2.
What's new in version 2: The "Take Profit", "Stop Loss", and "Trailing" parameters were introduced.
Version 3 N-_Candles_v3.
What's new in version 3: The "Maximum amount of one-direction positions" parameter was introduced.
Version 4: N-_Candles_v4.
What's new in version 4: For netting accounts, the "maximum number of positions" parameter was replaced with the "maximum position volume" parameter.
Version 5 N- Candles v5.
What's new in version 5: The "Working time" parameter was introduced.
Version 6: N-_Candles_v6.
What's new in version 6: The "Black sheep" parameter was introduced.
Closing positions at achieving the profit level equal to Closing of positions at achievement of the general profit was added.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20500
Small_Inside_Bar_Strategy
Small_Inside_Bar_Strategy - an Expert Advisor based on indicator Small_Inside_Bar.
ChannelEA2
ChannelEA2 - an Expert Advisor working in a channel, using pending stop orders.
Price Impulse
The EA waits for the price to pass XXX points within NNN ticks.
KAMA
Kaufman Adaptive Moving Average (KAMA)