Help refactoring an existing MT4 HFT EA

Lavoro terminato

Tempo di esecuzione 18 ore

Specifiche

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!



File:

Con risposta

1
Sviluppatore 1
Valutazioni
(8)
Progetti
11
0%
Arbitraggio
8
25% / 75%
In ritardo
2
18%
Gratuito
2
Sviluppatore 2
Valutazioni
(23)
Progetti
34
53%
Arbitraggio
1
100% / 0%
In ritardo
1
3%
Gratuito
3
Sviluppatore 3
Valutazioni
(13)
Progetti
20
40%
Arbitraggio
3
0% / 67%
In ritardo
3
15%
Gratuito
4
Sviluppatore 4
Valutazioni
(154)
Progetti
214
69%
Arbitraggio
8
38% / 38%
In ritardo
22
10%
Gratuito
5
Sviluppatore 5
Valutazioni
(64)
Progetti
144
46%
Arbitraggio
20
40% / 20%
In ritardo
32
22%
In elaborazione
Ordini simili
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
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
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
C'est un Expert Advisor (EA) MQL5 pour MetaTrader 5, conçu pour l' XAUUSD , combinant un filtre de tendance et une grille adaptative avec gestion de panier ("basket") et protections contre le drawdown. Version 1.00. Logique de trading Filtre de tendance (H4 par défaut) • EMA rapide (50) vs EMA lente (200) pour déterminer la direction (UP/DOWN) • Filtre ADX (période 14, seuil 18) pour éviter de trader en
My EA is semi Auto EA..with Master and slave concept Using Heiken Ashi +Heiken Smooth and Moving Average What to do?1. Remove some previous feature 2.Change some rules of 4 slave to pending Order 3. Check the coding is clean. 4. create panel dialog box
These are orderflow footprint indicator I would like to know if you can algorithmisie and build a stacked imbalance bot from them .. Kindlt let me know if you can do it and check the file before replying me
I have 2 trading view indicators by GainzAlgo that I want code to mt5 , could u advise? I need you to give me response if you can convert This
I currently sell a white-label XAUUSD EA, but the existing supplier owns the source code. I now need a new, independently developed EA and licensing system that my company fully owns and controls. I am not requesting decompilation or copying of proprietary code. Existing settings, presets and trading examples will be provided as reference. The developer must first identify any missing strategy rules before
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following

Informazioni sul progetto

Budget
35+ USD
Scadenze
da 2 a 3 giorno(i)