Lavoro terminato
Tempo di esecuzione 11 giorni
Feedback del cliente
My EA was a very complex . But he did it with ease and fixed all the correction with consoling words. Highly skilled and knowledged and a nice person to work with
Feedback del dipendente
This client has a clear vision of the project, which is very well detailed and makes the work much easier. He is also understanding, honest, and genuinely kind. I am very happy to work with him.
Specifiche
Requirement Specification
EA Name: Dynamic ATR×10 Sure-Fire Hedge EA (MT5)
1. Project Overview
This Expert Advisor (EA) runs on MT5 (ECN) /VPS server and executes a sequential hedging reverse martingale strategy with dynamic hedge gaps based on ATR.
Includes Range detection, Risk management and perferms efficiently in volatile instruments like BtcUsd/Gold. The system should be engineered for stability,precision, and broker-compliant execution without overwhelming the trading server.
Only one trade is active at any time — every hedge order closes the previous trade instantly.
Goal:
Automatically trade BTCUSD/Gold
Avoid server flooding (no spamming, no excessive modify requests)
Maintain stable, controlled execution even during volatility
Use ATR-based dynamic hedge gap to avoid small tight ranges
Close entire basket at TP, SL, or safety conditions
2. Core Strategy Summary
1️⃣ EA opens first Buy/Sell trade
2️⃣ If price moves against the trade by Hedge Gap,
Expert advisor:
Closes current trade
Opens opposite trade
New lot = PreviousLot × MartingaleMultiplier
Recalculates new Hedge Gap using ATR
3️⃣ Continue until TP is reached or max hedge level hit
4️⃣ Only ONE position exists at any moment (strict rule).
3. Entry Logic
3.1 Case 1 — Default Entry
EA opens the first trade immediately.
3.2 Case 2 — EMA Trend Filter (optional)
User can enable/disable this.
Conditions for entry:
EMAs: 5, 8, 13 (close)
All three EMAs must be parallel, spaced, not touching
If price is ABOVE 13 EMA → Buy
If price is BELOW 13 EMA → Sell
If not clear → No entry
This filter applies only to the first order, not to hedge orders.
4. Volatility Filters Before Opening First Trade
1. ATR Minimum
ATR(3 or user-defined) must be > ATR_Min
Default ATR_Min = 70 for BTCUSD
3. Spread Filter
Spread < user-defined max
4. High volatility block
Skip entry during extreme volatile spikes or news window
Rules:
Hedge Gap is recalculated for every new hedge order
If ATR < ATR_Min →
→ block ALL new hedges
→ optionally close basket at breakeven
If ATR drops 25–35% during a hedge cycle →
→ close basket at breakeven
→ cancel all pending orders
5. Hedging/Martingale Rules
1. If price moves against the open position by the Hedge Gap:
Close previous order instantly and
Open opposite order (Reverse direction hedge order)
Hedge order follows two options for the user
Option 1: Hedge gap is fixed and it is user defined
Option 2: Dynamic hedge gap logic (explained in point 6)
6. Dynamic Hedge Gap Logic
Formula
Hedge_Gap (pips) = ATR(Period 3 on M1) * ATR_Multiplier
Default ATR_Multiplier = 10
Example:
If ATR(3) = 143
→ Hedge Gap = 143 × 10 = 1430 pips (143.0 points)
Basket Stop loss value will be the stop loss for dynamic hedge gap
6(a). Static/Fixed Hedge Gap Logic
Lot = PreviousLot × multiplier
Multiplier 1 (2nd order): user input (default ×2 or ×3)
Multiplier 2 (3rd order onwards): user input (default ×2)
Hedging rules
2. Maximum Hedge Steps: user input (e.g., 3 levels)
3. No simultaneous Buy/Sell allowed.
EA must always maintain exactly one open order.
7. Take Profit (Very Important for Dynamic Gap)
1) Formula for TP Money Target
Since each Hedge Gap is different, TP must be dynamically computed.
TP_Money = Total_Loss_of_Previous_Orders (in the current sequence only) + UserDefinedProfit
Example:
User profit = $5
Previous lost trades = $18 (in the current sequence only, not the overall account loss)
→ TP must close when basket reaches (18+5)= +$23 total
2) Formula for fixed Hedge gap target
For fixed gap strategy:
Take profit: Hedge Gap*2
Stop Loss : Same value of hedge gap
TP Execution
Calculate TP price level from monetary target
All Take Profit/ Stop Loss/Pending order should be virtual i(t shoul be working in the EA and not sent to the Broker)
Close entire basket when target is hit
Close all pending orders
8. Basket Exit & Safety Rules
Basket must close immediately if:
1. Any trade hits its virtual TP
2. Basket Profit reaches user setting
3. Basket Loss reaches user setting
4. ATR drops 25–35% from initial entry ATR
5. Larry Williams Ranging Detection triggers (when market price is inside the hedging gap)
6. Spread exceeds max allowed (when market price is inside the hedging gap)
7. Max Hedge Levels reached → close at breakeven
8. Market becomes ranging (ATR compression) -(when market price is inside the hedging gap)
9. Connectivity error recovery requires safe exit
10. Daily Stop Loss reached
9. Larry Williams Trend/Ranging Logic (Optional)
User can toggle this ON/OFF.
Trend valid if:
Consecutive HH/HL candles = X (default 3)
Or consecutive LL/LH candles = X
Range detected if:
No HH/HL or LL/LH structure for X consecutive candles
If detected:
→ block entries
→ optionally close all trades & pending orders
10. Range Detection Filters
Two systems are used:
10.1 ATR Compression Technique
Range = ATR value less than user input threshold
10.2 Larry Williams Candle Structure
Range = HH/HL or LL/LH not formed for defined number of candles
EA actions during range:
Block new entries
Optionally close open trades
Cancel pending hedges
10.3 ATR slope method
ATR_slope ≥ 0
Calculation:
ATR_slope = ATR(current) − ATR( for the previous 5 canles)
11. Order Management
Only one active position at a time
All SL/TP must be virtual
All pending orders must be virtual
Remove all pending orders when basket ends
EA must restore state on restart using history/global variables
Stop trading if a basket sequence ends in loss
Sound Alert if Market starts reanging
12. Execution & Safety Layer
Must protect from:
Server overload
Order modification spamming
Requote loops
High slippage
Network delays
Important: During network disconnect
✅ 12 Safety Layers for Virtual SL/TP & Virtual Pending Orders
ALL of these are must in EA specification.)
1️⃣ Broker-Side “Emergency Hard Stop-Loss” (Hidden fail-safe)
Even if you use virtual SL/TP, your EA should optionally place a real broker SL far away, only for emergency use.
Example:
Virtual TP = 50 pips
Virtual SL = 80 pips
Emergency SL at broker = Stop loss *3 (never gets hit under normal logic)
Purpose:
2️⃣ Heartbeat Timer (EA Watchdog)
EA should constantly check:
If (LastTickTime > 3 seconds) → STOP trading & close basket
If (No new prices for 10 seconds) → Close all orders immediately
This protects against:
VPS freeze
MT5 terminal hang
Market data disconnect
3️⃣ Broker-Error Recovery Layer
Every execution function should have:
If ERR_TRADE_CONTEXT_BUSY → retry after delay
If ERR_PRICE_CHANGED → refresh price → retry
If ERR_NO_CONNECTION → switch to Safe Mode
Safe Mode =
No new entries
Only close orders when price becomes available
4️⃣ Server Throttle Protection
To avoid missing SL/TP execution:
Only allow 1 order action every 500–1200 ms
Any additional action is queued, not executed instantly
If queue > 3 → flush queue → close EA operations
This prevents:
“Order Flood”
“Trade is Busy”
Slow execution causing missed exits
6️⃣ Virtual SL/TP Double Check Mechanism
Before executing a virtual SL or virtual TP, do:
If price has moved beyond SL/TP → execute immediately at market
Else → check again after 100 ms and confirm
This prevents:
SL/TP slips due to sudden spike
Execution on incorrect stale price
7️⃣ Global Variable Backup for EA State
Every time a hedge or grid order is opened, write to global variable or file:
Last order type
Last lot size
Last hedge level
Last hedge gap
Basket accumulated loss
Virtual TP price
ATR at entry
On terminal restart:
EA restores state instantly and continues where it left off.
8️⃣ Freeze-Level Aware Execution
Before closing a trade or executing TP:
If distance < FreezeLevel → retry after tick
If still frozen → execute Close at Bid/Ask without SL/TP modification
Prevents:
Failure due to broker-imposed freeze zone
Missed SL/TP due to “Modify not allowed” errors
9️⃣ Execution Window Lock
When EA is closing an order:
Block all other operations
Allow only one close attempt
Wait until confirmation is received
Resume activity
This avoids:
Double closing
Closing same ticket twice
Duplicate trades during volatility
🔟 High-Volatility Safe Mode
If ATR suddenly spikes:
If ATR(current) > ATR(previous) × 2.0/2.5/3.5
> 2.0 → Caution (reduce aggressiveness: widen hedge gap, reduce new-entry frequency)
> 2.5 → Safe Mode (pause new entries, reduce multiplier, no further hedges)
> 3.5 → Emergency Mode (close basket to breakeven or hard-close
→ Disable hedging
→ Reduce lot multiplier
→ Extend hedge gap
→ Consider emergency close
Protects against:
Flash crashes
Sudden BTC/Gold spikes
Spread blowouts
1️⃣1️⃣ Virtual TP Protection using Tick-by-Tick Watch
Instead of waiting for bar close:
If (Bid/Ask crosses virtual TP):
Close order immediately
Tick-based logic prevents:
Missing TP due to fast spikes
Exiting too late
Overrunning by 3–10 pips
1️⃣2️⃣ “Last Chance Close” Mechanism
If all safety systems fail (very rare):
If Floating Loss > 30% of Equity
Close ALL orders immediately
Reset EA
This is the final hard shield preventing full account wipeout.
Developer Guidelines:
Use retry logic with limited attempts
Minimum delay between operations
Handle "Trade is busy", "Invalid price", "No connection" gracefully
ECN brokers: send order → modify → check fill
VPS stable loop timing
13. User Inputs
Important instruction: All Entry filter, Exit filter, Range filter, Logic filter should have True/False. (user option to switch it ON or OFF)
Important instruction: Option to switch off all the 12 Safety Layers for Virtual SL/TP & Virtual Pending Orders
Trading
First lot size
ATR Period (default 3)
ATR Multiplier (default 10)
ATR_Minimum
Take profit in fixed hedge method: multiplier 2/3 with decimal value
Stop loss in fixed hedge method : default same as hedge value
Max Hedge Levels
Martingale multipliers
Martingale multiplier for the second order
Martingale multiplier for the 3rd order onwards
Hedge gap (Fixed / Dynamic ATR)
If hedge gap is fixed method: User input for gap value
If hedge gap is Dynamic ATR method : User input for ATR multiplier value
Basket ProfitTarget in USD for Dynamic hedge method
Basket Stop loss in dynamic hedge method :
Spread Max
Slippage Max
Time filters (start/stop times)
Trade direction (Auto/Buy/Sell)
Time frame for EA to run even if changed in chart : M1/ M5/M15/H1
Loop option: Should the EA run continously after each cycle or not
Virtual TP/SL (ON/OFF) If Off all TP/SL/Pending order will be sent to broker server.
Filters (side heading in User input)
ATR Compression Range detection (threshold value) -
ATR slope filter
Larry Williams Trend logic settings
All Range filters ON/OFF
Block entries ON/OFF
Close trades on range ON/OFF
General (side heading in User input)
Magic number
Digits parameter: decimals
Display options : candle colour, background colour,Virtual Tp line, and other colour changing options
Error alerts ON/OFF
Last Chance Close Mechanism.Floating loss max value
14. On-Chart Display
Small panel on top left. Spaced so that it wont disturb the chart view on the right hand side
Current day profit
Basket cumulative loss
Spread
Number of hedge steps used
Total lot size of sequence
Virtual TP line
System Status (Idle/Waiting/Trading/Error)
Reason /comment on Previous hedging sequence order closed.
Alerts for errors
Market status: Trending (green)/ Ranging (letters in red colour)
ATR Compression Technique: Trending or Ranging
ATR slope method: Trending or Ranging
Larry Williams Candle Structure: Trending or Ranging
15. Timeframe Rules
EA must always calculate ATR from M1 timeframe even if chart is different.
16. Developer Deliverables
Full MT5 source code (.mq5)
Full rights for the EA.
Stable, optimized logic
No server spamming
Recovery logic after restart
Virtual SL/TP system
Clean coding standards with
Comments on history page next to each trade. Reason for the trade closure
Memory-safe, thread-safe design
ECN & VPS compatible
Con risposta
1
Valutazioni
Progetti
57
18%
Arbitraggio
6
33%
/
17%
In ritardo
1
2%
Gratuito
Pubblicati: 2 codici
2
Valutazioni
Progetti
22
9%
Arbitraggio
6
33%
/
50%
In ritardo
1
5%
Caricato
3
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
4
Valutazioni
Progetti
24
50%
Arbitraggio
1
100%
/
0%
In ritardo
6
25%
Gratuito
5
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
6
Valutazioni
Progetti
3
33%
Arbitraggio
2
0%
/
100%
In ritardo
0
Gratuito
7
Valutazioni
Progetti
8
0%
Arbitraggio
2
0%
/
50%
In ritardo
1
13%
In elaborazione
8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Valutazioni
Progetti
87
29%
Arbitraggio
24
13%
/
58%
In ritardo
7
8%
In elaborazione
10
Valutazioni
Progetti
3
33%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 2 articoli
11
Valutazioni
Progetti
46
28%
Arbitraggio
14
21%
/
64%
In ritardo
1
2%
Occupato
12
Valutazioni
Progetti
976
74%
Arbitraggio
27
19%
/
67%
In ritardo
101
10%
In elaborazione
Pubblicati: 1 articolo, 6 codici
13
Valutazioni
Progetti
2
0%
Arbitraggio
4
25%
/
50%
In ritardo
1
50%
Gratuito
14
Valutazioni
Progetti
2
0%
Arbitraggio
1
0%
/
100%
In ritardo
1
50%
Gratuito
15
Valutazioni
Progetti
262
30%
Arbitraggio
0
In ritardo
3
1%
Gratuito
Pubblicati: 2 codici
16
Valutazioni
Progetti
20
10%
Arbitraggio
8
38%
/
38%
In ritardo
3
15%
In elaborazione
17
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
18
Valutazioni
Progetti
6
0%
Arbitraggio
1
0%
/
100%
In ritardo
0
Gratuito
19
Valutazioni
Progetti
243
74%
Arbitraggio
7
100%
/
0%
In ritardo
1
0%
Gratuito
Pubblicati: 1 articolo
20
Valutazioni
Progetti
29
21%
Arbitraggio
20
10%
/
50%
In ritardo
8
28%
In elaborazione
21
Valutazioni
Progetti
0
0%
Arbitraggio
1
0%
/
100%
In ritardo
0
Gratuito
Ordini simili
Donchian channel expert adviser
30+ USD
==== GENERAL SETTINGS ==== Buy trades = true Sell trades = true Upper Band period = 20 Lower Band period = 10 Timeframe = 1 Hour Next signal bars= 5 Order Comment = Donchian Channel EA Magic number = 123 Maximum allowed spread = 20 Maximum allowed slippage = 20 ====TRADE SETTINGS ==== Trade volume = VOLUME_FIXED / VOLUME_PERCENT Fixed Lots = 0.01 Risk percent of Balance = 5 TP Points (0 to No TP) = 100 SL Points (0
Looking for a Scalping bot, it Must be on MT5, Takes many trades , Any strategy is fine, Has to be profitable last 3 months backtest, Send me a demo license file to check it's performance
I hope to acquire a profitable and existing expert advisor (EA) from the gold market, with complete source code, to add to our client portfolio. you can WECHAT: Faca7898 Please note EA when adding friends. It should be clarified that this does not require you to formulate or design new strategies. If you already have a verified, consistent, and production-ready EA, I am willing to purchase it immediately and engage
I’m looking for an experienced developer to help build a trading bot for Polymarket , focused on short-term crypto prediction markets (e.g. 5–15 minute intervals). The strategy is fully rule-based and operates on binary outcome markets (YES/NO shares). The bot should be able to: monitor live market prices and probabilities, execute trades based on predefined conditions, manage positions dynamically before market
MT4 TMA Reference
30+ USD
Eu preciso disso. A linha central do TMA (17,5,1.5) será a principal referência. Outra linha de média móvel (AVG) de 3 períodos decrescentes 2. As ordens serão as seguintes: abaixo, somente compra de TMA; acima, somente venda de TMA. O sinal de entrada será o seguinte: se o preço estiver acima da Média Móvel Tarifária (TMA), será apenas para venda; quando o preço se mantiver abaixo da Média Móvel Tarifária (AVG)
Hola, estoy buscando un desarrollador MQL5 con experiencia real en trading algorítmico. Necesito un EA para XAUUSD con: Control de Drawdown filtro de mercado (tendencia vs rango) gestión de riesgo dinámica optimización para sesiones específicas Antes de avanzar quisiera saber: ¿Qué experiencia tienes con EAs en MT5? ¿Has trabajado con estrategias de oro (XAUUSD)? ¿Cómo gestionas el drawdown en un bot? ¿Puedes mostrar
Double ma
30+ USD
Create an EA on moving averages. The EA will open a trade when the price is above the averages. It will open another when it is below the averages. Ability to work on any timeframe. Ability to use a news filter and a martingale...or to work on a grid
There is a programming god without EA here. I want to find someone to make an EA to operate gold and silver. There is a model, but it can't run. So I want to find someone to make professional improvements to make my EA run. If you are interested, you can WECHAT: 15113958263. Please note EA when adding friends
Robots in C++ (cAlgo trading platform)
30 - 80 USD
Iam seeking for a good trade robot/indicator debugging developer to finalize and close profits for me,in both my exneas blocker and MT5,for expert advisor for trading both gold xausd and sliver xagusd,l really want a perfect robot that can herence and risk management principles,not to leave out am a beginner
Non-repainting Indicator for scalping Gold / Xauusd
30 - 200 USD
I am looking for non-repainting indicator to run in all sessions for scalping gold , happy to discuss if you have developed such indicators which can show profit and stop loss levels
Informazioni sul progetto
Budget
30+ USD
Scadenze
a 15 giorno(i)