|
OrderSend errors
Hi Haliban,
Thanks for the feedback, keep it coming.
It looks like there's two things happening there; the obvious one is the "Ordersend error 130" which means that either the price, TP or SL is too close to the current price. That's part of the broker's rules and typically you can't put a pending order at a price within, say, 10 pips of the current price. As I mentioned earlier, this is a pretty basic EA and it doesn't check for that yet, so if the price is at the upper or lower limit at the time the order is sent, then it is going to be disallowed. In each error here you've got one order failing and the other going in without any trouble. Let me have a think and I might update the EA through the week.
The second problem is that it's not supposed to place more trades on the same day after the first buy/sell stops are placed. I might be misreading your journal there, so have a look at the chart after you run Strategy Tester and check if it's placing new trades immediately after the last one closes. I haven't had that problem in either my back or forward testing, so I'm hoping its just one of those quirks of MT4 backtesting.
Just to check, are you running your backtest on H1 timeframe? By rights it shouldn't matter, but I've seen some odd behaviour when its on the M15 chart...
It's a bit nasty to see all those stop losses in a row, but noting that these are order ticket #256 and so on, I hope the first 250 were a bit better.
Regards,
Couso
|