Debug existing code to take trades based on existing logic

MQL5 Experts

Job finished

Execution time 63 days

Specification

I have an EA that throws the following error when I backtest it:
2024.04.22 17:37:15.788 2023.09.07 18:54:51   Attempting to place Buy Stop Order - Entry: 15206.34, SL: 15206.14, TP: 15206.54, Ask: 15190.07
2024.04.22 17:37:15.788 2023.09.07 18:54:51   failed buy stop 1 NAS100 at 15206.34 (0.00) sl: 15206.14 tp: 15206.54 [Invalid request]
2024.04.22 17:37:15.788 2023.09.07 18:54:51   CTrade::OrderSend: buy stop 1.00 NAS100 at 15206.34 (0.00) sl: 15206.14 tp: 15206.54 [invalid request]


I need someone to apply a quick fix to it so that it takes trades according to this logic:

Requirement for Entering Trades with 2 Exponential Moving Averages (EMA):

  1. Setup:

    • Utilize two Exponential Moving Averages (EMA): a fast moving average (FMA) and a slow moving average (SMA).
  2. Entry Conditions:

    • Scenario 1: If the slow moving average (SMA) is above the fast moving average (FMA):

      • When three consecutive candles close above the fast moving average (FMA), enter a pending trade.
      • Set the pending trade entry point 'x' points above the high of the third closed candle.
    • Scenario 2: If the slow moving average (SMA) is below the fast moving average (FMA):

      • When three consecutive candles close above the fast moving average (FMA), enter a pending trade.
      • Set the pending trade entry point 'x' points above the high of the third closed candle.
  3. Stop Loss (SL):

    • If the slow moving average (SMA) is above the fast moving average (FMA):
      • Place the stop loss 'x' points below the fast moving average (SMA).
    • If the slow moving average (SMA) is below the fast moving average (FMA):
      • Place the stop loss 'x' points below the slow moving average (SMA).
  4. Take Profit (TP):

    • If the slow moving average (SMA) is above the fast moving average (FMA):
      • Set the take profit 'x' points below the slow moving average (SMA).
    • If the slow moving average (SMA) is below the fast moving average (FMA):
      • Omit setting a take profit.
  5. Trade Management if Take Profit (TP) is Hit:

    • If the take profit is reached:
      • If the take profit is below the slow moving average (SMA):
        • Place a pending order if three candles close above the slow moving average (SMA).
        • Set the pending order entry 'x' points above the high of the third closed candle.
        • Place the stop loss 'x' points below the slow moving average (SMA).
        • Omit setting a take profit for this pending order


Responded

1
Developer 1
Rating
(202)
Projects
206
27%
Arbitration
0
Overdue
3
1%
Free
2
Developer 2
Rating
(7)
Projects
10
40%
Arbitration
4
25% / 25%
Overdue
1
10%
Free
Similar orders
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Hi, I want to make an automated system to take my place in making trading positions and closing it. But I want to ask , can you program it to draw a trend line in a specific chart and several moving averages should be in specific order, and when the price is near the trend line by few pips, we shift to 15 minutes chart and noticing a resistance or support action , then we take the trade ? can we do that
Develop EA to track performance metrics of strategies I would like to develop an EA that will track the performance metrics of the strategies I have running on a terminal, If any of the metrics start to under perform then the EA/Indictor should alert me with a pop up alert that specify's the metric that has triggered the alert. The EA should also display the metrics in a dashboard - please see my example screen shot
I would like to modify the RSI Epert Avisor with a developer. I would like to use the RSI Expert on the inverse mode and the base setting doesnt conatain this strategy mode
Profitable EA HFT 50 - 300 USD
From a long time i am searching for a profitable EA i have lost a lot , and now i have only 300$ to buy a profitable EA , i wish to say with 0 losses but some or most traders they don't want to hear this i am really tired of searching for a programmer to just create me a profitable EA with the least losses or zero losses maybe nearly 1 year i am searching i just need an HFT EA that can work very well on MT4,MT5
I need help fixing my EA for MT5. It’s a very simple EA, and I currently cannot solve an issue where webrequest communicates with OpenAi API without error. Please only apply if you can help solve this issue
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены
a coder is required to add an indicator to existing ea The new indicator will work as 1. option to combine with exiting indicator to open trade 2. it will be used as alternative BE point 3. It can also be used to close order or combine with other to close trade The second Job is telegram bot to get alert fr news trade and others Details when you apply i will test the ea work on live market and all bug is fixed before
Hello, I want to make an EA based on SMC and a developer that is familiar with the concept and full understanding of this. Must have done similar jobs before and be able show it. I only want to work with developer that has good track record and is precise. Further information will be handed when contact is made. Developers that has zero rating will not be considered. Listed price is a base point. The project can also
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 1 day(s)