Hi Enivid - quick question - with the below. I want to close all orders before EA disables autotrading. I do not deal with pending orders. If I have an open trade and I have checked the box "Attempt to close all orders before disabling Autotrading" and set WaitForNoPositions to true, the EA will wait for the positions to be closed before disabling, is this correct?
If you tick the 'Attempt to close all orders before disabling Autotrading', it will both close positions and delete pending orders. If you set the WaitForNoPositions and WaitForNoOrders input parameters to true, it will wait until there are no positions and no pending orders before disabling autotrading.