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.
The CloseAtTrailingStop method provides the opportunity to use what is known as a trailing stop – this is a stop that gets pulled up with the price if it moves in the direction favorable for the position.