EA gives invalid stops (order 130 error) with Tickstory data but not with brokers demo acct
Posted: Sun Aug 16, 2020 1:52 pm
Hi folks,
I am new to writing EA in MT4. I am facing issue while Trailing SL during backtesting.
- When I backtest in broker's Demo acct gives no problem (But, modelling quality is <=90%)
To improve modelling quality, I downloaded more accurate Tick data from Tickstory. (EURUSD)
- When backtest using Tickstory, it gives "Invalid Stops' error for most of trades.
"If I increase pips for SL, error does not occur. But I dont understand why it works with broker and not with more accurate data? I want trail SL to be tight."
Can somebody please help. Thanks a lot.
Below is code snippet.
//Stops in Pips
double StopLossPips = 15;
double TrailingStep = 1;
double TrailingStop = 1.5;
.
.
I use Ordermodify to trail SL.
//
I am new to writing EA in MT4. I am facing issue while Trailing SL during backtesting.
- When I backtest in broker's Demo acct gives no problem (But, modelling quality is <=90%)
To improve modelling quality, I downloaded more accurate Tick data from Tickstory. (EURUSD)
- When backtest using Tickstory, it gives "Invalid Stops' error for most of trades.
"If I increase pips for SL, error does not occur. But I dont understand why it works with broker and not with more accurate data? I want trail SL to be tight."
Can somebody please help. Thanks a lot.
Below is code snippet.
//Stops in Pips
double StopLossPips = 15;
double TrailingStep = 1;
double TrailingStop = 1.5;
.
.
I use Ordermodify to trail SL.
//