Trabajo finalizado
Plazo de ejecución 11 días
Comentario 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
Comentario del Ejecutor
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.
Tarea técnica
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
Han respondido
1
Evaluación
Proyectos
57
18%
Arbitraje
6
33%
/
17%
Caducado
1
2%
Libre
Ha publicado: 2 ejemplos
2
Evaluación
Proyectos
22
9%
Arbitraje
5
40%
/
40%
Caducado
1
5%
Trabajando
3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Evaluación
Proyectos
24
50%
Arbitraje
1
100%
/
0%
Caducado
6
25%
Libre
5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Evaluación
Proyectos
3
33%
Arbitraje
2
0%
/
100%
Caducado
0
Libre
7
Evaluación
Proyectos
3
0%
Arbitraje
1
0%
/
100%
Caducado
0
Trabaja
8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Evaluación
Proyectos
85
27%
Arbitraje
24
13%
/
58%
Caducado
7
8%
Trabajando
10
Evaluación
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 artículos
11
Evaluación
Proyectos
36
17%
Arbitraje
13
8%
/
69%
Caducado
1
3%
Ocupado
12
Evaluación
Proyectos
966
74%
Arbitraje
27
19%
/
67%
Caducado
100
10%
Trabajando
Ha publicado: 1 artículo, 6 ejemplos
13
Evaluación
Proyectos
2
0%
Arbitraje
4
25%
/
50%
Caducado
1
50%
Libre
14
Evaluación
Proyectos
2
0%
Arbitraje
1
0%
/
100%
Caducado
1
50%
Libre
15
Evaluación
Proyectos
255
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
16
Evaluación
Proyectos
18
6%
Arbitraje
8
38%
/
38%
Caducado
2
11%
Trabajando
17
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
18
Evaluación
Proyectos
6
0%
Arbitraje
1
0%
/
100%
Caducado
0
Libre
19
Evaluación
Proyectos
242
74%
Arbitraje
7
100%
/
0%
Caducado
1
0%
Trabaja
Ha publicado: 1 artículo
20
Evaluación
Proyectos
29
21%
Arbitraje
20
10%
/
50%
Caducado
8
28%
Trabaja
21
Evaluación
Proyectos
0
0%
Arbitraje
1
0%
/
100%
Caducado
0
Libre
Solicitudes similares
hello great developer I need help developing an ICT 2022 model indicator and testing it thoroughly to ensure optimal performance and accuracy. Scope of work - Create an ICT 2022 model indicator with specified features. - Conduct repeated tests and strategy tests to refine the indicator. - Implement midnight to 9:30 box high and low range settings. - Include signal settings for major liquidity and structure break with
Floating bot
30+ USD
I need someone to build an easy bot for me. Whenever the candle closes outside a particular horizonal line I will put on my mt5 chart then immediately after the candle close there will be an instant execution trade after the close of the candle and the sl will be at the current last low or high below or above for buy or sell. I will have a place where I will input the amount to be risked by one pair. For instance in
Need MT5 robot created
60+ USD
I need experience developer on mt5, simple strategy and basic inputs on take profit, stoploss closing candle, and average profit, average loss and lot increment and some inputs come to private I will be explain all
I have EA available for boom 900 able to make 30$ daily from 100$ . I need investors to partner together and create a substantial capital for greater gains and equitable pooling and distribution
Algo Trading Rebot/ EA
30 - 100 USD
I would like someone Who can design an EA for me. I will give him the Required Details and Trading Plan How it should Work. its going to be a Simple EA System Around Moving Averages Crossover. I will Provide Him the Moving Averages Settings and How It should execute trades and Exit them
No jokers copy pasters allowed. If you're proficient in MQL5, have a proven track record with EAs apply. Commissioning the development of a high-performance Expert Advisor (EA) engineered for the MetaTrader 5 (MT5) environment. The objective is to deploy an institutional-grade automated trading system capable of systematic market analysis, precision execution, and strict risk governance within the global forex
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Sniper
30+ USD
Hello, I would like you to develop a trading robot (EA) with the following specifications: The robot should be able to target large moves, ideally 60–100 pips or more per trade. It should use high-precision “sniper” entries, focusing on high-probability setups rather than frequent trades. Once the initial trade reaches breakeven, the robot should be able to add additional positions (scale in) while maintaining strict
True
30+ USD
Hello, I would like to commission the development of a trading robot (EA) designed specifically to pass a prop firm challenge within one week, with a maximum allowable drawdown of 2%. Key requirements: Strict risk management with drawdown hard-limits Controlled lot sizing and position management Strategy focused on high-probability, low-risk entries Full compliance with prop firm rules (daily drawdown, max drawdown
Sniper EA and pattern EA
30+ USD
I want you to help me and create a sniper entry robot and with proper risk management that follow trend and when is not going to the direction it exit
Información sobre el proyecto
Presupuesto
30+ USD
Plazo límite de ejecución
a 15 día(s)