Bullish engulfing dan bearish engulfing

MQL5 Asesores Expertos

Tarea técnica

//+------------------------------------------------------------------+
//|                                               EngulfingBot.mq5    |
//|                        Copyright 2024, Your Name                 |
//|                                       https://yourwebsite.com     |
//+------------------------------------------------------------------+
input double TakeProfit = 50; // Take profit dalam pips
input double StopLoss = 30;    // Stop loss dalam pips
input double LotSize = 0.1;     // Ukuran lot
input int Slippage = 3;         // Slippage

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   return(INIT_SUCCEEDED);
  }

//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
  }

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   int lastBar = 1; // Menggunakan bar terakhir
   double open1 = iOpen(NULL, 0, lastBar);
   double close1 = iClose(NULL, 0, lastBar);
   double open2 = iOpen(NULL, 0, lastBar + 1);
   double close2 = iClose(NULL, 0, lastBar + 1);

   // Memeriksa bullish engulfing
   if (close1 > open1 && open1 < close2 && close2 < open2)
     {
      // Buka posisi Buy
      if (OrderSend(Symbol(), OP_BUY, LotSize, Ask, Slippage, 0, 0, "Bullish Engulfing", 0, 0, clrGreen) > 0)
        {
         Print("Buy Order Opened");
        }
     }

   // Memeriksa bearish engulfing
   if (close1 < open1 && open1 > close2 && close2 > open2)
     {
      // Buka posisi Sell
      if (OrderSend(Symbol(), OP_SELL, LotSize, Bid, Slippage, 0, 0, "Bearish Engulfing", 0, 0, clrRed) > 0)
        {
         Print("Sell Order Opened");
        }
     }
  }
//+------------------------------------------------------------------+

Han respondido

1
Desarrollador 1
Evaluación
(167)
Proyectos
187
32%
Arbitraje
6
50% / 50%
Caducado
2
1%
Trabaja
2
Desarrollador 2
Evaluación
(214)
Proyectos
347
16%
Arbitraje
22
41% / 32%
Caducado
18
5%
Ocupado
3
Desarrollador 3
Evaluación
(59)
Proyectos
66
6%
Arbitraje
27
19% / 37%
Caducado
4
6%
Ocupado
4
Desarrollador 4
Evaluación
(29)
Proyectos
35
14%
Arbitraje
5
40% / 60%
Caducado
5
14%
Libre
5
Desarrollador 5
Evaluación
(315)
Proyectos
401
21%
Arbitraje
44
61% / 23%
Caducado
46
11%
Trabaja
6
Desarrollador 6
Evaluación
(10)
Proyectos
25
28%
Arbitraje
3
0% / 0%
Caducado
1
4%
Trabajando
7
Desarrollador 7
Evaluación
(36)
Proyectos
46
37%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(2)
Proyectos
5
0%
Arbitraje
1
0% / 0%
Caducado
1
20%
Trabaja
9
Desarrollador 9
Evaluación
(7)
Proyectos
13
8%
Arbitraje
0
Caducado
3
23%
Trabajando
10
Desarrollador 10
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(172)
Proyectos
244
21%
Arbitraje
17
65% / 18%
Caducado
1
0%
Trabajando
12
Desarrollador 12
Evaluación
(1100)
Proyectos
1457
46%
Arbitraje
49
73% / 12%
Caducado
36
2%
Trabaja
13
Desarrollador 13
Evaluación
(3)
Proyectos
7
29%
Arbitraje
1
100% / 0%
Caducado
0
Trabaja
14
Desarrollador 14
Evaluación
(98)
Proyectos
121
40%
Arbitraje
10
80% / 0%
Caducado
0
Trabaja
15
Desarrollador 15
Evaluación
(5)
Proyectos
7
29%
Arbitraje
2
50% / 0%
Caducado
2
29%
Libre
16
Desarrollador 16
Evaluación
(357)
Proyectos
563
33%
Arbitraje
24
67% / 8%
Caducado
17
3%
Libre
17
Desarrollador 17
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Hi there I'm looking to create an EA that incorporates my trading strategy, unfortunately I do not have experience coding. The strategy consist of: - Fibonacci retracement on 4h timeframe, in the direction of the trend - The trade needs to be opened following trend direction - indicator EMA - need option to customize period input, Uptrend if price above EMA, downtrend if price below EMA - Only take high quality
Hi, I am looking for you who probably already got this high-performing bot that I am looking for or is willing to create one. My main focus is XAUUSD. Win-Rate should be >70% on back-test, Should also be able to run live demo a/c and show profit. There has to be a clear strategy and parameters in order to optimize and adapt to change
Hello there, am in need of an expert pinescript programmer who can work on an existing code to add some indicators and features. Please bid if you understand pinescript well and can work on existing code
We are seeking an experienced MQL4 developer to create a forecasting indicator with a prediction accuracy above 80%. The indicator must be capable of learning from historical market data starting from the year 2000 to the present. Additionally, it should offer an option to analyze and learn from all available candlesticks on the current timeframe, allowing it to adapt to real-time market conditions. Key Requirements
Dears, I hope you are doing well. I am looking to develop a trading bot specifically for trading gold on the MT5 platform. My target is for the bot to generate a monthly return of 40-60% on the initial capital, which will start at $2,000, with a leverage of 1:400. Additionally, I would like to have access to the indicators and tools necessary for evaluating the bot’s performance. These should include key metrics like
I have an expert that wrote in Mq4 .. and I would like to convert it to Mq5 .. to work as it works on mq4 .. with some added options.. so who can do it for me
Mega-FX Indicator 30 - 100 USD
Hello the Mega-Fx Indicator is currently running on MT4. I would need it in Mt5 and automatic trading with free setting of parameters. Specifically. When he should make a trade should be adjustable
I am looking for someone to help me to automate my trading from mt4/5 expert advisors and own trades to tradovate. My trades are generated by my expert in MT5, I want those trades copied to Tradovate's platform using their API to different accounts, that some programmers have suggested is a REST API and should be easily doable
Kindly access the vps to check out the EA, the name of the EA I'm referring to is called TOPGUN 2.0 The EA is in below VPS Server: 176.57.188.42 User:administrator Password: Test20082024! The project is to replicate the same EA in the server and code a very similar one based on the exact functionality in that existing EA
Good day. I would like to have an EA that closes all positions when a certain equity has been achieved. For example, I set balance to 100$ and equity target profit to 5$. When equity reaches 105$, it closes all positions and does the process again to 110$, 115$ and so on and so forth

Información sobre el proyecto

Presupuesto
33+ USD
Plazo límite de ejecución
de 1 a 99 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0