Help refactoring an existing MT4 HFT EA

Trabalho concluído

Tempo de execução 18 horas

Termos de Referência

Hello,


I need help refactoring an existing EA code and changing the Trailing system to start only when order in profit.

Review and clean the code

- remove unused variables

- rename variables and functions to be more easy to follow / relevant

- make comments so it is easy to follow and understand the EA code

Key Areas for Refactoring:

  1. Variable Naming: Some variables have unclear names like Gi_180 or Gd_232 . Meaningful names will make the code easier to follow.
  2. Magic Numbers: There are multiple switch cases, conditions, and calculations with constants (like 3 , 0.1 , etc.). These should be replaced with named constants or parameters.
  3. Repeated Code: There is a lot of duplicated logic, especially in the start() function. Consolidating common logic into separate functions could improve readability.
  4. Function Decomposition: The start() function is long and complex. Breaking it down into smaller functions with single responsibilities will improve maintainability.
  5. Error Handling: The error handling is mostly repeated across multiple order operations. This could be abstracted into a function.
  6. Array Management: The array manipulation in ArrayCopy() and other places can be simplified.
  7. Add / repair the StopLoss to work independent for each order
  8. Add trailing system. This should have the option to apply only when order / orders profit > predetermined value as extern input. trailing profit to be > order commision + swap

The EA needs to perform well also on live accounts = closed order to be in profit ( trailing profit to be > order commision + swap ) and also work with past data for backtesting!

Thank you!



Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(8)
Projetos
11
0%
Arbitragem
6
33% / 67%
Expirado
2
18%
Livre
2
Desenvolvedor 2
Classificação
(22)
Projetos
33
52%
Arbitragem
1
100% / 0%
Expirado
1
3%
Livre
3
Desenvolvedor 3
Classificação
(12)
Projetos
19
42%
Arbitragem
3
0% / 67%
Expirado
3
16%
Livre
4
Desenvolvedor 4
Classificação
(151)
Projetos
211
69%
Arbitragem
8
38% / 38%
Expirado
23
11%
Livre
5
Desenvolvedor 5
Classificação
(64)
Projetos
144
46%
Arbitragem
20
40% / 15%
Expirado
32
22%
Trabalhando
Pedidos semelhantes
I am looking for a professional MQL5 developer to build a MetaTrader 5 Expert Advisor from scratch. The EA will be called LadyKiller EA. It must trade only the following instruments: • XAUUSD (Gold) • US30 / Dow Jones Index Requirements: • Strong and reliable buy and sell entry logic • Stop Loss and Take Profit system • Risk management (lot size control) • Maximum trades protection • Drawdown protection • Trend
I need an mql5 EA which can be used with 100$ capital very low drawdown The EA should be high frequency trading special for XAUUSD and btcusd or binary options but also the EA should be testable via strategy tester and demo test for five days is needed NO SELECTION CAN BE DONE WITHOUT TESTING when applying make sure you send the backtester results with demo EA testable via strategy tester
Do you need a profitable and well-structured trading strategy converted into a fully automated Expert Advisor on the MT5 platform? I specialize in developing advanced, high-performance EAs with: ✅ Smart entry & exit logic ✅ Risk-based lot size calculation ✅ Break-even & trailing stop system ✅ Spread & session filters ✅ Daily drawdown protection ✅ Prop firm (FTMO-style) risk compliance ✅ Fully automated trade
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I have an existing MT5 Expert Advisor (“E-Core”). I need an experienced MQL5 developer to integrate a structured risk management upgrade and a higher timeframe trend filter into the current code. Two files will be provided: 1️⃣ E-Core Source Code (Current Version) 2️⃣ Update Instructions File (contains exact inputs, functions, and logic to integrate) The developer must: Integrate the update logic
I have a working MT5 Expert Advisor. I am NOT looking to change the strategy logic. I only need professional optimization and performance improvement. Requirements: • Parameter optimization • Risk adjustment • Max drawdown reduction • Forward testing report • Optimization for Gold (XAUUSD) Please provide previous optimization reports
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go

Informações sobre o projeto

Orçamento
35+ USD
Prazo
de 2 para 3 dias