The Hedge MT4
- 实用工具
- Leonid Basis
- 版本: 2.52
- 更新: 27 三月 2020
- 激活: 5
This script searches for all positions for the current currency pair and calculates the sum of all lots for those positions with negative profit and offers to open a hedge (opposite) position with a lot size equal to the calculated sum of lots multiplied by LotCoeff.
You just need to drop this script on the chart with a desired currency pair.
Before placing opposite orders, the input window is opened allowing you to modify all the input parameters:
- LotCoeff = 1.5;
- BuySearch = true;
- SellSearch = false;
- Slippage = 2;
- MagicNum = 12345;
Attention
You have to allow automated trading on the Expert Advisors tab (Tools->Options).
You have to allow auto trading in the input window.