yaniv_av:
I have a simple EA that open buy orders at Ask price or sell orders at Bid Price.
I have a simple EA that open buy orders at Ask price or sell orders at Bid Price.
When I'm tring to backtest it, I'm getting errors regarding to the open price of the trade. How can It be ???
Attached here the output of the jurnal with those errors.
I have Printed all the variables that I pass to the "SendOrder" command, and the command itself.
What can be the problem ???



Hm... do u use RefreshRates() function after your order fail?
yaniv_av:
But it's a backtest... not live trading...
But it's a backtest... not live trading...
Hm... I gues that ea is a big secret, but if u want us to help u , u should post your ea here.
Do you have a SL=0? Change this and try again.
You have to use NormalizeDouble(Ask, Digits) - I'm a bit surprised nobody posted this yet...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a simple EA that open buy orders at Ask price or sell orders at Bid Price.
When I'm tring to backtest it, I'm getting errors regarding to the open price of the trade. How can It be ???
Attached here the output of the jurnal with those errors.
I have Printed all the variables that I pass to the "SendOrder" command, and the command itself.
What can be the problem ???