August 3, 2020
Closing unprofitable positions by searching and closing profitable positions
This assistant looks for, among all positions, in the terminal the most unprofitable position.
Further, by searching for the remaining profitable positions, he calculates a series of positions that can cover the loss when the profit of one or more positions is greater than the loss of another position.