Modify Darvas breakout EA

MQL5 Indicateurs Experts

Tâche terminée

Temps d'exécution 52 jours
Commentaires de l'employé
Wonderful customer
Commentaires du client
It tured out as a bigger project then anticipated so it took more time, but the developer delivered as promised.

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(14)
Projets
14
14%
Arbitrage
8
0% / 88%
En retard
2
14%
Chargé
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(2)
Projets
2
0%
Arbitrage
3
0% / 100%
En retard
1
50%
Gratuit
4
Développeur 4
Évaluation
(19)
Projets
22
18%
Arbitrage
9
33% / 44%
En retard
3
14%
Travail
Publié : 1 code
5
Développeur 5
Évaluation
(2)
Projets
3
0%
Arbitrage
8
13% / 88%
En retard
1
33%
Gratuit
6
Développeur 6
Évaluation
(75)
Projets
80
6%
Arbitrage
46
11% / 54%
En retard
7
9%
Travail
7
Développeur 7
Évaluation
(29)
Projets
33
27%
Arbitrage
20
10% / 50%
En retard
11
33%
Gratuit
8
Développeur 8
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
9
Développeur 9
Évaluation
(45)
Projets
53
57%
Arbitrage
2
100% / 0%
En retard
1
2%
Gratuit
Publié : 5 codes
10
Développeur 10
Évaluation
(3)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Commandes similaires
I have an existing compiled MT5 Expert Advisor (.ex5) for XAUUSD scalping. I need a developer to build a bridge that connects my existing EA to a broker’s FIX API, allowing its trading signals to execute orders directly through FIX instead of the standard MT5 trade server. I do not need a new trading strategy or a new EA. Please confirm whether this is technically possible without the EA source code, and explain your
I am looking for an experienced MQL5 developer and trader to develop a non-repainting scalping indicator for MT5 , designed for the M5 and M15 timeframes. Instruments I Trade: GainX 400 GainX 600 PainX 400 PainX 600 My Main Requirement: Signal Accuracy I do not need another basic indicator that simply displays BUY/SELL signals with Stop Loss and Take Profit levels. I already have several indicators, but their signals
Project Description: I need an MQL5 Expert Advisor built based on a precise Smart Money Concepts (SMC) multi-timeframe strategy. The bot must analyze the 1-Hour chart for institutional bias and execute trades on the 3-Minute chart following strict structural rules. 1. Inputs & Parameters (Customizable) - Risk Model: Fixed dollar risk of $20.00 for every $100.00 of account balance (20% per trade for personal capital
Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
Title: Professional MT5 Expert Advisor Required - Fully Automated Trend Pullback Strategy Description: I am looking for an experienced MQL5 developer to create a fully automated MT5 Expert Advisor based on a trend-following pullback strategy. The EA must be flexible, fully configurable and optimized for use on different symbols and timeframes. ============================== STRATEGY OVERVIEW
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
FOR MT5. BROKERS - XM,TICKMILL. looking for an EA which can generate reasonable profits like 100% monthly, SEND ME SOUCE CODE AND UPON TESTING I SHALL PAY AND WE CAN MAKE NECESSARY MODIFICATIONS
I need a robot that will grow small accounts to bigger amounts, I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $200 profit for the day, it must close

Informations sur le projet

Budget
40+ USD
Délais
à 5 jour(s)