Tâche terminée
Temps d'exécution 11 jours
Commentaires de l'employé
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.
Commentaires du client
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
Spécifications
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
Répondu
1
Évaluation
Projets
59
20%
Arbitrage
6
33%
/
17%
En retard
1
2%
Gratuit
Publié : 2 codes
2
Évaluation
Projets
28
7%
Arbitrage
9
33%
/
33%
En retard
1
4%
Travail
3
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
4
Évaluation
Projets
24
50%
Arbitrage
1
100%
/
0%
En retard
6
25%
Gratuit
5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Évaluation
Projets
3
33%
Arbitrage
2
0%
/
100%
En retard
0
Gratuit
7
Évaluation
Projets
12
0%
Arbitrage
3
33%
/
33%
En retard
0
Gratuit
8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Évaluation
Projets
90
29%
Arbitrage
24
13%
/
58%
En retard
7
8%
Travail
10
Évaluation
Projets
4
25%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
Publié : 2 articles
11
Évaluation
Projets
68
43%
Arbitrage
15
27%
/
60%
En retard
1
1%
Travail
12
Évaluation
Projets
978
74%
Arbitrage
27
19%
/
67%
En retard
100
10%
Gratuit
Publié : 1 article, 6 codes
13
Évaluation
Projets
2
0%
Arbitrage
4
25%
/
50%
En retard
1
50%
Gratuit
14
Évaluation
Projets
2
0%
Arbitrage
1
0%
/
100%
En retard
1
50%
Gratuit
Publié : 4 codes
15
Évaluation
Projets
269
29%
Arbitrage
2
50%
/
0%
En retard
3
1%
Travail
Publié : 2 codes
16
Évaluation
Projets
22
18%
Arbitrage
9
33%
/
44%
En retard
3
14%
Travail
Publié : 1 code
17
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
18
Évaluation
Projets
6
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
19
Évaluation
Projets
247
74%
Arbitrage
7
100%
/
0%
En retard
1
0%
Gratuit
Publié : 2 articles, 1 code
20
Évaluation
Projets
33
27%
Arbitrage
20
10%
/
50%
En retard
11
33%
Gratuit
21
Évaluation
Projets
0
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
Commandes similaires
I’m looking for an experienced MQL5 developer to build a custom MT5 Expert Advisor for gold scalping, based on clearly defined support/resistance levels and false breakouts. Before development, I would welcome your technical feedback on the proposed rules, their feasibility, and any improvements you recommend. Please explain the reasoning behind your suggestions rather than promising returns. Proposed strategy: 1
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. Core Trading Logic: Execute automatic Buy and Sell trades using high-probability entry signals. Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
The purpose of this order is ONLY to test and implement my H1 POI (Point of Interest) identification logic correctly. I am not requesting the complete EA at this stage. I will provide the exact rules for identifying the H1 POI after selecting the developer. The developer must convert those rules into clear, deterministic MQL5 logic. Requirements: Analyze H1 candles according to the rules I provide. Identify and mark
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
Hello, I’m looking for an experienced developer to research, build, test, and install a fully automated MetaTrader 5 trading bot for gold, XAUUSD. My total development and installation budget is $300, including all agreed work and fees. My goal is to pass a $100,000 FTMO US Two-Step Standard evaluation and sustainably maintain the funded account. I need a day-trading strategy that can buy in bullish markets and sell
MT4 expert advisor
500+ USD
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
Hello International Developer, I need LIFETIME MT5 EA for XAUUSD Gold. REQUIREMENTS: 1. Lifetime bot - No expiry date, unlimited accounts, unlimited installations 2. Must include source code .mq5 file - This makes it lifetime 3. Every trade MUST have Stop Loss 300 points and Take Profit 600 points 4. No martingale, No grid, No averaging - Clean safe strategy 5. Auto lot size = 1% risk per trade for good margin growth
Informations sur le projet
Budget
30+ USD
Délais
à 15 jour(s)