Creating Trailing SL logic for SELL and BUY in MQL 4 + MQL 5

MQL5 专家

指定

The following Logic should be created 


example

entryprice 3000

SL in the beginning 2996

Price reaches Entrpy oint = 3000

nothing happens

Price reaches Entry point +NowTrailingSL_value(=2.0)

price is then 3002

SL is moved to = 3000.20 ( is 3000+ 0.20)

 



Price reaches Entry point +TopOnNowTrailingStoplossValue(=4.0)

price is then 3004

SL is still 3000.20

Nothing happens

 

Price reaches Entry point +TopOnNowTrailingStoplossValue(=4.0)

price is then 3004.20

SL is still 3000.20

What happens then

Price moves SL to 3000.20 + TopOnNowTrailingSToplossValueExtra (new value = 0.5)

Meaning the price is then 3000.20+0.5 = 3000.70

 

This will help me to deal more efficiently with the retracement of price


a detailed analysis document will be written in the next days


job will only start from 05/10/2025 and needs to be delivered before 10/10/2025

 


反馈

1
开发者 1
等级
(16)
项目
20
0%
仲裁
9
0% / 78%
逾期
6
30%
空闲
2
开发者 2
等级
(13)
项目
17
18%
仲裁
3
67% / 0%
逾期
0
工作中
3
开发者 3
等级
(2)
项目
3
0%
仲裁
5
20% / 80%
逾期
1
33%
空闲
4
开发者 4
等级
(14)
项目
15
0%
仲裁
1
0% / 0%
逾期
0
已载入
5
开发者 5
等级
(10)
项目
12
17%
仲裁
0
逾期
1
8%
工作中
6
开发者 6
等级
(66)
项目
120
38%
仲裁
16
50% / 50%
逾期
29
24%
已载入
7
开发者 7
等级
(51)
项目
73
21%
仲裁
11
18% / 27%
逾期
6
8%
已载入
8
开发者 8
等级
(10)
项目
10
10%
仲裁
1
0% / 0%
逾期
2
20%
已载入
9
开发者 9
等级
(463)
项目
908
76%
仲裁
25
16% / 68%
逾期
99
11%
工作中
发布者: 1 文章, 6 代码
10
开发者 10
等级
(259)
项目
586
35%
仲裁
64
20% / 58%
逾期
147
25%
空闲
发布者: 1 文章, 22 代码
11
开发者 11
等级
(1)
项目
1
0%
仲裁
0
逾期
0
空闲
12
开发者 12
等级
(39)
项目
41
10%
仲裁
2
50% / 50%
逾期
2
5%
已载入
13
开发者 13
等级
(13)
项目
14
64%
仲裁
0
逾期
0
空闲
14
开发者 14
等级
(30)
项目
41
15%
仲裁
2
0% / 0%
逾期
1
2%
工作中
发布者: 2 代码
15
开发者 15
等级
(20)
项目
26
38%
仲裁
2
50% / 50%
逾期
2
8%
工作中
16
开发者 16
等级
(5)
项目
5
0%
仲裁
2
50% / 0%
逾期
1
20%
空闲
17
开发者 17
等级
(385)
项目
409
30%
仲裁
66
20% / 70%
逾期
52
13%
工作中
18
开发者 18
等级
(289)
项目
295
69%
仲裁
2
100% / 0%
逾期
0
空闲
发布者: 1 代码
19
开发者 19
等级
(6)
项目
6
17%
仲裁
0
逾期
2
33%
工作中
20
开发者 20
等级
(2253)
项目
2840
62%
仲裁
118
46% / 25%
逾期
428
15%
工作中
21
开发者 21
等级
(4)
项目
3
0%
仲裁
1
0% / 0%
逾期
2
67%
工作中
22
开发者 22
等级
(293)
项目
524
35%
仲裁
63
33% / 35%
逾期
188
36%
已载入
23
开发者 23
等级
(369)
项目
475
24%
仲裁
51
61% / 20%
逾期
55
12%
已载入
24
开发者 24
等级
(285)
项目
337
51%
仲裁
12
50% / 0%
逾期
19
6%
已载入
25
开发者 25
等级
项目
1
0%
仲裁
0
逾期
0
空闲
26
开发者 26
等级
(12)
项目
12
17%
仲裁
1
0% / 0%
逾期
1
8%
空闲
27
开发者 27
等级
(77)
项目
232
73%
仲裁
6
100% / 0%
逾期
1
0%
空闲
相似订单
General information: EA have to have possibility to modify working hours(3 times a day) for each RULE for example to be able to set : 8:00-11:00, then 13:00 to 16:00, then 19:00 to 22:00. (just an example for you to understand, 3 options). EA have to work on XAU/USD pair. Entries will be taken on M30 interval. H1 interval for trend(it will determine if we hold positions longer or close early at 50pip). If EMA 6 >
im starting to think more that short term scalping on m1 or m5 could work well if we can get around the spread size issue. does anyone have experience of this, or even have any EAs that work on the short term in and out in a few seconds or minutes? I have an idea using a grid and a pair of buy/ sells possibly opened at the same time with different lot sizes, trend following where the winning trades are used to write
I need an Expert advisor based on AOX signal . it must have check and handing of trade operation..errors. The main criterin for opening and dosing a position : moving average direction the price is higher than the previous bar Trade lots is input parameter bar
Hello I need an include file for prop trading. That means I want to include it in all of my EAs. For the news filter we use forexfactory.comThe inputs will be: Max. DD in % per day: 2 Max. Profit in % per day: 2 News Filter: True/False News Impact: Low/Medium/High Stop trading x Minutes before News: 10 Stop trading x Minutes after News: 10 Hold Trades through news: True/False Hold Positions overnight: True/False
Specification I am looking for a developer to create a custom one-click trading tool (EA) for MT5 , inspired by PZ Trade Pad Lite ( reference link ). The standard MT5 one-click trading and PZ Trade Pad Lite are useful but do not fully suit my needs. I require an EA that allows me to place trades directly from the chart with specialized entry rules, automated stop-loss/target placement, and risk management for BTCUSDT
I have a working strategy for Boom and Crash and need a programmer to build an MT5 Expert Advisor (EA) that trades on the 1-Minute timeframe . Key Requirements: Developer should have at least basic knowledge of Boom and Crash trading. EA must work only on candle ticks for Boom and Crash. The EA will receive trade alerts from my indicator and automatically open trades based on those alerts. No duplicate trades should
20 EMA Xauusd 30+ USD
I need a robot which open buy order when price cross above 20 ema , and open sell order when price crosses below 20 ema on 15 minutes time frame. 20 pips stop loss. 20 pips Target. I need robot in which i can change lot size as i wish
I want to.replocate this idea 💡 it's, on YouTube as well. If you can make this idea into an ea.to backtest that would be good. Once you can do this I can give you the rules for entry. Just state whether you can do it or not it would be good if you just give me an example based on the last heiken ashi bar colour no problems. State the price to do it aswell
i want to create EA with smc wave trend indicator for mt4&5 Trend Identification: The EA uses built-in indicators to determine if the market is in an uptrend or downtrend. Signal Generation: When a trend is confirmed, the EA generates a signal for a buy or sell trade. Automated Trading: The EA automatically places orders based on the signals, often entering trades at specific points within the trend. Trade
Description: I am looking for a highly skilled MQL5 + Python developer to code my ULTRA DE TOREN AI EA — a prop firm–compliant, AI-powered trading system. The system must be able to: Pass FundedNext challenges (Stage 1 & 2) in 2-4 weeks or less. Trade funded accounts safely and profitably (8–15% per month growth). Always respect prop firm rules (max daily drawdown, overall loss, profit target, no overtrading). Use

项目信息

预算
30 - 100 USD
VAT (21%): 6.3 - 21 USD
总计: 36 - 121 USD
开发人员
27 - 90 USD

客户

(3)
所下订单15
仲裁计数0