order closing setup
-
link text
I can't close a virtual order when there is unrealized profit please help me -
You can remove blocks 6 and 10. They are redundant. Other than that your logic is correct. It should work. Is this the whole project or just part of it?