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?
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 . . .