Clean up and fix EA MT4

MQL4 Indikatoren Experten

Auftrag beendet

Ausführungszeit 3 Stunden

Spezifikation

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





      Bewerbungen

      1
      Entwickler 1
      Bewertung
      (115)
      Projekte
      129
      18%
      Schlichtung
      11
      27% / 55%
      Frist nicht eingehalten
      4
      3%
      Frei
      2
      Entwickler 2
      Bewertung
      (43)
      Projekte
      72
      49%
      Schlichtung
      4
      0% / 50%
      Frist nicht eingehalten
      19
      26%
      Frei
      3
      Entwickler 3
      Bewertung
      (204)
      Projekte
      208
      28%
      Schlichtung
      0
      Frist nicht eingehalten
      3
      1%
      Arbeitet
      4
      Entwickler 4
      Bewertung
      (126)
      Projekte
      151
      48%
      Schlichtung
      6
      83% / 17%
      Frist nicht eingehalten
      2
      1%
      Frei
      5
      Entwickler 5
      Bewertung
      (251)
      Projekte
      280
      65%
      Schlichtung
      6
      17% / 33%
      Frist nicht eingehalten
      10
      4%
      Arbeitet
      6
      Entwickler 6
      Bewertung
      (7)
      Projekte
      12
      42%
      Schlichtung
      1
      0% / 100%
      Frist nicht eingehalten
      2
      17%
      Frei
      7
      Entwickler 7
      Bewertung
      (28)
      Projekte
      30
      63%
      Schlichtung
      0
      Frist nicht eingehalten
      4
      13%
      Frei
      8
      Entwickler 8
      Bewertung
      (266)
      Projekte
      540
      50%
      Schlichtung
      55
      40% / 36%
      Frist nicht eingehalten
      224
      41%
      Arbeitet
      9
      Entwickler 9
      Bewertung
      (14)
      Projekte
      14
      21%
      Schlichtung
      1
      0% / 100%
      Frist nicht eingehalten
      1
      7%
      Frei
      10
      Entwickler 10
      Bewertung
      (66)
      Projekte
      143
      34%
      Schlichtung
      10
      10% / 60%
      Frist nicht eingehalten
      26
      18%
      Frei
      Ähnliche Aufträge
      I want to create an indi to push notification when the candlestick chart forms 3 peaks or 3 bottoms forming a straight line: - 1,2,3 are 3 points in a straight line or NEARLY straight For example: Straight: NEARLY straight : means the peak/bottom of candle number 3 is NEAR the straight line connecting 1 and 2. Candle number 3 may or may not have crossed the straight line, as long as the peak/bottom of candle number 3
      Hello! I am looking for an experienced Pine Script coder to create a custom indicator for mapping market structure based on fractals. The developer needs to know a lot about coding market structure indicators and be proficient in Pine Script. excited to collaborate with a gifted developer
      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 My budget for this 80$ max
      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
      good day i have an indicator but need the source for this reason The indicator only work on a single Time frame open trade, and close with only a single TF i will like the indicator work on multiple time frame just like other installed indicator My coder said the reason it cannot work like other indicator installed is because it has no buffer First confirm if you have the source code because its a popular indicator
      Hello! I am looking for an experienced Pine Script coder to create a custom indicator for mapping market structure based on fractals. The developer must be skilled in Pine Script and have a solid understanding of how to code market structure indicators. Looking forward to working with a talented developer
      Hello developers, I would like to hire someone can convert the Radar Signal indicator: https://www.youtube.com/watch?v=5DmKcy7rb-U&nbsp ; to it's TradingView equivalent. Radar signal indicator is the combination of 7 classic MT4 indicators. They include ADX, RSI , CCI , OsMA, ATR, WPR. The indicator shows the values of these indicators in blue and red. Red color indicates a bearish market condition and the blue shows
      Hi , i want a indicator that shows the trades history on the chart, just for current day, like : first trade : -54 Second trade : -52 Third trade : +126 , and after three trades, display "No more trades"
      Hello i need someone who can convert a trading view indicator into an mt5 indicator that can work smoothly also need to add an alert on the indicator i will require to test the indicator run it for 1-2days to confirm all is okay thank you
      Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the open): Draw a Fibonacci Retracement: From the highest price to the lowest price of this candle. Check the

      Projektdetails

      Budget
      40+ USD
      MwSt (22%): 8.8 USD
      Insgesamt: 48.8 USD
      Für die Entwickler
      36 USD
      Ausführungsfristen
      bis 7 Tag(e)