I tested the EA , it is really good idea behind the EA but as I mentioned during testing I recognized an Item that may modify the EA's application and it would be highly appreciated if modify the EA as follows:
- the EA send order when the price is for example 30 pips over candle open price(the test time is H4) , because of market's price fluctuation , the price may drop 30 pips under the candle's open price, The EA close the buy position and open a sell position instantly ( As you mentioned) well, if market's price fluctuates again and many times , all the position will be closed by loss
- I suggest change the EA's code as it open an order based on a certain elapsed time for example 60 minutes for H4 or 15 minute for H1 and so , at this condition candle's direction is more clear than the start time , on the other hand in my opinion it would be better to open just one buy position or sell one for each candle and consider a waiting time to open the buy or sell position for other candle, means if an open position opened after 60 min for H4 time frame and the price fluctuation forced it to close because of 30 pips under open price , the EA do not allow to open other buy position even the market price rises again 30 pips over candle's open price and wait for other candle
the final sentence is
"EA open just one buy or sell position for each candle after a certain elapsed time (based on different time frame)"
sorry for long word
and thank you in advance for your kindness