Close profitable order on chart
- Oleksii Alipa
- Version: 1.4
- Updated: 15 October 2020
The script closes all positions for which the profit is more than 5 pips. Works only on an open pair (on an open chart).
The terminal must have the "Algo trading" mode enabled.
Effective if there are many open positions that need to be closed quickly.
The script does not replace a trailing stop or an advisor. The script checks for all open trades and closes those which fulfill the conditions (a profit of more than 5 pips) only once, at the time of launch.
For the subsequent closure of profitable new positions need to run the script again.