N Candles v6 - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

The Expert Advisor continuously searches for N identical candlesticks. It buys on bullish candlesticks and sells on bearish candlesticks. The EA checks whether the account is netted or hedged. The Trade class is used in the location information , trade network , symbol information and account information codes.
Added shutdown type when encountering "black sheep":
Suppose the Expert Advisor searches for 5 identical candlesticks. Then the EA finds five consecutive bullish candlesticks and opens a buy position. If the next candlestick after opening a position is not a bullish candlestick, such a candlestick is considered a "black sheep".
In this version you can disable Take Profit , Stop Loss and Trailing Stop - in this case the position will be closed via the "Black Sheep" parameter.
Example of testing D1 in Every Tick mode from 2017.04.18 to 2018.02.10:

Attachment download
📎 n_candles_v6.mq5 (42.14 KB)
Source: MQL5 #20000
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •