Hi Guys,
Here is a nice little ea coded by totom sukopratomo. It is a retracement ea that bases its entries on bb and stoch and rsi. It martingales and then profits on the retracement. Great backtest results but only on 5min eur usd.
However Toothman and myself who have been testing it have both found that just when it is closing all trades for the take profit, that it also makes a new trade that is not part of the sequence and closes that trade just as soon as it opens it.
See attached chart where I was testing it on gbp usd just to see if I could recreate the bug. And yes it happened - see the last trade of 0.32 lots, made and closed at the same time as all the other trades were closing.
Seems to be some little code problem, and I am wondering if one of you could look at the code and advise it there is an easy solution.
& Thanks.
Here is a nice little ea coded by totom sukopratomo. It is a retracement ea that bases its entries on bb and stoch and rsi. It martingales and then profits on the retracement. Great backtest results but only on 5min eur usd.
However Toothman and myself who have been testing it have both found that just when it is closing all trades for the take profit, that it also makes a new trade that is not part of the sequence and closes that trade just as soon as it opens it.
See attached chart where I was testing it on gbp usd just to see if I could recreate the bug. And yes it happened - see the last trade of 0.32 lots, made and closed at the same time as all the other trades were closing.
Seems to be some little code problem, and I am wondering if one of you could look at the code and advise it there is an easy solution.
& Thanks.
Attached File(s)
swb grid 4.1.mq4
12 KB
|
325 downloads