Adding trailing stop loss to four expert advisors MetaTrader 5

MQL5 Experts

Spécifications

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.



Répondu

1
Développeur 1
Évaluation
(7)
Projets
9
0%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(240)
Projets
301
28%
Arbitrage
32
25% / 63%
En retard
9
3%
Chargé
3
Développeur 3
Évaluation
(15)
Projets
34
24%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
4
Développeur 4
Évaluation
(321)
Projets
499
19%
Arbitrage
33
42% / 30%
En retard
32
6%
Chargé
5
Développeur 5
Évaluation
(1269)
Projets
1689
49%
Arbitrage
52
71% / 12%
En retard
37
2%
Gratuit
6
Développeur 6
Évaluation
(623)
Projets
977
46%
Arbitrage
32
38% / 34%
En retard
96
10%
Travail
Publié : 6 codes
7
Développeur 7
Évaluation
(32)
Projets
49
73%
Arbitrage
4
50% / 0%
En retard
0
Gratuit
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(269)
Projets
397
27%
Arbitrage
38
39% / 50%
En retard
1
0%
Travail
10
Développeur 10
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
Projets
1
0%
Arbitrage
0
En retard
1
100%
Gratuit
14
Développeur 14
Évaluation
(23)
Projets
24
67%
Arbitrage
0
En retard
1
4%
Travail
Publié : 2 codes
15
Développeur 15
Évaluation
(3)
Projets
1
100%
Arbitrage
3
0% / 100%
En retard
0
Gratuit
16
Développeur 16
Évaluation
(499)
Projets
743
56%
Arbitrage
47
32% / 30%
En retard
119
16%
Travail
Publié : 1 code
17
Développeur 17
Évaluation
(265)
Projets
595
35%
Arbitrage
64
20% / 58%
En retard
147
25%
Gratuit
Publié : 1 article, 22 codes
18
Développeur 18
Évaluation
(1)
Projets
2
0%
Arbitrage
2
0% / 100%
En retard
0
Travail
19
Développeur 19
Évaluation
(51)
Projets
69
35%
Arbitrage
4
25% / 75%
En retard
0
Gratuit
20
Développeur 20
Évaluation
(329)
Projets
394
53%
Arbitrage
20
55% / 15%
En retard
28
7%
Chargé
21
Développeur 21
Évaluation
(151)
Projets
189
57%
Arbitrage
10
80% / 0%
En retard
0
Gratuit
Publié : 1 code
22
Développeur 22
Évaluation
(516)
Projets
784
63%
Arbitrage
33
27% / 45%
En retard
23
3%
Gratuit
Publié : 1 code
23
Développeur 23
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
24
Développeur 24
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Travail
25
Développeur 25
Évaluation
(59)
Projets
81
43%
Arbitrage
27
11% / 70%
En retard
8
10%
Gratuit
26
Développeur 26
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 articles
27
Développeur 27
Évaluation
(4)
Projets
3
33%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
(2)
Projets
2
0%
Arbitrage
2
0% / 50%
En retard
1
50%
Chargé
30
Développeur 30
Évaluation
(18)
Projets
22
18%
Arbitrage
0
En retard
1
5%
Gratuit
31
Développeur 31
Évaluation
(5)
Projets
4
0%
Arbitrage
2
50% / 50%
En retard
2
50%
Gratuit
32
Développeur 32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
33
Développeur 33
Évaluation
(52)
Projets
57
60%
Arbitrage
4
0% / 25%
En retard
1
2%
Gratuit
34
Développeur 34
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
30+ USD

Client

(14)
Commandes passées15
Nombre d'arbitrages0