Техническое задание

HI

i want some one to make the following MQL5 code work for me. the code has errors.


#include <Trade\Trade.mqh> // Include the trade library


// Define input parameters

input double lotSize = 0.1;    // Lot size for trading

input int stopLoss = 50;       // Stop Loss in pips

input int takeProfit = 100;    // Take Profit in pips


//+------------------------------------------------------------------+

//| Expert initialization function                                   |

//+------------------------------------------------------------------+

int OnInit()

{

    // Subscribe to OnTrade() event

    EventSetMillisecondTimer(60);  // Set a timer to check conditions every 60 milliseconds

    return(INIT_SUCCEEDED);

}


//+------------------------------------------------------------------+

//| Expert deinitialization function                                 |

//+------------------------------------------------------------------+

void OnDeinit(const int reason)

{

    // Deinitialization function (if needed)

    EventKillTimer();  // Kill the timer when deinitializing

}


//+------------------------------------------------------------------+

//| Expert tick function                                             |

//+------------------------------------------------------------------+

void OnTick()

{

    // Nothing to do here for conditions check, as we use OnTrade()

}


//+------------------------------------------------------------------+

//| Expert trade event handler                                       |

//+------------------------------------------------------------------+

void OnTrade()

{

    // Calculate the open and close prices of the previous day

    double prevDayOpen = iOpen(Symbol(), PERIOD_D1, 1);

    double prevDayClose = iClose(Symbol(), PERIOD_D1, 1);


    // Check for Rule 1: Previous day was an uptrend

    if (prevDayClose > prevDayOpen)

    {

        // Check if the current open price is between the previous day's open and close prices

        double currentOpen = iOpen(Symbol(), PERIOD_D1, 0);

        if (currentOpen > prevDayOpen && currentOpen < prevDayClose)

        {

            // Buy if the price breaks above the previous day's close price

            double currentHigh = iHigh(Symbol(), PERIOD_D1, 0);

            if (currentHigh > prevDayClose)

            {

                // Place a Buy order

                double openPrice = SymbolInfoDouble(_Symbol, SYMBOL_ASK);

                double stopLossPrice = openPrice - stopLoss * _Point;

                double takeProfitPrice = openPrice + takeProfit * _Point;


                int ticket = OrderSend(_Symbol, OP_BUY, lotSize, openPrice, 3, 0, 0, "", 0, clrNONE, 0, clrNONE);

                if (ticket > 0)

                {

                    // Order placed successfully - set Stop Loss and Take Profit

                    OrderSend(_Symbol, OP_SELL, lotSize, openPrice, 0, stopLossPrice, takeProfitPrice, "", 0, clrNONE, 0, clrNONE);

                }

            }

        }

    }


    // Check for Rule 2: Opposite of Rule 1

    if (prevDayClose < prevDayOpen)

    {

        // Check if the current open price is between the previous day's open and close prices

        double currentOpen = iOpen(Symbol(), PERIOD_D1, 0);

        if (currentOpen > prevDayOpen && currentOpen < prevDayClose)

        {

            // Sell if the price breaks below the previous day's close price

            double currentLow = iLow(Symbol(), PERIOD_D1, 0);

            if (currentLow < prevDayClose)

            {

                // Place a Sell order

                double openPrice = SymbolInfoDouble(_Symbol, SYMBOL_BID);

                double stopLossPrice = openPrice + stopLoss * _Point;

                double takeProfitPrice = openPrice - takeProfit * _Point;


                int ticket = OrderSend(_Symbol, OP_SELL, lotSize, openPrice, 3, 0, 0, "", 0, clrNONE, 0, clrNONE);

                if (ticket > 0)

                {

                    // Order placed successfully - set Stop Loss and Take Profit

                    OrderSend(_Symbol, OP_BUY, lotSize, openPrice, 0, stopLossPrice, takeProfitPrice, "", 0, clrNONE, 0, clrNONE);

                }

            }

        }

    }

}


Откликнулись

1
Разработчик 1
Оценка
(263)
Проекты
329
29%
Арбитраж
36
25% / 64%
Просрочено
10
3%
Работает
2
Разработчик 2
Оценка
(139)
Проекты
181
24%
Арбитраж
23
22% / 39%
Просрочено
13
7%
Свободен
3
Разработчик 3
Оценка
(328)
Проекты
513
19%
Арбитраж
35
43% / 31%
Просрочено
34
7%
Загружен
4
Разработчик 4
Оценка
(44)
Проекты
60
5%
Арбитраж
6
0% / 67%
Просрочено
5
8%
Свободен
5
Разработчик 5
Оценка
(195)
Проекты
242
34%
Арбитраж
11
45% / 45%
Просрочено
8
3%
Свободен
Опубликовал: 1 статью, 8 примеров
6
Разработчик 6
Оценка
(258)
Проекты
266
29%
Арбитраж
0
Просрочено
3
1%
Работает
Опубликовал: 2 примера
7
Разработчик 7
Оценка
(274)
Проекты
403
28%
Арбитраж
40
40% / 50%
Просрочено
1
0%
Свободен
8
Разработчик 8
Оценка
(160)
Проекты
203
60%
Арбитраж
10
80% / 0%
Просрочено
0
Свободен
Опубликовал: 1 пример
9
Разработчик 9
Оценка
(85)
Проекты
174
44%
Арбитраж
3
100% / 0%
Просрочено
5
3%
Свободен
Опубликовал: 1 пример
10
Разработчик 10
Оценка
(37)
Проекты
59
27%
Арбитраж
26
19% / 54%
Просрочено
10
17%
Работает
Опубликовал: 1 пример
11
Разработчик 11
Оценка
(1156)
Проекты
1462
63%
Арбитраж
21
57% / 10%
Просрочено
43
3%
Свободен
12
Разработчик 12
Оценка
(548)
Проекты
833
62%
Арбитраж
33
27% / 45%
Просрочено
24
3%
Свободен
Опубликовал: 1 пример
13
Разработчик 13
Оценка
(43)
Проекты
66
12%
Арбитраж
12
58% / 42%
Просрочено
1
2%
Свободен
14
Разработчик 14
Оценка
(610)
Проекты
708
33%
Арбитраж
45
44% / 42%
Просрочено
14
2%
Загружен
15
Разработчик 15
Оценка
(12)
Проекты
25
4%
Арбитраж
1
0% / 0%
Просрочено
7
28%
Свободен
16
Разработчик 16
Оценка
(459)
Проекты
486
70%
Арбитраж
6
67% / 0%
Просрочено
2
0%
Работает
17
Разработчик 17
Оценка
(152)
Проекты
228
80%
Арбитраж
22
27% / 50%
Просрочено
11
5%
Свободен
Опубликовал: 24 статьи, 1882 примера
18
Разработчик 18
Оценка
(45)
Проекты
76
20%
Арбитраж
7
0% / 86%
Просрочено
14
18%
Свободен
19
Разработчик 19
Оценка
(2)
Проекты
2
0%
Арбитраж
1
0% / 0%
Просрочено
2
100%
Свободен
20
Разработчик 20
Оценка
(45)
Проекты
46
24%
Арбитраж
34
9% / 85%
Просрочено
10
22%
Свободен
21
Разработчик 21
Оценка
(3)
Проекты
2
50%
Арбитраж
2
0% / 100%
Просрочено
0
Свободен
22
Разработчик 22
Оценка
(15)
Проекты
20
35%
Арбитраж
3
0% / 100%
Просрочено
0
Свободен
Опубликовал: 1 пример
23
Разработчик 23
Оценка
(257)
Проекты
341
58%
Арбитраж
7
14% / 71%
Просрочено
9
3%
Свободен
24
Разработчик 24
Оценка
(3)
Проекты
1
0%
Арбитраж
5
0% / 100%
Просрочено
0
Свободен
25
Разработчик 25
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
Master mind 30+ USD
Start ↓ Detect Trend (H4) ↓ Confirm Structure (H1) ↓ Wait for Pullback ↓ Check Indicators ↓ Calculate Confidence Score ↓ Score ≥ 80? ├── No → Wait └── Yes ↓ Calculate Lot Size ↓ Place Order ↓ Set Stop Loss ↓ Set Take Profit ↓ Manage Trade ↓ Move to Break-even ↓ Trail Stop ↓ Close Trade. IF Price > EMA200 (H4) AND EMA50 > EMA200 (H4) AND ADX > 25 AND RSI between 55 and 70 AND MACD Main > Signal AND Bullish engulfing
A robot 50+ USD
HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f
# HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f}")
I need a trading bot, please i need this project urgently and when messaing me kindly send me samples of past works and dont forget i need the project to be done as soon as possible
If you have good Market structure indicators with buffer no repaint internal structure and external structure etc good market structure if you have then i already have ea you have to input into the indicator soy current ea opens position based on the market structure
*Need an MQL5 EA for MT5 to trade gold and forex automatically. Must include Stop Loss, Take Profit, and basic risk management. Budget is $30 to $50. Looking for clean, stable code that works on VPS.*
Hello Developers, I am looking for an experienced MQL5 developer to complete the development of a custom MetaTrader 5 Expert Advisor (EA) based on my proprietary trading strategy. I already have a partially developed EA that includes the required custom indicators and part of the trading logic. The project can either be completed by modifying the existing EA or, if more appropriate, by rebuilding it from scratch
Description: I need an experienced MQL5 developer to build a professional MT5 Expert Advisor for XAU/USD based on my trading strategy. I require the full .mq5 source code and the compiled file. Trading Logic: Timeframes: H4 to determine overall direction, H1 for supply and demand zones, M15 for trade entries. Buy conditions: H4 trend is bullish, price reaches a valid H1 demand zone, liquidity sweep occurs below the
WORKING EA 35+ USD
I Need an existing proven profitable EA. EA should have at least 3 months track record of consistency. My budget is $35 and nothing more. If you do not have the working EA for that amount, please do not apply. I'm not paying a dime more. Again do not apply if you are not willing to take the above amount
Standby Description . Prop Firm Environment . ( Monitor Execution and Handling Environment Changes as Required ) . Technical Issues . Delete extra lines of code (Clean Code , Folder) . Asset related translation , no need for Logic Alteration

Информация о проекте

Бюджет
30+ USD