I HAVE THE CODE ALREADY, BUT IT DOES NOT WORK, CAN YOU MAKE A FEW CHANGES FOR THE EXECUTION FOR THIS EA PLEASE.

Spécifications

// Input Parameters
input int TradeExecutionHour = 10; // Trade execution hour (server time)
input bool ManualLotSize = true; // Enable manual lot size adjustment
input bool RiskAllocation = true; // Enable percentage-based risk allocation
input double RiskPercentage = 2.0; // Percentage of risk per trade
input int CandleRangeCondition = 100; // Minimum candle range condition in points
input string Symbols = {"GER30.fin", "EURUSD", "GBPUSD"}; // Symbols to trade

// Global Variables
int ticketBuy, ticketSell;
double entryPointBuy, entryPointSell, stopLossBuy, stopLossSell, takeProfitBuy, takeProfitSell;
bool breakevenBuy = false, breakevenSell = false;

void OnTick()
{
    // Check trade execution time
    if (TimeHour(TimeCurrent()) == TradeExecutionHour)
    {
        // Check candle range condition
        if (CheckCandleRangeCondition())
        {
            // Calculate entry points
            CalculateEntryPoints();

            // Calculate lot size
            double lotSize = CalculateLotSize();

            // Place buy stop order
            ticketBuy = OrderSend(Symbol(), OP_BUYSTOP, lotSize, entryPointBuy, 2 * Point, stopLossBuy, takeProfitBuy);

            // Place sell stop order
            ticketSell = OrderSend(Symbol(), OP_SELLSTOP, lotSize, entryPointSell, 2 * Point, stopLossSell, takeProfitSell);
        }
    }

    // Check breakeven condition
    if (breakevenBuy && breakevenSell)
    {
        if (CheckBreakevenCondition())
        {
            // Move stop loss to breakeven
            MoveStopLossToBreakeven();
        }
    }
}

bool CheckCandleRangeCondition()
{
    double range = 0;
    for (int i = 0; i < 5; i++)
    {
        range += High[i] - Low[i];
    }
    range /= 5;
  
    return range >= CandleRangeCondition * Point;
}

void CalculateEntryPoints()
{
    double highestHigh = High[1];
    double lowestLow = Low[1];
  
    for (int i = 1; i <= 5; i++)
    {
        if (High[i] > highestHigh)
            highestHigh = High[i];
        if (Low[i] < lowestLow)
            lowestLow = Low[i];
    }
  
    entryPointBuy = highestHigh + 2 * Point;
    entryPointSell = lowestLow - 2 * Point;
    stopLossBuy = lowestLow - 2 * Point;
    stopLossSell = highestHigh + 2 * Point;
    takeProfitBuy = entryPointBuy + 3 * (entryPointBuy - stopLossBuy);
    takeProfitSell = entryPointSell - 3 * (stopLossSell - entryPointSell);
}

double CalculateLotSize()
{
    double lotSize = 0;
  
    if (ManualLotSize)
    {
        // Adjust the lot size manually for each trade
        // Add your own logic here
        lotSize = 0.01;
    }
    else if (RiskAllocation)
    {
        // Calculate lot size based on risk percentage
        double accountBalance = AccountBalance();
        double riskAmount = accountBalance * RiskPercentage / 100.0;
        double stopLossDistance = MathMax(stopLossBuy - entryPointBuy, entryPointSell - stopLossSell);
        lotSize = riskAmount / stopLossDistance;
    }
  
    return lotSize;
}

bool CheckBreakevenCondition()
{
    // Check if the price has reached 1 to 1 ratio
    // Add your own logic here
  
    return false;
}

void MoveStopLossToBreakeven()
{
    // Move stop loss to breakeven
    // Add your own logic here
}

Répondu

