OrderSend - Error Code 130 - OP_BUYLIMIT - page 3

 
Nima:

This is what I wrote using WHRoeder's code, I don't know if which part is wrong :

It seems WHRoeder's last post is what I'm looking for, I'll give it a try.
You used zero slippage which will work in the tester but not live.
 
WHRoeder:
You used zero slippage which will work in the tester but not live.

Yes I know that, but I wanted to find out which parameter was causing error, so I tested the function different parameters, first setting all of them to zero, then giving a valid value to each one - one at a time.

I'm not using tester. I use a demo account for testing and zero slippage did not cause any problem (by chance of course!) but sure for real EAs this should be taken care of.

Reason: