Add smart trailing

MQL5 Uzmanlar Forex

İş tamamlandı

Tamamlanma süresi: 31 gün

Şartname

Hello,

I have the EA source code ready, and it is open-source/editable. I need you to add and improve the trailing stop logic with two clear inputs:

1. Trailing Start
2. Trailing Step

Please implement it carefully and accurately.

Trailing Start  
This is the profit distance where the EA starts activating the trailing stop.

Example:
If Trailing Start = 35 pips, the EA should not move the Stop Loss until the trade reaches +35 pips profit.

Trailing Step  
This is the step distance used to move the Stop Loss after trailing starts.

Example:
If:
Trailing Start = 35 pips  
Trailing Step = 12 pips  

Then the logic should be:

- At +35 pips profit → move SL to around +5 pips profit
- At +47 pips profit → move SL to around +17 pips profit
- At +59 pips profit → move SL to around +29 pips profit
- At +71 pips profit → move SL to around +41 pips profit
- At +83 pips profit → move SL to around +53 pips profit

The Stop Loss should always trail behind the current profit by the selected step distance.

Very important requirements:

- The EA must only move the Stop Loss forward in profit.
- The EA must never move the Stop Loss backward.
- The trailing must work correctly for both Buy and Sell trades.
- The EA must calculate pips/points correctly on XAUUSD and XAUUSDm, especially on Exness.
- The trailing must continue working correctly after partial close.
- If partial close is enabled, the EA should close 50% first, then manage the remaining position with break-even and trailing stop.
- Avoid repeated unnecessary SL modifications on every tick to prevent errors, freezing, or broker rejection.
- Please make sure the logic respects broker stop levels and minimum distance rules.
- If a manual Stop Loss already exists, the EA should respect it and only improve it when the trailing condition is reached.
- Please keep the existing EA features and only add/improve this trailing logic without breaking the current workflow.

Suggested default settings for XAUUSD:

Partial Close Trigger = 30 pips  
BreakEven Trigger = 30 pips  
BreakEven Offset = 5 pips  
Trailing Start = 35 pips  
Trailing Step = 12 pips  

Also, if you think there is a better professional improvement for gold trading, such as ATR-based trailing, spread filter, or news/time filter, please suggest it before implementation.

Please test the EA carefully on XAUUSD/XAUUSDm to make sure the trailing stop works exactly as described and without execution errors.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(283)
Projeler
354
29%
Arabuluculuk
37
27% / 65%
Süresi dolmuş
10
3%
Yüklendi
3
Geliştirici 3
Derecelendirme
(213)
Projeler
286
47%
Arabuluculuk
27
59% / 37%
Süresi dolmuş
36
13%
Serbest
4
Geliştirici 4
Derecelendirme
(111)
Projeler
183
25%
Arabuluculuk
25
16% / 76%
Süresi dolmuş
16
9%
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(23)
Projeler
34
53%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
1
3%
Serbest
7
Geliştirici 7
Derecelendirme
(4)
Projeler
7
57%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(465)
Projeler
815
49%
Arabuluculuk
75
21% / 51%
Süresi dolmuş
142
17%
Serbest
9
Geliştirici 9
Derecelendirme
(2347)
Projeler
2953
63%
Arabuluculuk
125
44% / 26%
Süresi dolmuş
429
15%
Serbest
10
Geliştirici 10
Derecelendirme
(85)
Projeler
174
44%
Arabuluculuk
3
100% / 0%
Süresi dolmuş
5
3%
Serbest
Yayınlandı: 1 kod
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(24)
Projeler
32
38%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
5
16%
Çalışıyor
13
Geliştirici 13
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(75)
Projeler
111
50%
Arabuluculuk
26
31% / 50%
Süresi dolmuş
9
8%
Serbest
Yayınlandı: 1 makale
15
Geliştirici 15
Derecelendirme
(225)
Projeler
285
41%
Arabuluculuk
15
13% / 47%
Süresi dolmuş
67
24%
Serbest
16
Geliştirici 16
Derecelendirme
(9)
Projeler
16
19%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
3
19%
Yüklendi
17
Geliştirici 17
Derecelendirme
(6)
Projeler
13
62%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
2
15%
Çalışıyor
18
Geliştirici 18
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(319)
Projeler
571
35%
Arabuluculuk
83
31% / 45%
Süresi dolmuş
206
36%
Serbest
20
Geliştirici 20
Derecelendirme
(7)
Projeler
6
0%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
2
33%
Serbest
21
Geliştirici 21
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
22
Geliştirici 22
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
(258)
Projeler
269
29%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
3
1%
Çalışıyor
Yayınlandı: 2 kod
24
Geliştirici 24
Derecelendirme
(279)
Projeler
378
72%
Arabuluculuk
19
32% / 47%
Süresi dolmuş
16
4%
Serbest
Yayınlandı: 15 kod
25
Geliştirici 25
Derecelendirme
(29)
Projeler
35
37%
Arabuluculuk
0
Süresi dolmuş
2
6%
Serbest
26
Geliştirici 26
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Scalping EA/straddle 30 - 200 USD
Title: Custom EA: Dynamic Trailing Limit Grid with Volatility/Velocity Filter and Auto SL/TP Description: I am looking for an experienced MQL5 programmer to develop a high-performance, robust Expert Advisor (EA) for MetaTrader 5. The strategy relies on dynamic trailing limit orders that automatically adjust to market price changes, featuring a safety buffer during high-velocity price spikes. The EA must include the
Projet : Automatisation de la Stratégie ABCD Fibonacci + Module de Récupération (Recovery) Plateforme : MetaTrader 5 (MQL5) 1. PRÉSENTATION DU PROJET L'objectif est de développer un Expert Advisor (EA) sur MetaTrader 5 exécutant de manière 100% automatique une stratégie systématique basée sur la structure de prix ABCD, les niveaux de Fibonacci, un filtre de tendance par moyennes mobiles et un mécanisme spécifique de
Freelance Task — EA Recovery Layer Hello. I have a ready-made MQL5 EA. The signals, SL/TP and lot calculation should essentially not be touched. I need a recovery system added. I am not a programmer — below is how the robot should behave. What stays Entry only from an EA signal. Stop-loss is not a new signal. Trailing is already built into my EA — recovery does not implement its own trailing. If trailing is disabled
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
Creating a bot using the Parabolic indicator with a simple interface.. I want a bot that uses the Parabolic SAR indicator only, with these orders attached to it. Boot name : HEMIN .FX Magic number : 000000 …………………………………………………. Trade behavior : regular OR inverse OR only long "buy" OR only short "sell" Timeframe : ………… Period: ……… ………………………………………………….. Lot size : ……………… Break even in points : …
Hi, I need an experienced NinjaTrader 8/NinjaScript developer to finish or rebuild an automated futures strategy, ideally by the end of this week. I already have the complete TradingView Pine Script reference strategy, an existing ~2,000-line NinjaScript implementation, Playback logs, and known historical benchmark trades. MOST IMPORTANT REQUIREMENT: TRADINGVIEW ↔ NINJATRADER PARITY. The Pine Script is the reference
I am looking for a developer experienced in EAs, MT5 and trade management optimization to help me add an intelligent early-exit system to my existing XAUUSD trading robot. The EA is already fully functional and performs best on the M15 timeframe. The entry strategy, BUY/SELL logic, sessions and core structure are already implemented. The work should focus exclusively on adding early exits for trades that are
I need a custom MQL5 indicator for MetaTrader 5. The indicator must automatically print entry, stop loss, and take profit zones on the chart using dots. A critical requirement is that these dots must be non-lagging and absolutely non-repainting. Additionally, the indicator needs to identify and display current supply and demand zones. Please provide the mq5 source code and the ex5 file upon completion
PHANTOM PROTOCOL V1 35 - 150 USD
PHANTOM PROTOCOL V1 – MT5 EXPERT ADVISOR SPECIFICATION Develop a professional MetaTrader 5 (MT5) Expert Advisor named “PHANTOM PROTOCOL V1”. PRIMARY MARKET: - XAUUSD (Gold) - Designed primarily for M15 and H1 timeframes. - The EA must work with both 3-digit and 2-digit gold pricing where applicable. TRADING LOGIC: Use pure price-action and market-structure analysis rather than relying on a single indicator. The EA
Wanna Create A Trading Robot That Uses Liquidity Sweep And Smart Money Concept EA That Works On PC. I want A Developer Who Can Program Exactly My Strategy That Will Be Shared on A Video Upon The Selection. it Should Follow My Rules .It has To be able To Read Price Action, followed By Liquidity Sweep Areas And Combine with Smart Money Concept Knowledge. We Will Talk about Parameters later on . The robot should be able

Proje bilgisi

Bütçe
30 - 40 USD
Son teslim tarihi
from 1 to 2 gün