Help refactoring an existing MT4 HFT EA

Job finished

Execution time 18 hours

Specification

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!



Files:

Responded

1
Developer 1
Rating
(8)
Projects
11
0%
Arbitration
6
33% / 67%
Overdue
2
18%
Free
2
Developer 2
Rating
(21)
Projects
30
57%
Arbitration
0
Overdue
1
3%
Free
3
Developer 3
Rating
(12)
Projects
19
42%
Arbitration
3
0% / 67%
Overdue
3
16%
Free
4
Developer 4
Rating
(146)
Projects
204
69%
Arbitration
7
29% / 43%
Overdue
22
11%
Working
5
Developer 5
Rating
(64)
Projects
144
46%
Arbitration
19
42% / 16%
Overdue
32
22%
Free
Similar orders
So I want to buy fully functional EA that is retard proof and makes money. on a signal trading pair need to make in a singal moth at least 3% profit with max 1% equity drowdown. I don't need screenshots i need demo version
Looking for a reliable Expert Advisor with a proven track record? I'm seeking an EA with source code that meets the following criteri *Requirements:* - .mq5 source code (well-commented and readable) - 4-year backtest (Jan 2022 - Dec 2025) with tick/data quality details - 1-month demo test on live/demo broker - ~15% monthly average returns (medium risk) - Max drawdown ≤15% (equity/drawdown report) - No grid
I need a custom MT5 Expert Advisor named “Dark Venus”. Strategy details: - Timeframe: M5 / M15 - Market: Forex (all major pairs) - Strategy type: Trend + Scalping - Indicators: • EMA (Fast & Slow) • RSI filter • ATR for Stop Loss & Take Profit - Trades only during low-spread sessions (London & New York) Trade Rules: - Buy when fast EMA crosses above slow EMA + RSI confirmation - Sell when fast EMA crosses below
Acquire existing profitable Expert Advisor with source code for client investment portfolio - Full .mq5 code (clean & commented) - 4+ years backtest (Jan 2022 - Dec 2025, 100% tick data) - ~10% monthly return - Max DD ≤15% - No grid/martingale (strictly enforced) - 1-month forward test required - Send trade history + EA details for review - Demo EA file needed for backtest replication - Open to any currency
i need the multi-chain dex bot with set up and installation i need you to help me set the copy reading wallet on binance or phantom with capital for 100 Euro to 1 Million in one year
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even

Project information

Budget
35+ USD
Deadline
from 2 to 3 day(s)