Amend current EA to build in take profit and stop loss in total for the EA in equity

MQL5 专家 脚本

工作已完成

执行时间5 天

指定

Hi there

I have an EA (Send Buy & Sell - attached) that I want to make a change to.

This EA allows you to place 2 trades on the same currency pair in different directions (buy and sell) at the same time. For each of the trades (buy and sell side) you can place a limit and stop in pips.  

I want added to that a stop loss and limit in value / equity / deposit currency for the 2 trades combined. 

 

So I will have the option to choose a stop loss or limit for each transaction as it is currently OR

the option to type in the stop loss in $ (equity) terms for the combined loss for the 2 trades and type in the target combined limit (profit) in $ (equity) terms.

e.g. I choose to type in the stop loss - lets say -$500 and the limit +$750.

Both the long and short trade is closed when the combined profit on the 2 trades reaches +$750 or the combined loss on the 2 trades reaches -$500.

 

Why:

 I want to increase my trading volume but keep my overall leverage low (i.e. buy 20 lots and sell 19 lots = effectively 1 lot in the market). The variable spreads however means I need to close both the long and the short trade at exactly the same time in order to keep my effective leverage low and not risk an overleveraged naked position.  

附加的文件:

反馈

1
开发者 1
等级
(1156)
项目
1462
63%
仲裁
21
57% / 10%
逾期
43
3%
空闲
2
开发者 2
等级
(25)
项目
36
17%
仲裁
14
14% / 57%
逾期
3
8%
空闲
3
开发者 3
等级
(49)
项目
74
18%
仲裁
30
17% / 53%
逾期
31
42%
空闲
4
开发者 4
等级
(647)
项目
1295
67%
仲裁
84
26% / 49%
逾期
338
26%
空闲
5
开发者 5
等级
(772)
项目
1039
44%
仲裁
50
8% / 50%
逾期
116
11%
空闲
6
开发者 6
等级
(68)
项目
111
26%
仲裁
17
6% / 71%
逾期
15
14%
空闲
发布者: 9 代码

项目信息

预算
10 - 30 USD
截止日期
 1  5 天