Adding trailing stop loss to four expert advisors MetaTrader 5

MQL5 Experts

Termos de Referência

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.



Respondido

1
Desenvolvedor 1
Classificação
(7)
Projetos
9
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(240)
Projetos
301
28%
Arbitragem
32
25% / 63%
Expirado
9
3%
Carregado
3
Desenvolvedor 3
Classificação
(15)
Projetos
34
24%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
4
Desenvolvedor 4
Classificação
(321)
Projetos
499
19%
Arbitragem
33
42% / 30%
Expirado
32
6%
Carregado
5
Desenvolvedor 5
Classificação
(1269)
Projetos
1689
49%
Arbitragem
52
71% / 12%
Expirado
37
2%
Livre
6
Desenvolvedor 6
Classificação
(623)
Projetos
977
46%
Arbitragem
32
38% / 34%
Expirado
96
10%
Trabalhando
Publicou: 6 códigos
7
Desenvolvedor 7
Classificação
(32)
Projetos
49
73%
Arbitragem
4
50% / 0%
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(269)
Projetos
397
27%
Arbitragem
38
39% / 50%
Expirado
1
0%
Trabalhando
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
1
100%
Livre
14
Desenvolvedor 14
Classificação
(23)
Projetos
24
67%
Arbitragem
0
Expirado
1
4%
Trabalhando
Publicou: 2 códigos
15
Desenvolvedor 15
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(499)
Projetos
743
56%
Arbitragem
47
32% / 30%
Expirado
119
16%
Trabalhando
Publicou: 1 código
17
Desenvolvedor 17
Classificação
(265)
Projetos
595
35%
Arbitragem
64
20% / 58%
Expirado
147
25%
Livre
Publicou: 1 artigo, 22 códigos
18
Desenvolvedor 18
Classificação
(1)
Projetos
2
0%
Arbitragem
2
0% / 100%
Expirado
0
Trabalhando
19
Desenvolvedor 19
Classificação
(51)
Projetos
69
35%
Arbitragem
4
25% / 75%
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
(329)
Projetos
394
53%
Arbitragem
20
55% / 15%
Expirado
28
7%
Carregado
21
Desenvolvedor 21
Classificação
(151)
Projetos
189
57%
Arbitragem
10
80% / 0%
Expirado
0
Livre
Publicou: 1 código
22
Desenvolvedor 22
Classificação
(516)
Projetos
784
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
Publicou: 1 código
23
Desenvolvedor 23
Classificação
(1)
Projetos
1
100%
Arbitragem
0
Expirado
0
Livre
24
Desenvolvedor 24
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Trabalhando
25
Desenvolvedor 25
Classificação
(59)
Projetos
81
43%
Arbitragem
27
11% / 70%
Expirado
8
10%
Livre
26
Desenvolvedor 26
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 2 artigos
27
Desenvolvedor 27
Classificação
(4)
Projetos
3
33%
Arbitragem
2
0% / 100%
Expirado
0
Livre
28
Desenvolvedor 28
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
29
Desenvolvedor 29
Classificação
(2)
Projetos
2
0%
Arbitragem
2
0% / 50%
Expirado
1
50%
Carregado
30
Desenvolvedor 30
Classificação
(18)
Projetos
22
18%
Arbitragem
0
Expirado
1
5%
Livre
31
Desenvolvedor 31
Classificação
(5)
Projetos
4
0%
Arbitragem
2
50% / 50%
Expirado
2
50%
Livre
32
Desenvolvedor 32
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
33
Desenvolvedor 33
Classificação
(52)
Projetos
57
60%
Arbitragem
4
0% / 25%
Expirado
1
2%
Livre
34
Desenvolvedor 34
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
I am looking for an experienced MQL5 developer to convert a complex TradingView Pine Script (will provide the script from tradingview) into a fully automated MT5 Expert Advisor -bot. The TradingView script includes: Market Structure (BOS, CHoCH, Swing BOS) Strong / Weak High & Low Equilibrium (Premium / Discount zones) Volumetric Order Blocks Fair Value Gaps (FVG / VI / OG) Accumulation & Distribution zones Equal
Ai 1. Trend identify up or down through lMA 50 at daily time frame ( if market stay above LMA 50 is called up trend & stay down lMA is called Down trend. 2. Entry :for uptrend buy & down trend sell though cross over lMA 50by21 & 21 by 14or7 ( customisable )1m or 5m flexible time 3. Daily target Floating loss (DD) if over no entry as % - close all 4. TP, break even after 2 pips (customisable)& SL option
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

Informações sobre o projeto

Orçamento
30+ USD

Cliente

(14)
Pedidos postados15
Número de arbitragens0