İş Gereklilikleri

//+------------------------------------------------------------------+
//|                                                     SimpleEA.mq4 |
//|                        Generated by MetaEditor                   |
//|                   https://www.mql5.com/en/docs                   |
//+------------------------------------------------------------------+
#property strict

// Input parameters
input double LotSize = 0.1; // Lot size
input int MovingAveragePeriod = 50; // MA period

// Global variables
double maCurrent;
double maPrevious;

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   // Initialization of variables
   maCurrent = 0;
   maPrevious = 0;
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   // Cleanup code here
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   // Calculate current and previous MA
   maCurrent = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   maPrevious = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   
   // Check for buy signal
   if (maPrevious < Close[1] && maCurrent > Close[0])
     {
      // Open buy order
      OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, "Buy Order", 0, 0, Blue);
     }
   
   // Check for sell signal
   if (maPrevious > Close[1] && maCurrent < Close[0])
     {
      // Open sell order
      OrderSend(Symbol(), OP_SELL, LotSize, Bid, 2, 0, 0, "Sell Order", 0, 0, Red);
     }
  }
//+------------------------------------------------------------------+

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(86)
Projeler
106
37%
Arabuluculuk
8
88% / 0%
Süresi dolmuş
0
Çalışıyor
2
Geliştirici 2
Derecelendirme
(292)
Projeler
366
21%
Arabuluculuk
43
58% / 23%
Süresi dolmuş
41
11%
Yüklendi
3
Geliştirici 3
Derecelendirme
(1)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
4
Geliştirici 4
Derecelendirme
(8)
Projeler
18
17%
Arabuluculuk
3
67% / 0%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(4)
Projeler
1
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(159)
Projeler
162
78%
Arabuluculuk
2
100% / 0%
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(121)
Projeler
154
43%
Arabuluculuk
20
60% / 20%
Süresi dolmuş
7
5%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(16)
Projeler
17
12%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
(194)
Projeler
198
27%
Arabuluculuk
0
Süresi dolmuş
3
2%
Serbest
10
Geliştirici 10
Derecelendirme
(38)
Projeler
40
25%
Arabuluculuk
20
15% / 75%
Süresi dolmuş
8
20%
Çalışıyor
11
Geliştirici 11
Derecelendirme
(67)
Projeler
76
7%
Arabuluculuk
33
9% / 55%
Süresi dolmuş
6
8%
Çalışıyor
Benzer siparişler
hey friends, I am looking to build a smart trading robot, for the capital market. He knew how to trade in all the different types of trade. Example - in shares, currencies, index, indices, ETFs, funds, commodities, options, futures and so on. Suitable for trading on all stock exchanges in the world. It will be possible to install the trading robot in the MetaTrader 5 trading software. But it will also be possible to
Hello Greetings. I have a custom tradingview strategy I would like to convert to Metatrader 5 ( mt5 ) . I have the source code a and with me. Kindly bid if it is what you can do for me and let discuss about the project. Thanks
Hello there, I need a mql4 EA based on pine script custom indicator. You need to do pine script indicator convert into mt4 advisor. If you are able to do please contact. Thanks
Can you get my drafts to work? Have to conditions in RSI and Stoch oscillators ,,,I have a draft but its not run,, you can help me? if iRsi <30 ordersend op_sell iStoch > 80 ordersend op_sell Period_15M Send Orders_Buy limit Pivot Price Send Orders_Sell Limit Pivot Price
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
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, and my budget is $20, Thank you
Hello freelancers here, I need an expert freelancer to help me convert an expert advisor from MT4 to MT5. I have the MT4 source code, As for now i only got $15 for this project i don't have much on me at the moment, So i need someone who can work long terms cause i still have other projects i need him to work on for me
An EA based on Fibonacci 100 - 750 USD
I am in need of 3 EA based on Fibonacci re-tracement after a high or low is made,each EA will have a hedge trade on it.the hedge trade will be at the 50 percent of the Fibonacci..this will be present on all 3 EA, all three EA will have different levels of re-tracement, while the hedge trade will be a continuation (buy/sell stop), while the re-tracement trades will be (buy/sell limit)This EA must work on timeframe

Proje bilgisi

Bütçe
50+ USD

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0