CloseBy BreakEven MT4
The script allows to close part of opened position if this position has some profit.
You just need to drop this script on the chart with a desired currency pair.
Let's say you have 1 lot for a Long position with positive profit. With this script you can close any part of the 1 lot (input parameter LotCoeff from 0.1 to 0.9) and remain (for example, 0.4 lot) will have a BreakEven StopLoss.
Before placing an opposite orders, the input window is opened allowing you to modify all input parameters:
- LotCoeff = 0.5; // from 0.1 to 0.9;
- LongPos = true; // if TRUE only Long position from the current currency pair will be search and update;
- ShortPos = false; // if TRUE onlyShort position from the current currency pair will be search and update;
- Slippage = 20;
- MagicNum = 12345.
Attention: You have to Allow automated trading on the Expert Advisors tab (Tools->Options). In the input window, you have to allow auto trading.
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
