Bullish engulfing dan bearish engulfing

MQL5 Experts

Termos de Referência

//+------------------------------------------------------------------+
//|                                               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");
        }
     }
  }
//+------------------------------------------------------------------+

Respondido

1
Desenvolvedor 1
Classificação
(167)
Projetos
187
32%
Arbitragem
6
50% / 50%
Expirado
2
1%
Trabalhando
2
Desenvolvedor 2
Classificação
(214)
Projetos
347
16%
Arbitragem
22
41% / 32%
Expirado
18
5%
Ocupado
3
Desenvolvedor 3
Classificação
(59)
Projetos
66
6%
Arbitragem
27
19% / 37%
Expirado
4
6%
Ocupado
4
Desenvolvedor 4
Classificação
(29)
Projetos
35
14%
Arbitragem
5
40% / 60%
Expirado
5
14%
Livre
5
Desenvolvedor 5
Classificação
(315)
Projetos
401
21%
Arbitragem
44
61% / 23%
Expirado
46
11%
Trabalhando
6
Desenvolvedor 6
Classificação
(10)
Projetos
25
28%
Arbitragem
3
0% / 0%
Expirado
1
4%
Carregado
7
Desenvolvedor 7
Classificação
(36)
Projetos
46
37%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(2)
Projetos
5
0%
Arbitragem
1
0% / 0%
Expirado
1
20%
Trabalhando
9
Desenvolvedor 9
Classificação
(7)
Projetos
13
8%
Arbitragem
0
Expirado
3
23%
Carregado
10
Desenvolvedor 10
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(172)
Projetos
244
21%
Arbitragem
17
65% / 18%
Expirado
1
0%
Carregado
12
Desenvolvedor 12
Classificação
(1100)
Projetos
1457
46%
Arbitragem
49
73% / 12%
Expirado
36
2%
Trabalhando
13
Desenvolvedor 13
Classificação
(3)
Projetos
7
29%
Arbitragem
1
100% / 0%
Expirado
0
Trabalhando
14
Desenvolvedor 14
Classificação
(98)
Projetos
121
40%
Arbitragem
10
80% / 0%
Expirado
0
Trabalhando
15
Desenvolvedor 15
Classificação
(5)
Projetos
7
29%
Arbitragem
2
50% / 0%
Expirado
2
29%
Livre
16
Desenvolvedor 16
Classificação
(357)
Projetos
563
33%
Arbitragem
24
67% / 8%
Expirado
17
3%
Livre
17
Desenvolvedor 17
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
33+ USD
Prazo
de 1 para 99 dias

Cliente

Pedidos postados1
Número de arbitragens0