Clean up and fix EA MT4

MQL4 Göstergeler Uzmanlar

İş tamamlandı

Tamamlanma süresi: 3 saat

Şartname

Hello. I need to clean up the code of an EA. There are some things to delete, some to be remade better and above all, errors to fix.


Errors are two:

1) The EA gives an error in live trading, in backtesting not, but in live it gives sometimes the error "Order failed - Invalid TP/SL",
and when this error happens the order is not opened. Some say that is because the Stoploss and TakeProfit are too small, but I tried increasing them and the issue persist.
The developer should check on his own on M1 timeframe in Live that the error is fixed.

2) Testing with some brokers, in backtest it returns error "OrderSendError 130". This error should be fixed.


Then, regarding deleting parts and remake some parts better, I scrolled down the code and signed the parts to delete and the ones to check to be fixed:

  • From line 77 to 86 in the properties under "Close Order Settings" and the relative parts in the code, should be deleted (down below I state where are these parts.
  • The lines 75, 76 in the properties and the relative function in the code "IsFarEnough()", should be deleted (down below I state where are these parts).
  •  From line 114 to 119 in the properties under "Martingale Settings" and the relative parts in the code that use Martingale, should be deleted (down below I state where are these parts).
  • From line 412 to 417 I think is useless, so it can be deleted, together with the relative parts in the code.
  • At line 450 and 460 I added on my own the functions: (LastActionTime != Time[0]) and isDelayed(), which both together allow the EA to open only one order per candle after the open of the candle (if signal is true),
    and when the order is closed by StopLoss or TakeProfit, the next order is always opened on the next candle if the signal on that candle is true. But these functions are not the best way to do this, so they should be replaced with better code.
    I summarize how it should be: if signal is true, the EA should open only one order per candle, then after some candles the order is closed by Take Profit, then if signal is true on the same candle where order has been closed the EA should NOT open a new order on that candle,
    but it should wait the next candle to open, so if the signal is true the EA should open an order only one time on that new candle...and so on.
  • From 477 to 513 are Alerts, you can delete them, I don't use them.
  • From Line 518 to 530 is CloseByTime() a function to close order that can be deleted, I don't use it.
  • From 532 to 545 is function IsGoodTime, it's the timefilter, this one I use and you should check if there are no errors. And also for function IsFridayEvening(line 550-555) and function IsCloseTime(Line 560-567)
  • From Line 569 to 760 is the main part, it should be checked if there are errors or bugs.
  • From line 823 to 830 is Martingale, delete it.
  • From 832 to 1020 should be checked for errors, it a buggy part: function Normalize Lots at line 905 is not used, but some parts of it are still used, it should be revised, or better deleted.
  • Recovery() at line 1004 I don't know what is...
  • From 1026 to 1086 are the functions that are called at lines 450, 460...as I said they should be replaced with better solution.
  • From line 1090 to the end, delete all.

    As you can see there are more things to delete than to fix. I hope that doing part of the work can speed up yours. I cannot delete them on my own because I'm afraid to delete something that is useful, it's better the developer do that.

    I guess bugs are in the main parts, the ones to send orders or SL, TP, TrailingStop parts...


    I request final mq4 file source code.

    Thanks.

    Regards





      Yanıtlandı

      1
      Geliştirici 1
      Derecelendirme
      (115)
      Projeler
      129
      18%
      Arabuluculuk
      11
      27% / 55%
      Süresi dolmuş
      4
      3%
      Serbest
      2
      Geliştirici 2
      Derecelendirme
      (43)
      Projeler
      74
      50%
      Arabuluculuk
      5
      0% / 60%
      Süresi dolmuş
      19
      26%
      Serbest
      3
      Geliştirici 3
      Derecelendirme
      (258)
      Projeler
      269
      29%
      Arabuluculuk
      2
      50% / 0%
      Süresi dolmuş
      3
      1%
      Çalışıyor
      Yayınlandı: 2 kod
      4
      Geliştirici 4
      Derecelendirme
      (126)
      Projeler
      151
      48%
      Arabuluculuk
      6
      83% / 17%
      Süresi dolmuş
      2
      1%
      Serbest
      5
      Geliştirici 5
      Derecelendirme
      (317)
      Projeler
      355
      72%
      Arabuluculuk
      7
      43% / 29%
      Süresi dolmuş
      20
      6%
      Çalışıyor
      6
      Geliştirici 6
      Derecelendirme
      (7)
      Projeler
      12
      42%
      Arabuluculuk
      1
      0% / 100%
      Süresi dolmuş
      2
      17%
      Serbest
      7
      Geliştirici 7
      Derecelendirme
      (28)
      Projeler
      30
      63%
      Arabuluculuk
      0
      Süresi dolmuş
      4
      13%
      Serbest
      Yayınlandı: 1 kod
      8
      Geliştirici 8
      Derecelendirme
      (271)
      Projeler
      553
      50%
      Arabuluculuk
      57
      40% / 37%
      Süresi dolmuş
      227
      41%
      Çalışıyor
      9
      Geliştirici 9
      Derecelendirme
      (14)
      Projeler
      14
      21%
      Arabuluculuk
      1
      0% / 100%
      Süresi dolmuş
      1
      7%
      Serbest
      10
      Geliştirici 10
      Derecelendirme
      (69)
      Projeler
      146
      34%
      Arabuluculuk
      13
      8% / 62%
      Süresi dolmuş
      26
      18%
      Serbest
      Yayınlandı: 6 kod
      Benzer siparişler
      I am a trader looking to acquire an existing, stable, and consistently profitable Expert Advisor (EA) specifically designed primarily for Gold (XAUUSD). This is an outright purchase. I am not interested in developing a new EA from scratch. I am only interested in ready-to-use systems with a genuine, verifiable track record of performance
      Aziz Toure 50 - 400 USD
      I am an independent trader and entrepreneur based in Côte d’Ivoire. I work in financial markets, analyze trading opportunities, and provide digital financial services. I am also interested in international trade, online business, and developing long-term business activities
      SMC Bot Creation 350 - 550 USD
      Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
      (I can't pay 30 for this of course if you can just help.me solve this problem I would appreciate you )It was doing everything perfectly until yesterday this happened this is a python file that copies from telegram Iand send to ea signal if you have any idea what to do or why this happened please tell me
      Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
      Phixfx 30 - 150 USD
      Project Brief: Multi-Asset EA/Indicator Optimization, Debugging, and Futures Strategy Refinement ​1. Project Overview & Objective ​I am looking for an experienced algorithmic developer to inspect, debug, optimize, and enhance an existing automated trading system. The system combines custom indicators and execution logic across Forex and Futures markets. ​The primary goals of this project are: ​Debug existing logic
      ​I am looking for an experienced MQL5 developer to build a fully automated MetaTrader 5 Expert Advisor (EA) optimized primarily for XAUUSD (Gold), featuring a clean Tkinter-style telemetry dashboard control concept or customizable input parameters. ​1. Core Strategy Rules (Full-Body Engulfing) ​Signal Identification: The EA must scan completed candles across multiple selectable timeframes (e.g., 1M, 5M, 15M, 30M, 1H)
      I want NinjaTrader to behave like Tradovate. When I hover over a candlestick, the cursor should automatically snap to the center of that candle across all open charts. For example, when I hover over a 30-minute candle, the cursor should align with the center of the corresponding candles on the 15-minute and other chart timeframes. I also want vertical lines drawn on one chart to automatically align with the center of
      HFT EA 70+ USD
      I need an experienced MQL5 developer to build a High-Frequency Trading (HFT) EA for MT5 , designed to generate high returns from small capital through fast scalping. Important: Attached videos must be watched and analyzed before applying. The EA should follow the trading concepts demonstrated in the videos, with proper risk management and optimized execution. https://vt.tiktok.com/ZSgp9jsFM/
      I’m looking for an experienced MQL4/MQL5 developer with proven expertise in genuine high-frequency trading (HFT) or ultra-fast scalping Expert Advisors. Project requirements: Develop MT5 versions with complete source code and no restrictive licensing. Implement fast execution, selective entries, and rapid trade exits. Support XAUUSD Include robust risk controls: stop-loss, drawdown limits, spread/slippage filters

      Proje bilgisi

      Bütçe
      40+ USD
      Son teslim tarihi
      to 7 gün