The author of the ideaΒ –Β
mq5 code authorΒ –Β
The EA only operates when a new bar appears. No stop loss, no take profit, no trailing. The only limitation is the number of open positions in each direction – Maximum positions parameter.
The EA compares iMA (Moving Average, MA) value on bar #0 and Open and Close prices onΒ OHLC current bar.
The size of the opened position can be either constant (Money managementΒ is equal to “Constant lot”), or dynamic (Money managementΒ is equal to “Risk in percent for a deal”).
For USDJPY M5, the best result: