Clean up and fix EA MT4

MQL4 Indicatori Esperti

Lavoro terminato

Tempo di esecuzione 3 ore

Specifiche

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





      Con risposta

      1
      Sviluppatore 1
      Valutazioni
      (115)
      Progetti
      129
      18%
      Arbitraggio
      11
      27% / 55%
      In ritardo
      4
      3%
      Gratuito
      2
      Sviluppatore 2
      Valutazioni
      (43)
      Progetti
      72
      49%
      Arbitraggio
      4
      0% / 50%
      In ritardo
      19
      26%
      Gratuito
      3
      Sviluppatore 3
      Valutazioni
      (204)
      Progetti
      208
      28%
      Arbitraggio
      0
      In ritardo
      3
      1%
      In elaborazione
      4
      Sviluppatore 4
      Valutazioni
      (126)
      Progetti
      151
      48%
      Arbitraggio
      6
      83% / 17%
      In ritardo
      2
      1%
      Gratuito
      5
      Sviluppatore 5
      Valutazioni
      (250)
      Progetti
      279
      65%
      Arbitraggio
      6
      17% / 33%
      In ritardo
      10
      4%
      Caricato
      6
      Sviluppatore 6
      Valutazioni
      (7)
      Progetti
      12
      42%
      Arbitraggio
      1
      0% / 100%
      In ritardo
      2
      17%
      Gratuito
      7
      Sviluppatore 7
      Valutazioni
      (28)
      Progetti
      30
      63%
      Arbitraggio
      0
      In ritardo
      4
      13%
      Gratuito
      8
      Sviluppatore 8
      Valutazioni
      (266)
      Progetti
      540
      50%
      Arbitraggio
      55
      40% / 36%
      In ritardo
      224
      41%
      In elaborazione
      9
      Sviluppatore 9
      Valutazioni
      (14)
      Progetti
      14
      21%
      Arbitraggio
      1
      0% / 100%
      In ritardo
      1
      7%
      Gratuito
      10
      Sviluppatore 10
      Valutazioni
      (66)
      Progetti
      143
      34%
      Arbitraggio
      10
      10% / 60%
      In ritardo
      26
      18%
      Gratuito
      Ordini simili
      The EA should have the input of both indicators for i will be putting my own settings Buy/sell order conditions to be met before an order is executed 1. BUY ORDERS; a weak/strong low signal appears (from smart money concept indicator) and must be touching/sitting on a previous buy order block which is constant or doesn't disappear/vanish and the other indicator Bheurekso must have given an arrow signal of opposite
      I want to develop a trade copier that copies trades from master account to client and also from client account to master account. It should be working on computer or VPS
      Wirtschaftskalender 50 - 200 USD
      1) Einbinden des Wirtschaftskalender ( https://www.mql5.com/de/economic-calendar ) 2) Unterschiedliche Gewichtung der Ereignisse erkennen (Farbe rot/orange/grau) 3) Je nach Gewichtung unterschiedliche Wartezeiten vor und nach dem Ereigniss Der Sourcecode muss dokumentiert sein. Die Bezahlung des vereinbarten Betrages läuft in 33% Schritten ab. 33% bei Vergabe 33% bei Endabnahme (Version 1.0) 33% nach Abgabe des
      Hi, This is my demand: Enhancement to an existing robot with the ability to modify the main time frame and indicators settings. Buy/Sell Stops are placed depending on candle positioning and a positive/negative Bulls Power. Trades are supplemented after reaching 10 points of profit. The robot should also support a balance option for propfirm accounts, switchable to use real account balance when needed. I will send
      algo trading application want to developed Prerequisites for ordering a trading robot Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading
      I have list of free indicators in tradingview and i would like to convert them into an mt4 ea, But the EA will have and work based on the indicators features The list of the are listed as follows :> 1. Market Structure Break And Order block. By EmreKb 2. Rainbow Adaptive RSI by LuxAlgo 3. Multiple MA (21,50,100) 4. SuperTrend Please don't apply if can't do this, So we won't ourselves time
      Hi I do not know why but my other order have been deleted and it's not me... I do not know what i did wrong, let me explain again. I dont want you to crack a code or decompile. I want to create a scalper EA with the option I do ask. I had somebody built a EA called Drawdown manager for me that I do use to manage risk of any EA that I test and I have the built code. My problem is that I cannot back test this EA Fast
      CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
      Am looking for a developer who can convert an MT5 indicator into MT5 EA. I have the source code of the indicator and i want it modified a little to fit my parameters. Only developer with Smart Money Concept should get in touch. The developer will also add another MT5 indicator( this will be used to confirm entries and exit of orders. More details to follow
      I want a program that automatically disables manual trade execution once a specified number of trades have already been placed. ie. After a total of 3 trades have been placed on that day, manual trade execution should be disabled. I want the program to also limit the amount of lots that can be traded in any given day. ie. Maximum of 15 standard lots in any given day. The program should disable manual trade execution

      Informazioni sul progetto

      Budget
      40+ USD
      IVA (22%): 8.8 USD
      Totale: 48.8 USD
      Per lo sviluppatore
      36 USD
      Scadenze
      a 7 giorno(i)