EA improvement needed Fix Trade logic and Handling EA

Termos de Referência

Hi everyone,

I have the source code of an EA that I want to improve and fix a few issues. It already works to some extent, but I need help with the following:

Main Issue:
The EA opens only 1 trade at a time and closes others with SL. I want to fix this by allowing multiple trades to be opened, then all trades should close together at a calculated average TP that covers the total loss from previous trades.

Loss Recovery:
If trades are closed in loss, the next trade should track that loss and set its TP to cover all previous losses plus profit.

Lot Size Sequence Issue:
Sometimes when the lot size increases, the sequence breaks.
Example: instead of 0.01 → 0.02 → 0.04 → 0.08 → 0.16 → 0.32 → 0.64 ,
it suddenly jumps back to 0.32 or resets randomly. This needs to be fixed.

Scalping Logic:
Scalping works fine most of the time, but sometimes it behaves unexpectedly. Needs review.

Session Management:
Session time settings and trade limits should also be reviewed and fixed if needed.

🔍 Goal:
I just want someone to review the full logic once and mainly focus on trade sequence, average TP closure, proper lot size flow, and session control.

📂 I already have the source file (.mq5), so no reverse engineering needed.

Let me know if you can help!

Respondido

1
Desenvolvedor 1
Classificação
(104)
Projetos
167
25%
Arbitragem
23
9% / 78%
Expirado
16
10%
Trabalhando
2
Desenvolvedor 2
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(69)
Projetos
79
29%
Arbitragem
8
13% / 63%
Expirado
4
5%
Livre
4
Desenvolvedor 4
Classificação
(22)
Projetos
25
72%
Arbitragem
1
0% / 0%
Expirado
0
Trabalhando
5
Desenvolvedor 5
Classificação
(10)
Projetos
15
27%
Arbitragem
0
Expirado
3
20%
Livre
6
Desenvolvedor 6
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(1)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
1
50%
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(10)
Projetos
14
43%
Arbitragem
0
Expirado
3
21%
Livre
10
Desenvolvedor 10
Classificação
(6)
Projetos
9
0%
Arbitragem
5
40% / 40%
Expirado
1
11%
Livre
11
Desenvolvedor 11
Classificação
(45)
Projetos
46
24%
Arbitragem
34
9% / 85%
Expirado
10
22%
Livre
12
Desenvolvedor 12
Classificação
(77)
Projetos
243
74%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
Publicou: 1 artigo
13
Desenvolvedor 13
Classificação
(295)
Projetos
474
39%
Arbitragem
103
41% / 23%
Expirado
79
17%
Ocupado
Publicou: 2 códigos
14
Desenvolvedor 14
Classificação
(171)
Projetos
195
42%
Arbitragem
13
8% / 54%
Expirado
9
5%
Livre
Publicou: 3 códigos
15
Desenvolvedor 15
Classificação
(4)
Projetos
4
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I am seeking an experienced MQL5 developer to build a high-precision Gold (XAUUSD) scalping Expert Advisor. The objective is to achieve a Profit Factor (PF) of 2.0 or higher with a focus on institutional logic rather than retail lagging indicators.The EA must be designed to pass a "100% Real Ticks" backtest (Exness/Dukascopy data) over a 30-day period with a $500 initial deposit.Core Requirements & Strategy

Informações sobre o projeto

Orçamento
30 - 40 USD
Prazo
de 1 para 2 dias