Download MetaTrader 5

Failed to modify orders in GBPJPY

To add comments, please log in or register
Publish your article and win recognition from thousands of traders!
flying
21
flying 2013.12.19 17:35 

While testing, There are two or more opened sell or buy orders. Im trying to modifying orders but it does not work. I debugged and found it responses none of orders opened filtered by if(!OrderType() == OP_BUY) continue;... Why?

<CODE REMOVED>

Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.12.19 17:54  
flying:

While testing, There are two or more opened sell or buy orders. Im trying to modifying orders but it does not work. I debugged and found it responses none of orders opened filtered by if(!OrderType() == OP_BUY) continue;... Why?

<CODE REMOVED>

I removed your code . . . .


Please edit your post above and re-insert your code using the SRC button . . . please use the SRC button to post code: How to use the SRC button.

To edit your post . . .

flying
21
flying 2013.12.19 18:31  
Solved. It was problem in incorrect loop. Learned from other recurrent postings, thanks.

To add comments, please log in or register