Termos de Referência

//+------------------------------------------------------------------+
//| GoldTraderEA.mq5 |
//| Copyright 2024, Your Name |
//| www.yourwebsite.com |
//+------------------------------------------------------------------+
#property strict

#include <Trade\Trade.mqh>

input double Lots = 0.1; // Lot size
input int MA_Period = 14; // Moving Average period
input int BB_Period = 20; // Bollinger Bands period
input double BB_Deviation = 2.0; // Bollinger Bands deviation

CTrade trade;

double MovingAverage, BB_Upper, BB_Lower, Fractals_Up, Fractals_Down;

int OnInit()
  {
   Print("Gold Trader EA Initialized");
   return(INIT_SUCCEEDED);
  }

void OnTick()
  {
   MovingAverage = iMA(Symbol(), PERIOD_CURRENT, MA_Period, 0, MODE_SMA, PRICE_CLOSE);
   BB_Upper = iBands(Symbol(), PERIOD_CURRENT, BB_Period, BB_Deviation, 0, PRICE_CLOSE, MODE_UPPER);
   BB_Lower = iBands(Symbol(), PERIOD_CURRENT, BB_Period, BB_Deviation, 0, PRICE_CLOSE, MODE_LOWER);
   Fractals_Up = iFractals(Symbol(), PERIOD_CURRENT, MODE_UPPER);
   Fractals_Down = iFractals(Symbol(), PERIOD_CURRENT, MODE_LOWER);

   double AskPrice = SymbolInfoDouble(Symbol(), SYMBOL_ASK);
   double BidPrice = SymbolInfoDouble(Symbol(), SYMBOL_BID);

   // Check for buy signal
   if (BidPrice > MovingAverage && BidPrice > BB_Upper && BidPrice > Fractals_Up && OrdersTotal() == 0)
     {
      if(trade.Buy(Lots, NULL, AskPrice, 0, 0, "Buy Order"))
         Print("Buy order opened successfully");
      else
         Print("Error opening buy order: ", GetLastError());
     }

   // Check for sell signal
   if (AskPrice < MovingAverage && AskPrice < BB_Lower && AskPrice < Fractals_Down && OrdersTotal() == 0)
     {
      if(trade.Sell(Lots, NULL, BidPrice, 0, 0, "Sell Order"))
         Print("Sell order opened successfully");
      else
         Print("Error opening sell order: ", GetLastError());
     }
  }

void OnDeinit(const int reason)
  {
   Print("Gold Trader EA Deinitialized");
  }

Respondido

1
Desenvolvedor 1
Classificação
(13)
Projetos
17
12%
Arbitragem
7
14% / 57%
Expirado
4
24%
Livre
2
Desenvolvedor 2
Classificação
(167)
Projetos
192
11%
Arbitragem
37
38% / 35%
Expirado
5
3%
Trabalhando
3
Desenvolvedor 3
Classificação
(137)
Projetos
160
23%
Arbitragem
5
0% / 60%
Expirado
4
3%
Trabalhando
4
Desenvolvedor 4
Classificação
(10)
Projetos
25
28%
Arbitragem
1
0% / 0%
Expirado
1
4%
Carregado
5
Desenvolvedor 5
Classificação
(104)
Projetos
134
42%
Arbitragem
19
16% / 53%
Expirado
20
15%
Trabalhando
6
Desenvolvedor 6
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(1)
Projetos
3
0%
Arbitragem
0
Expirado
0
Trabalhando
8
Desenvolvedor 8
Classificação
(449)
Projetos
508
33%
Arbitragem
25
40% / 48%
Expirado
7
1%
Carregado
9
Desenvolvedor 9
Classificação
(59)
Projetos
65
31%
Arbitragem
2
0% / 0%
Expirado
0
Carregado
10
Desenvolvedor 10
Classificação
(7)
Projetos
9
22%
Arbitragem
0
Expirado
0
Trabalhando
11
Desenvolvedor 11
Classificação
(17)
Projetos
33
64%
Arbitragem
0
Expirado
5
15%
Trabalhando
12
Desenvolvedor 12
Classificação
(4)
Projetos
1
0%
Arbitragem
3
0% / 67%
Expirado
0
Trabalhando
Pedidos semelhantes
Hello developers, I want a robot volatility 10 I want the robot to have 9 winning trades and 1 losing trade guaranteed I have a picture that shows what I want. Anyone who can do this and has experience in this can contact me so we can work together no mt5 or mt4
looking for help to get my ibkr automated, i have strategies already built in composer and have JSON for them, i really just need to he setup and explanation on how to maintain it and add new strategies
Hello, do you have a service that can send messages directly to individual channel members rather than to the entire group? If so, please contact me via direct message immediately. This is urgent
Hello friends, I need to find someone with successful experience TradingView Publish indicator. I would like to reiterate that you must have experience successfully authorizing many indicators on tradingview. (because I knew how to do it but 1 day later my TradingView account was still locked). Because I need it urgently! Thank you very much
Mô tả cài đặt trình đơn: Tôi chọn cài đặt trên EA một mức giá bất kỳ, khi cây nến cắt lên đóng cửa trên mức giá đó thì EA sẽ tự động đặt một lệnh mua với khối lượng tôi cài đặt trên EA, khi cây nến cắt xuống đóng cửa dưới mức giá đó thì EA sẽ tự động bán với khối lượng tôi cài đặt trên EA. Lưu ý EA này có thể sử dụng được tất cả các khung thời gian. Ví dụ: Tôi chọn cài đặt mức giá 2000 trên đồ thị vàng và chọn khung
Hi dear all i have easy simple strategy i need to make it on trading View for explain and test it.after conform change it to mql5 to use it in MT4&5 with same copy of trading View and same data.e-maie(Ali-mech88@hotmail.com)
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
I need a AI signal generating bot for forex trading. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame whether they are buying or selling. If it is buying the arrow should be green and if it is
Using Bollinger Band only. When price closes above upper BB, open Buy. If the length of the candle body that closed above the upper BB is more than Y pips, then do not Buy and remove the EA. Otherwise, continue to open Buy if crosses and close above upper BB and the number of positions is not more than Max No of Positions. The user will choose either Buy or Sell only. When price closes below the lower BB, close all
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this

Informações sobre o projeto

Orçamento
1596+ USD
Prazo
de 1 para 70 dias

Cliente

Pedidos postados1
Número de arbitragens0