Download MetaTrader 5

Failed to modify orders in GBPJPY

To add comments, please log in or register
flying
21
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>

Simon Gniadkowski
Moderator
18019
Simon Gniadkowski  
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  
Solved. It was problem in incorrect loop. Learned from other recurrent postings, thanks.

To add comments, please log in or register