Modify Darvas breakout EA

MQL5 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 52 días
Comentario del Cliente
It tured out as a bigger project then anticipated so it took more time, but the developer delivered as promised.
Comentario del Ejecutor
Wonderful customer

Tarea técnica

I need help to make my EA work as well live as it does demo.

The EA is synced to 4m charts and that works well. 

Code and setfiles will be supplied.

Thanks. 


This is what Claude AI say is the issue? IDK


Looking at this codebase from a developer perspective, I can see several architectural and implementation issues that would cause demo vs live performance divergence:

Core Architecture Problems

1. Race Condition in State Management The EA maintains multiple global state variables ( consecutiveLosses , breakoutCount , usingAdaptiveSettings ) that are modified across different event handlers ( OnTick , OnTradeTransaction , CheckClosedTradesInHistory ). In live environments with higher tick frequency, these create race conditions where state changes can be lost or duplicated.

2. Inconsistent Event Processing You have duplicate trade monitoring logic in both OnTradeTransaction and CheckClosedTradesInHistory . This creates a scenario where the same trade result might be processed twice, causing incorrect state transitions. Demo environments are more predictable, masking this issue.

3. Handle Management Anti-Pattern The indicator handles are being recreated dynamically in ApplySettings() , but there's no proper synchronization to ensure the new handles have valid data before they're used. The sleep-and-retry pattern is a code smell that suggests timing dependencies.

Data Reliability Issues

4. Unsafe Buffer Operations Your buffer copying operations assume data availability without proper validation:

cpp
        // Pattern seen throughout - assumes success
CopyBuffer(handle, 0, 0, 2, values) == 2

Live feeds have more data gaps and timing inconsistencies than demo feeds.

5. Historical Data Dependencies The core logic relies heavily on historical price lookups ( iHighest , iLowest , iTime ) without checking data completeness. Live brokers often have different historical data depth and quality.

6. Timeframe Synchronization Assumptions The isNewBar() logic assumes consistent bar timing across timeframes, but live servers can have bar boundary variations that don't exist in demo environments.

Execution Model Flaws

7. Synchronous Execution Assumptions The trade execution model assumes immediate order processing and position updates. The retry logic in executeTrade() is primitive and doesn't handle partial fills or order state transitions properly.

8. Event Ordering Dependencies The adaptive switching logic depends on trade events being processed in a specific order. Live environments have more complex event sequences that can break these assumptions.

9. Price Data Staleness Multiple price lookups throughout the execution path ( SymbolInfoDouble calls) can return stale data in fast-moving live markets, leading to inconsistent calculations within the same tick.


Han respondido

1
Desarrollador 1
Evaluación
(14)
Proyectos
14
14%
Arbitraje
8
0% / 88%
Caducado
2
14%
Trabajando
2
Desarrollador 2
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(2)
Proyectos
2
0%
Arbitraje
3
0% / 100%
Caducado
1
50%
Libre
4
Desarrollador 4
Evaluación
(19)
Proyectos
22
18%
Arbitraje
9
33% / 44%
Caducado
3
14%
Trabaja
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(2)
Proyectos
3
0%
Arbitraje
8
13% / 88%
Caducado
1
33%
Libre
6
Desarrollador 6
Evaluación
(75)
Proyectos
80
6%
Arbitraje
46
11% / 54%
Caducado
7
9%
Trabaja
7
Desarrollador 7
Evaluación
(29)
Proyectos
33
27%
Arbitraje
20
10% / 50%
Caducado
11
33%
Libre
8
Desarrollador 8
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
9
Desarrollador 9
Evaluación
(45)
Proyectos
53
57%
Arbitraje
2
100% / 0%
Caducado
1
2%
Libre
Ha publicado: 5 ejemplos
10
Desarrollador 10
Evaluación
(3)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
I am looking for an experienced MQL5 developer who can BOTH research trading strategies and develop a commercial-quality MetaTrader 5 Expert Advisor. This is NOT simply a coding job. The developer is free to choose the trading logic, indicators, entry method, exit method, timeframe architecture and strategy type. I do not require the EA to copy or resemble any existing commercial EA. My priority is: ROBUST LONG-TERM
A developer will create an AI assisted EA forex watch-list scanner (not an auto-trader) designed to surface PDL/PDH bounces on M15, with coding in Python/MQL5. This will strictly be a market intelligence and scanning tool (no automatic order placement) and EA primary function will be a delivery of visual dashboard UI, 2-phased alerts (warning vs. execution), and multi-channel notification. 1. Project Overview &
Hello, please make me a simple MT5 Expert Advisor for XAUUSD on M15 timeframe. TRADING LOGIC: - BUY when EMA(10) crosses UP EMA(30) - SELL when EMA(10) crosses DOWN EMA(30) TRADING HOURS: - Only trade between 19:00 - 22:00 WIB / Jakarta time RISK SETTINGS: - Lot size: 0.01 - Stop Loss: 70 points - Take Profit: 150 - 300 points - Max 1 open position Please deliver .ex5 file ready to use. Thank you
Gods Plan v8 30 - 500 USD
//+------------------------------------------------------------------+ //| GODS PLAN V8.mq5 | //| Tebogo | //| tebogophago298@gmail.com | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Expert initialization function |
I’m looking to purchase an existing, proven Trend-Following EA for MT5 . I am NOT looking to develop a new EA from scratch , so please read the requirements carefully before applying. The EA should follow a market-structure/trend-following approach similar to this: Identify a clear Break of Structure (BOS) to confirm the trend direction. Wait for a pullback/retracement instead of chasing the initial breakout. Enter
I am looking for an experienced MQL5 developer to create a fully automatic MT5 Expert Advisor (EA) for frequent small-profit trades. My current manual strategy is simple: I watch short-term price movement, enter when price starts moving strongly up or down, and close once a small profit is achieved. I want an EA that can identify these movements and automatically repeat this process throughout the day. Main
Code the indicator to MT5 EA, include all the inputs variables and values Allow live trading Allow demo trading Allow strategy tester Bar shift 0 adjustable Allow indicator to show on strategy tester Lot size adjustable Max spread in points (0=disable) Use stop loss circle true or false Stop loss circle in points adjustable Use stop loss true or false Stop loss in points (adjustable) Take profit true or false Use
Hi All, Looking for a ready to TEST and USE EA which makes $20 per day with initial deposit of $100 only with controlled drawdown and no trades during news time. Please note: Budget is fixed and no trial and hit error for testing and developing EA as I do not have time. I will select the developer only after the TEST is successful only, do not force to select and make the payment and payment will be done once I am
Create a bot that can trade and read indicators easy to read for first time users. Bot that can be used on a phone and connect to MT5. It should be easy to install or use on any device especially phone and laptop, preferably the bot that can run over night and controllable when needed
Need Grid + Martingale Type Averaging EA ( Directional Buy or Sell entry then uses grid/martingale for Recovery if need ) * Must Work Buy + Sell Both Side ( Do not Open Buy or Sell at Once Let the Previous Order Close ) * Min Lot size 0.01 * Max Lot Size 1 ( Can be Edited to maximum ) * Auto TP Shift * Auto Averaging Position also Auto Shift TP as per Averaging * After Averaging Close the Trade in Maximum Profit (

Información sobre el proyecto

Presupuesto
40+ USD
Plazo límite de ejecución
a 5 día(s)