Download MetaTrader 5

Error 129/130 help - page 2

To add comments, please log in or register
Publish your programs in the Market. Make money with your knowledge!
Carl Schreiber
6580
Carl Schreiber 2014.10.23 17:07  

Mind the spread! For a pending buy test against

double a = MarketInfo(symbol, MODE_ASK);

and your pending-buy must be  > a+minimal difference!

Play around with different prices to become acquainted with your system!

sayo
45
sayo 2014.10.24 01:43  
gooly:

Mind the spread! For a pending buy test against

and your pending-buy must be  > a+minimal difference!

Play around with different prices to become acquainted with your system!



Thank you so much.

I finally figured it out. It had nothing to do with spread or the 'obvious' things we've been looking at.

Instead, the order type e.g. OP_BUYSTOP was not been interpreted correctly into its numeric figure in OrderSend.

That fixed the issue.

12
To add comments, please log in or register