Adding trailing stop loss to four expert advisors MetaTrader 5

MQL5 Esperti

Specifiche

Hello, My budget is $30, for all job

I have four expert advisors on MetaTrader 5. I want to add a trailing stop loss to all four experts in the same way, based on the stop loss percentage.

For example,

If I set the trailing stop loss percentage in the input menuto 100%, and the stop loss to 500 points, this means that if the price moves 10 points in profit, then the stop loss will also move 10 points, and so on.

If I set the trailing stop loss percentage in the input menuto 200%, and the stop loss to 500 points, this means that if the price moves 10 points in profit, then the stop loss will also move 5 points, and so on.

If I set the trailing stop loss percentage in the input menuto 50%, and the stop loss to 500 points, this means that if the price moves 10 points in profit, then the stop loss will also move 20 points, and so on.

I want the trailing stop loss to move with every price tick.

I want to be able to enable or disable trailing stop loss.

=================================================

Add to input menu:

TSL = True/False

TSL percentage = 100% (Or any percentage I want)


I want the code to be free of errors and warnings.



Con risposta

1
Sviluppatore 1
Valutazioni
(7)
Progetti
9
0%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(240)
Progetti
301
28%
Arbitraggio
32
25% / 63%
In ritardo
9
3%
Caricato
3
Sviluppatore 3
Valutazioni
(15)
Progetti
34
24%
Arbitraggio
4
0% / 50%
In ritardo
2
6%
In elaborazione
4
Sviluppatore 4
Valutazioni
(321)
Progetti
499
19%
Arbitraggio
33
42% / 30%
In ritardo
32
6%
Caricato
5
Sviluppatore 5
Valutazioni
(1269)
Progetti
1689
49%
Arbitraggio
52
71% / 12%
In ritardo
37
2%
Gratuito
6
Sviluppatore 6
Valutazioni
(623)
Progetti
977
46%
Arbitraggio
32
38% / 34%
In ritardo
96
10%
In elaborazione
Pubblicati: 6 codici
7
Sviluppatore 7
Valutazioni
(32)
Progetti
49
73%
Arbitraggio
4
50% / 0%
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(269)
Progetti
397
27%
Arbitraggio
38
39% / 50%
In ritardo
1
0%
In elaborazione
10
Sviluppatore 10
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
1
100%
Gratuito
14
Sviluppatore 14
Valutazioni
(23)
Progetti
24
67%
Arbitraggio
0
In ritardo
1
4%
Gratuito
Pubblicati: 2 codici
15
Sviluppatore 15
Valutazioni
(3)
Progetti
1
100%
Arbitraggio
3
0% / 100%
In ritardo
0
Gratuito
16
Sviluppatore 16
Valutazioni
(499)
Progetti
743
56%
Arbitraggio
47
32% / 30%
In ritardo
119
16%
In elaborazione
Pubblicati: 1 codice
17
Sviluppatore 17
Valutazioni
(265)
Progetti
595
35%
Arbitraggio
64
20% / 58%
In ritardo
147
25%
Gratuito
Pubblicati: 1 articolo, 22 codici
18
Sviluppatore 18
Valutazioni
(1)
Progetti
2
0%
Arbitraggio
2
0% / 100%
In ritardo
0
In elaborazione
19
Sviluppatore 19
Valutazioni
(51)
Progetti
69
35%
Arbitraggio
4
25% / 75%
In ritardo
0
Gratuito
20
Sviluppatore 20
Valutazioni
(329)
Progetti
394
53%
Arbitraggio
20
55% / 15%
In ritardo
28
7%
Caricato
21
Sviluppatore 21
Valutazioni
(151)
Progetti
189
57%
Arbitraggio
10
80% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
22
Sviluppatore 22
Valutazioni
(516)
Progetti
784
63%
Arbitraggio
33
27% / 45%
In ritardo
23
3%
Gratuito
Pubblicati: 1 codice
23
Sviluppatore 23
Valutazioni
(1)
Progetti
1
100%
Arbitraggio
0
In ritardo
0
Gratuito
24
Sviluppatore 24
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
In elaborazione
25
Sviluppatore 25
Valutazioni
(59)
Progetti
81
43%
Arbitraggio
27
11% / 70%
In ritardo
8
10%
Gratuito
26
Sviluppatore 26
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 2 articoli
27
Sviluppatore 27
Valutazioni
(4)
Progetti
3
33%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
28
Sviluppatore 28
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
29
Sviluppatore 29
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
2
0% / 50%
In ritardo
1
50%
Caricato
30
Sviluppatore 30
Valutazioni
(18)
Progetti
22
18%
Arbitraggio
0
In ritardo
1
5%
Gratuito
31
Sviluppatore 31
Valutazioni
(5)
Progetti
4
0%
Arbitraggio
2
50% / 50%
In ritardo
2
50%
Gratuito
32
Sviluppatore 32
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
33
Sviluppatore 33
Valutazioni
(52)
Progetti
57
60%
Arbitraggio
4
0% / 25%
In ritardo
1
2%
Gratuito
Ordini simili
Scalper in life 100+ USD
//+------------------------------------------------------------------+ //| XAUUSD FULL AUTO SAFE BOT MT5 | //| Converted from Pine Script v5 | //+------------------------------------------------------------------+ #property copyright "Converted by ChatGPT" #property version "1.00" #property strict #include <Trade/Trade.mqh> CTrade trade; // === INPUT === input double LotPercent =
Zoroe 30+ USD
//+------------------------------------------------------------------+ //| XAUUSD H1 Auto Trading Bot | //| Works on MT5 Desktop / VPS | //+------------------------------------------------------------------+ #property strict input double LotSize = 0.1; input int StopLossPoints = 200; input int TakeProfitPoints = 400; input int MagicNumber = 777; int emaHandle;
Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event. When the event occurs, the robot checks the emergence of trading signals and acts accordingly. Before you decide to program or order a trading robot, you
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
I need a prop firm ready EA that can make around 3% monthly. I am not expecting miracles, If you want to apply please send me backtesting stats from at least few years. 1 year is not enough, I am ready to sign in an agreement today
Develop a Gold scalper based on the arrow indicator in MT5. Buy at up arrow and close with the profit / Trailing Stop profit. If not profit, then close at the opposite sell arrow with profit/loss. Sell at down arrow and close with the TP / Trailing Stop profit. If not profit, then close at the opposite buy arrow with profit/loss. EA Properties: Lot Size: 0.1 Stop Loss: 0 / 50 Take Profit: 100 Trailing Start: Trailing
Hi, looking for an EA for passing prop accounts, profit target is 2,5% weekly with low drawdown, strict risk management, session filters, spread control, automatic stop, daily loss limits, VPS compatibility, reporting, and consistent performance across EURUSD in market conditions
We already have the strategy. Need an MT4 Expert Advisor to set up on MT4 platform from MQL5. Tasks 1.Check why AutoTrading/EA is not executing trades 2. Verify MT4 settings 3. Install/compile an EA file if needed and confirm it runs
Hello! I am looking for an experienced, top-rated developer to build highly profitable strategy software that provides accurate signals for both long-term and short-term trades. The software must analyse the market correctly, indicating when to enter and where to set Take Profit (TP) and Stop Loss (SL) levels. It must deliver accurate results across all markets, including Forex, cryptocurrencies, metals, indices, and
I’m looking for a profitable MT5 grid EA with strict risk controls and a clear focus on preventing account wipeouts. It can operate on any symbol, as long as capital preservation is the main priority. I’m interested in buying both the EA and its full source code if it meets my criteria. Let me know if you offer something like this

Informazioni sul progetto

Budget
30+ USD

Cliente

(14)
Ordini effettuati15
Numero di arbitraggi0