The opening of the position is performed at the beginning of every day by a simple rule:
if(Open>Open) BUY; if(Open<Open) SELL;
The closing is performed by the StopLoss or at the beginning of the next day.
1. stop - StopLoss level. It is specified in points, stop = 500 on default;
2. lots - lot size, lots = 1 on default;
In spite of its simplisity the EA shows good results on the trend markets:
Symbol EUR\USD, period D1:
Symbol EUR\JPY, period D1:
However, the testing on USD\JPY didn't have the positive results. What do you think, why is it so?
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/8462
I made this indicator colored at Zet's request.Script s_FlatEfficiency_v1
The script is intended for gathering some statistics by the symbols and its comparison.