Add New Functions to an EA

MQL4 指标 专家

工作已完成

执行时间25 分钟
客户反馈
Another project completed with Mahshad, and once again, it was very good—fast, easy communication, and, as always, an excellent professional in executing the project. See you soon, my friend!
员工反馈
true friend ! thanks, nice job again with you

指定

Add new functions to one exitent Ea . Then, the next step would be to add a function so that, after the trade is opened, as soon as it reaches X points above the entry-level line in profit, the SL is moved to:

1 - The entry line (Break Even + Actual Spread).

Or, by selection:

2 - XXX points below the entry line (the entry line issued by the signal, not the trade opening line).

This is because, sometimes, the trade only opens after the signal candle closes, and that can be quite far from the actual entry point. As a result, the stop would be even further away.

Here, I used a buy entry as an example, but this logic must also be applied to sell entries.

The third and final change would be:

Since we already have the options to select a dynamic SL and choose the XXX points behind the TP1 and TP2 levels, we should add the same option but with a specific time range, where the values set in these selections override the previous ones and apply during the defined period.

Example of Dynamic SL:
 • XXX points behind the TP1 level = 150
 • XXX points behind the TP2 level = 250

Dynamic SL from: 10:01 to 16:59, use:
 • XXX points behind the TP1 level = 360
 • XXX points behind the TP2 level = 480

Before and after the selected time range, use the primary SL/points for calculations.

反馈

1
开发者 1
等级
(102)
项目
105
60%
仲裁
0
逾期
0
空闲
2
开发者 2
等级
(83)
项目
142
51%
仲裁
5
20% / 60%
逾期
22
15%
空闲

项目信息

预算
70+ USD
VAT (19%): 13.3 USD
总计: 83.3 USD
开发人员
63 USD
截止日期
 1  10 天