

What Error? 130? Do you know the tradelimits? 


ThemBonez: I don't see any problems with trade limits, because the first Order is modified, yet the second order isn't. The criteria for both are the same. I want them to both be modified when criteria is met. This is not necessarily true, prices are moving and what is ok for the first order might fail the next time  depends on how fast is your broker/connection and how far away are your stops  can't see that :( Error 1 is not any more in the reference before b600+ it meant: #define ERR_NO_RESULT 1, exactly where this error appears? Try to have a little waiting loop: while( IsTradeContextBusy() ) Sleep(100); 

gooly: This is not necessarily true, prices are moving and what is ok for the first order might fail the next time  depends on how fast is your broker/connection and how far away are your stops  can't see that :( Error 1 is not any more in the reference before b600+ it meant: #define ERR_NO_RESULT 1, exactly where this error appears? Try to have a little waiting loop: 



Hi,
I wrote this simple function to move two open orders to breakeven when certain criteria are met.
The problem I'm having is that it moves one trade to breakeven but gives me a modify error 1 for the second.
Any ideas?
Thank You