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

MQL5 Esperti

Specifiche

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

 


Con risposta

1
Sviluppatore 1
Valutazioni
(16)
Progetti
20
0%
Arbitraggio
9
0% / 78%
In ritardo
6
30%
Gratuito
2
Sviluppatore 2
Valutazioni
(13)
Progetti
17
18%
Arbitraggio
3
67% / 0%
In ritardo
0
In elaborazione
3
Sviluppatore 3
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
5
20% / 80%
In ritardo
1
33%
Gratuito
4
Sviluppatore 4
Valutazioni
(14)
Progetti
15
0%
Arbitraggio
1
0% / 0%
In ritardo
0
Caricato
5
Sviluppatore 5
Valutazioni
(10)
Progetti
12
17%
Arbitraggio
0
In ritardo
1
8%
In elaborazione
6
Sviluppatore 6
Valutazioni
(66)
Progetti
120
38%
Arbitraggio
16
50% / 50%
In ritardo
29
24%
Caricato
7
Sviluppatore 7
Valutazioni
(51)
Progetti
73
21%
Arbitraggio
11
18% / 27%
In ritardo
6
8%
Caricato
8
Sviluppatore 8
Valutazioni
(10)
Progetti
10
10%
Arbitraggio
1
0% / 0%
In ritardo
2
20%
Caricato
9
Sviluppatore 9
Valutazioni
(463)
Progetti
908
76%
Arbitraggio
25
16% / 68%
In ritardo
99
11%
In elaborazione
Pubblicati: 1 articolo, 6 codici
10
Sviluppatore 10
Valutazioni
(259)
Progetti
586
35%
Arbitraggio
64
20% / 58%
In ritardo
147
25%
Gratuito
Pubblicati: 1 articolo, 22 codici
11
Sviluppatore 11
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(39)
Progetti
41
10%
Arbitraggio
2
50% / 50%
In ritardo
2
5%
Caricato
13
Sviluppatore 13
Valutazioni
(13)
Progetti
14
64%
Arbitraggio
0
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(30)
Progetti
41
15%
Arbitraggio
2
0% / 0%
In ritardo
1
2%
In elaborazione
Pubblicati: 2 codici
15
Sviluppatore 15
Valutazioni
(20)
Progetti
26
38%
Arbitraggio
2
50% / 50%
In ritardo
2
8%
In elaborazione
16
Sviluppatore 16
Valutazioni
(5)
Progetti
5
0%
Arbitraggio
2
50% / 0%
In ritardo
1
20%
Gratuito
17
Sviluppatore 17
Valutazioni
(385)
Progetti
409
30%
Arbitraggio
66
20% / 70%
In ritardo
52
13%
In elaborazione
18
Sviluppatore 18
Valutazioni
(289)
Progetti
295
69%
Arbitraggio
2
100% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
19
Sviluppatore 19
Valutazioni
(6)
Progetti
6
17%
Arbitraggio
0
In ritardo
2
33%
In elaborazione
20
Sviluppatore 20
Valutazioni
(2253)
Progetti
2840
62%
Arbitraggio
118
46% / 25%
In ritardo
428
15%
In elaborazione
21
Sviluppatore 21
Valutazioni
(4)
Progetti
3
0%
Arbitraggio
1
0% / 0%
In ritardo
2
67%
In elaborazione
22
Sviluppatore 22
Valutazioni
(293)
Progetti
524
35%
Arbitraggio
63
33% / 35%
In ritardo
188
36%
Caricato
23
Sviluppatore 23
Valutazioni
(369)
Progetti
475
24%
Arbitraggio
51
61% / 20%
In ritardo
55
12%
Caricato
24
Sviluppatore 24
Valutazioni
(285)
Progetti
337
51%
Arbitraggio
12
50% / 0%
In ritardo
19
6%
Caricato
25
Sviluppatore 25
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
26
Sviluppatore 26
Valutazioni
(12)
Progetti
12
17%
Arbitraggio
1
0% / 0%
In ritardo
1
8%
Gratuito
27
Sviluppatore 27
Valutazioni
(77)
Progetti
232
73%
Arbitraggio
6
100% / 0%
In ritardo
1
0%
Gratuito
Ordini simili
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

Informazioni sul progetto

Budget
30 - 100 USD
IVA (21%): 6.3 - 21 USD
Totale: 36 - 121 USD
Per lo sviluppatore
27 - 90 USD

Cliente

(3)
Ordini effettuati15
Numero di arbitraggi0