EA help!! I'm desperate...

 

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 ???

Files:
1.jpg  64 kb
 
yaniv_av:
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?

 

But ....

Kalenzo:
Hm... do u use RefreshRates() function after your order fail?

But it's a backtest... not live trading...

 
yaniv_av:
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...

Reason: