Close all profit positions
- Utilities
- Leonid Basis
- Version: 1.7
- Updated: 19 November 2021
- Activations: 5
The script allows to close all opened positions if Sum of Profit from all opened positions is greater than value of the input parameter: SumProfit.
Input parameters
- SumProfit = 100
You can change SumProfit to any positive value (in dollars, not in the points!). This script will close all positions for a given currency pair only.
Keep in mind that you have to "Allow automated trading" on the "Expert Advisors" tab (Tools->Options).