The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The account type is taken into account, i.e. whether it is netting or hedging. The CPositionInfo, CTrade, CSymbolInfo and CAccountInfo trade classes are used in the code.
New in version 5: the new "working time" parameter allows setting the trade beginning and end hours. The EA will only trade within "working time" and will do nothing the rest time.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19510
The Dtm indicator with the possibility to change the indicator timeframe from input parameters.Exp_CMO_Duplex
Two identical trading systems based on the crossover of the CMO indicator and the zero line, for long and short trades, which can be configured in different ways in one Expert Advisor.