Closing transactions if you are closing all transactions you can use a while loop and then loop it while orderstotal gt;0 For closing all orders for a certain pair you'll have to use an incremental counter BUT each time you shut an order you want to reset the counter back to the beginning. This is because of how orders are indexed when you use the orderselect function
you won't have this issue if you use a decremental for or while loop.
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.