Adding trailing stop loss to four expert advisors MetaTrader 5

MQL5 Uzman Danışmanlar

İş Gereklilikleri

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.



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(7)
Projeler
9
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(240)
Projeler
301
28%
Arabuluculuk
32
25% / 63%
Süresi dolmuş
9
3%
Yüklendi
3
Geliştirici 3
Derecelendirme
(15)
Projeler
34
24%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(321)
Projeler
499
19%
Arabuluculuk
33
42% / 30%
Süresi dolmuş
32
6%
Yüklendi
5
Geliştirici 5
Derecelendirme
(1269)
Projeler
1689
49%
Arabuluculuk
52
71% / 12%
Süresi dolmuş
37
2%
Serbest
6
Geliştirici 6
Derecelendirme
(623)
Projeler
977
46%
Arabuluculuk
32
38% / 34%
Süresi dolmuş
96
10%
Çalışıyor
Yayınlandı: 6 kod
7
Geliştirici 7
Derecelendirme
(32)
Projeler
49
73%
Arabuluculuk
4
50% / 0%
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
(269)
Projeler
397
27%
Arabuluculuk
38
39% / 50%
Süresi dolmuş
1
0%
Çalışıyor
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
1
100%
Serbest
14
Geliştirici 14
Derecelendirme
(23)
Projeler
24
67%
Arabuluculuk
0
Süresi dolmuş
1
4%
Serbest
Yayınlandı: 2 kod
15
Geliştirici 15
Derecelendirme
(3)
Projeler
1
100%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
0
Serbest
16
Geliştirici 16
Derecelendirme
(499)
Projeler
743
56%
Arabuluculuk
47
32% / 30%
Süresi dolmuş
119
16%
Çalışıyor
Yayınlandı: 1 kod
17
Geliştirici 17
Derecelendirme
(265)
Projeler
595
35%
Arabuluculuk
64
20% / 58%
Süresi dolmuş
147
25%
Serbest
Yayınlandı: 1 makale, 22 kod
18
Geliştirici 18
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Çalışıyor
19
Geliştirici 19
Derecelendirme
(51)
Projeler
69
35%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
0
Serbest
20
Geliştirici 20
Derecelendirme
(329)
Projeler
394
53%
Arabuluculuk
20
55% / 15%
Süresi dolmuş
28
7%
Yüklendi
21
Geliştirici 21
Derecelendirme
(151)
Projeler
189
57%
Arabuluculuk
10
80% / 0%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
22
Geliştirici 22
Derecelendirme
(516)
Projeler
784
63%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
23
3%
Serbest
Yayınlandı: 1 kod
23
Geliştirici 23
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
24
Geliştirici 24
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
25
Geliştirici 25
Derecelendirme
(59)
Projeler
81
43%
Arabuluculuk
27
11% / 70%
Süresi dolmuş
8
10%
Serbest
26
Geliştirici 26
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 makale
27
Geliştirici 27
Derecelendirme
(4)
Projeler
3
33%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Serbest
28
Geliştirici 28
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
29
Geliştirici 29
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
50%
Yüklendi
30
Geliştirici 30
Derecelendirme
(18)
Projeler
22
18%
Arabuluculuk
0
Süresi dolmuş
1
5%
Serbest
31
Geliştirici 31
Derecelendirme
(5)
Projeler
4
0%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
2
50%
Serbest
32
Geliştirici 32
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
33
Geliştirici 33
Derecelendirme
(52)
Projeler
57
60%
Arabuluculuk
4
0% / 25%
Süresi dolmuş
1
2%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD

Müşteri

(14)
Verilmiş siparişler15
Arabuluculuk sayısı0