Modify EA to have 2 trailing stops.

MQL4 指标 专家

指定

I need a small modification on a ea I have. I would like the trailing stop to work like the one on this video: 

https://youtu.be/5AiGRzWEkEU?t=1330

The example goes from minute 22:15 to 23:15 Its adviced to watch the video with subtitles.

The trailing stop would move so to keep always a 1:1 ratio with the take profit. I would like to have it in both mt4 and mt5

Summarizing the 2 modifications:

1. Trailing stop that shrinks in value keeping a one to one ratio with tp as the price gets closer to tp. As shown in the video from minute 22:15.

2. When price is 1 pip (variable) away from tp, tp gets erased and a fixed trailing stop of 1 pip (variable) starts to function.

I have attached a picture of how it should look like.

This is what it should look like

附加的文件:

反馈

1
开发者 1
等级
(92)
项目
132
35%
仲裁
13
38% / 31%
逾期
32
24%
空闲

项目信息

预算
30 - 50 USD
开发人员
27 - 45 USD