
In the tab, there are two overloads of the method CloseAllOrderInSystem.
The main task of this method is to withdraw all orders from the exchange for all open positions within the robot. This includes orders for opening a position as well as closing orders.
public void CloseAllOrderInSystem()
The method does not take any parameters and does not have a return value.

1. We place a buy order to close at the next candle if the conditions for entry are met.
2. After a permissible number of positions have been created, we call the method CloseAllOrderInSystem, as not all positions were able to open, and it is necessary to recall active orders.
3. We close all positions at the market.
public void CloseAllOrderInSystem(string signalType)
The method has no return value and takes only one parameter, which is the type of signal to close the position.
If you have any difficulties or questions, please write to the support chat. Link