Debug existing code to take trades based on existing logic

MQL5 Experten

Auftrag beendet

Ausführungszeit 63 Tage

Spezifikation

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


Bewerbungen

1
Entwickler 1
Bewertung
(258)
Projekte
269
29%
Schlichtung
2
50% / 0%
Frist nicht eingehalten
3
1%
Arbeitet
Veröffentlicht: 2 Beispiele
2
Entwickler 2
Bewertung
(12)
Projekte
17
29%
Schlichtung
5
20% / 40%
Frist nicht eingehalten
1
6%
Frei
Ähnliche Aufträge
Yes. The final “world-class” RegimeShift concept we converged on is an adaptive hybrid EA , not a single trend EA and not a pure recovery EA. The key idea is: Classify the market first → select the correct engine → size dynamically → stop using that engine when its market thesis is invalid. That is the part I would preserve as the final architecture. RegimeShift — Final Strategy Architecture Layer Final role H1 Macro
NextGen 30 - 50 USD
Hello, Before I select a developer, please confirm that you can implement the complete MT5 EA exactly according to my specification. The most important requirements are: 1. Strict NO-REPAINT / NO-HINDSIGHT logic. 2. Sweep, MSS/BOS, Displacement, FVG, Order Block and POI must be defined algorithmically before coding. 3. M1 and M5 confirmation logic. 4. Zero-Float Entry logic. 5. MT5 terminal alerts and immediate MT5
I need a professional XAUUSD signal indicator for MetaTrader 5, written entirely in MQL5 (.mq5). IMPORTANT: This is NOT an auto-trading EA. It must never open, close or modify trades. It only analyzes XAUUSD and generates signals + MT5 push notifications. 1. Multi-timeframe analysis: H4 → H1 → M30 → M15 → M10 → M5 → M1. 2. Detect market structure: - Swing High / Swing Low - BOS - MSS - CHOCH - Bullish/Bearish HTF
I would like to create a tradingview robot that will sync with tradovate. My strategy is as follows: Chart Setup - MES on left and MNQ on right. The MES chart has quarter levels on it. The MNQ has the volume indicator. Trading Session is from 9:30AM EST - 11:00AM EST If most recent price action has crossed *up* a quarter level on MES, I look for *sells* on MNQ. My trigger for a sell is a bearish engulfing candlestick
Hi, I would like to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) based on the Smart Money Concepts (LuxAlgo) indicator, which is available in the MQL5 Market. Below are the detailed specifications for the EA: 1. General Parameters & Symbol Trading Asset: Gold (XAUUSD) Timeframe: 5-Minute (M5) Indicator Integration: Integration with "Smart Money Concepts (LuxAlgo - Smart Money Concepts)" via
We are looking for an experienced MQL5 developer who also has real trading experience to build our existing trading strategy into a fully automated MT5 Expert Advisor (EA). We already have our entry and exit trading rules documented . We are not looking for someone to invent a strategy for us. We need someone who understands trading well enough to understand our rules, discuss them with us in normal trading terms
Hello, I need an MQL5 Expert Advisor for MT5 on XAUUSD (H1) using a 1.0 lot size where every $1 movement matters. The logic must work as follows: When any active trade reaches $20.0 in profit, close that specific trade immediately and open a new opposite trade automatically. When an active trade reaches a loss of $4.0, DO NOT close the existing trade; instead, keep it open and immediately open a new opposite trade
I'm looking to purchase a profitable trading robot (EA) for MetaTrader. Requirements: Backtest Requirements: Verified backtest results covering exactly 2 years of historical data (no more, no less) Data must be from a reputable source with tick-level accuracy (99% modeling quality preferred) Please include key metrics: total net profit, profit factor, maximum drawdown, win rate, and Sharpe ratio Strategy Explanation
Surebot 100+ USD
I want a sure bot that will be able to plat a good and nice trade thst i will benefit from and that i all use to make it in life
i have indicator for Trading View, also copy for NT, i need someone to improve and check the NT version (indicator is simple is volume density koncept)…. when i put same settings on TV version and NT version i have diffrerent results, but this can be because diffrent market data or fact that TV sending tick info in blocks , not tick by tick like NT8 on both. I(ndicator base on counting volume) so besied that is it

Projektdetails

Budget
30+ USD
Ausführungsfristen
bis 1 Tag(e)