1
Développeur 1
Évaluation
(1)
Projets
1
0%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(93)
Projets
114
24%
Arbitrage
21
29% / 52%
En retard
8
7%
Gratuit
3
Développeur 3
Évaluation
(429)
Projets
627
54%
Arbitrage
30
53% / 23%
En retard
6
1%
Occupé
4
Développeur 4
Évaluation
(64)
Projets
68
25%
Arbitrage
12
42% / 42%
En retard
4
6%
Gratuit
5
Développeur 5
Évaluation
(2638)
Projets
3353
67%
Arbitrage
77
48% / 14%
En retard
342
10%
Travail
Publié : 1 code
6
Développeur 6
Évaluation
(308)
Projets
552
35%
Arbitrage
79
32% / 42%
En retard
199
36%
Chargé
7
Développeur 7
Évaluation
(11)
Projets
16
25%
Arbitrage
1
0% / 100%
En retard
1
6%
Gratuit
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(37)
Projets
59
27%
Arbitrage
26
19% / 54%
En retard
10
17%
Travail
Publié : 1 code
10
Développeur 10
Évaluation
(77)
Projets
243
74%
Arbitrage
7
100% / 0%
En retard
1
0%
Gratuit
Publié : 1 article
11
Développeur 11
Évaluation
(11)
Projets
18
28%
Arbitrage
4
50% / 50%
En retard
1
6%
Gratuit
12
Développeur 12
Évaluation
(11)
Projets
11
0%
Arbitrage
5
20% / 60%
En retard
2
18%
Gratuit
13
Développeur 13
Évaluation
(72)
Projets
80
10%
Arbitrage
38
8% / 58%
En retard
6
8%
Gratuit
14
Développeur 14
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
15
Développeur 15
Évaluation
(568)
Projets
641
41%
Arbitrage
25
48% / 36%
En retard
46
7%
Travail
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Développeur 17
Évaluation
(75)
Projets
80
6%
Arbitrage
46
11% / 54%
En retard
7
9%
Travail
Commandes similaires
The indicator a bit inverted. But it doesn’t matter to me as long as the winrate make sense for investment. For brief details regarding the indicator. What should have been a sell, i inverted it into buy with sl and tp swapped(only change the name of sl and tp for visualisation , but the code still on right tp and sl) . And in script ive inverted the signal command code. But the trouble is the tp and sl cant be
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries
Patrick 30 - 200 USD
//+------------------------------------------------------------------+ //| EURUSD Daily Strategy EA | //+------------------------------------------------------------------+ extern int MA_Fast = 50; extern int MA_Slow = 200; extern int RSI_Period = 14; extern double RiskReward = 2.0; extern double StopLossMultiplier = 1.5; void OnTick() { if (TimeCurrent() != iTime(NULL, PERIOD_D1, 0)) return;
I would like to create a robot with the smart money concepts, that integrates order block,FVG,supply & demand ,read the market structure,liquidity and also trade with the session and also after a liquidity sweep a market structure is needed to verify the reversal and a retracement to the order block and sometimes fair value Gap
Joker poverty scalper 40 - 100 USD
the joker poverty scalper is the power full robort it can analyse in just 1 minutes it is good for beginner traders you can even make 5000$ in just an week or two.. the best thing to do is to buy joker and make life easy with your own copy of joker .in order to be rich you need the joker to help you with your success in life even in future THE JOKER POVERT SCALPER
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Project Scope Development of a fully automated, conservative, institutional-style Expert Advisor for MT5 trading XAUUSD, designed with strict capital preservation and mathematically structured risk management. • Symbol input will be fully configurable to support broker-specific suffixes/prefixes (example: XAUUSD.a, XAUUSDm) and automatically adapt to different digit formats. Core Strategy Logic • Higher-timeframe
I can Program or do any Developing for you for MQL5 or 4 I can work 1 - 5 days deposit is required before im doing anything for both our safety as these work takes a lot of time and energy inbox me and we can discuss the job im reliable and trustworthy looking forward to working with you
Ai robot 30 - 50 USD
1️⃣ System Architecture An AI robot typically consists of the following subsystems: 🔹 1. Perception Layer Collects environmental data using: RGB / Depth cameras LiDAR Ultrasonic sensors IMUs (Inertial Measurement Units) Microphones Data is processed using: Computer Vision (e.g., object detection, SLAM) Signal processing Sensor fusion algorithms 🔹 2. Cognition / Intelligence Layer Implements AI models such as
I'm looking for a good MT5 EA that is not martingale , Must work on real account, Looking mainly for Gold or Major Forex pairs or BTC. Willing to purchase the full source code if you have a woking EA that fits the criteria Must work on small standard accounts below 1000$ capital or cent accounts Looking to test it before purchase, or if you can show me a read only access account that would be great

Informations sur le projet

Budget
30 - 50 USD