İş Gereklilikleri


*Strategy:*

- Buy when the 50-day moving average crosses above the 200-day moving average
- Sell when the 50-day moving average crosses below the 200-day moving average

*Code:*
```
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
int OnInit()
{
   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
//| Script deinit function                                            |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   ObjectDelete(_MA50);
   ObjectDelete(_MA200);
}

//+------------------------------------------------------------------+
//| Script tick function                                              |
//+------------------------------------------------------------------+
void OnTick()
{
   double ma50 = iMA(Symbol(), PERIOD_CURRENT, 50, 0, MODE_SMA, PRICE_CLOSE, 0);
   double ma200 = iMA(Symbol(), PERIOD_CURRENT, 200, 0, MODE_SMA, PRICE_CLOSE, 0);
   
   if (ma50 > ma200 && OrderSend(_Symbol, OP_BUY, 0.1, Ask, 3, Bid-20*Point, Bid+20*Point, "MyOrder", 0, 0, Green) == ORDER_RETCODE_DONE)
   {
      Comment("Buy order executed");
   }
   
   else if (ma50 < ma200 && OrderSend(_Symbol, OP_SELL, 0.1, Bid, 3, Ask-20*Point, Ask+20*Point, "MyOrder", 0, 0, Red) == ORDER_RETCODE_DONE)
   {
      Comment("Sell order executed");
   }
}

//+------------------------------------------------------------------+
//| Script deinit function                                            |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   ObjectDelete(_MA50);
   ObjectDelete(_MA200);
}
```
This code creates a simple moving average crossover strategy, buying when the 50-day MA crosses above the 200-day MA and selling when it crosses below.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(2)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Ücretsiz
2
Geliştirici 2
Derecelendirme
(15)
Projeler
16
13%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Çalışıyor
3
Geliştirici 3
Derecelendirme
(32)
Projeler
53
36%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
6
11%
Yüklendi
4
Geliştirici 4
Derecelendirme
(53)
Projeler
155
69%
Arabuluculuk
4
100% / 0%
Süresi dolmuş
1
1%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(2390)
Projeler
3000
65%
Arabuluculuk
76
47% / 14%
Süresi dolmuş
340
11%
Ücretsiz
6
Geliştirici 6
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Çalışıyor
7
Geliştirici 7
Derecelendirme
(54)
Projeler
73
44%
Arabuluculuk
21
14% / 67%
Süresi dolmuş
8
11%
Ücretsiz
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Ücretsiz
9
Geliştirici 9
Derecelendirme
(1118)
Projeler
1420
62%
Arabuluculuk
21
57% / 10%
Süresi dolmuş
43
3%
Ücretsiz
10
Geliştirici 10
Derecelendirme
(40)
Projeler
43
30%
Arabuluculuk
2
0% / 0%
Süresi dolmuş
0
Yüklendi
11
Geliştirici 11
Derecelendirme
(557)
Projeler
924
48%
Arabuluculuk
301
59% / 25%
Süresi dolmuş
123
13%
Yüklendi
Benzer siparişler
I need someone to help me convert my tradingview pinescript to mt4, I only got $20 for this and I am gonna be giving you more works ahead, Also I will be paying with cryptocurrency cause my PayPal os not working here, Don't know why
WebRequest Kill Switch 75 - 100 USD
Project name: Webrequest Kill Switch Aim: The end user will have the ability to close all open trades or toggle the autotrading button from an external url Platform: MT4 Summary: There are two sub projects within this project: (i) Creation of a web form on an external url (ii) Expert advisor script which calls the Webrequest function to interact with (i)
I need someone to help me convert my tradingview pinescript to mt4, my budget for this project is $20 and I need this done fast in two days, Also, I am going to need you to be able to build a new indicator because that's the nest project, But I need to know if you can do this first , Thank you
I need you to convert my tradingview pinescript to mt4, I have just $10 for it now, But i am going to give you more work later on cause i still have more work i am going to need you to work on for me, and i will be paying with crypto, Thank You
Hello, I am in need of an expert to help me convert my tradingview pinescript to mt4, I will attach the file, But for now, I only got $15 for this project and the only payment method I can use right now is crypto, I will send it to you through crypto, Also I need someone that is ready to work because I still have lot of projects I will need him to do for me
I'm new to this trading system wishing to get something that will guide me through the process of creating a new lifestyle. So I wish to grow my pockets in any circumstance coz life thing ain't easy any more
I need an expert in the development of a fully automated trading robot For MetaTrader. The Trading Robot must be "Web based" so it can be accessed or used through a website, You can view a screenshot here; https://www.awesomescreenshot.com/image/48030918?key=79b0ff91455d862746e9b649341f4cdb Why do i need? Simple Enough, This is what i need from my Trading Robot EA. The Trading Robot can only be accessed through a
Hello I'm in possesion of a straightforward MT% Expert AdvisorThat I want to convert into DXTrade. Are you able to do this conversion? Kindly let me know if the fil atached will be enough
Hello, I need a quote for developing a bot for my renko based trading system on ctrader platform and based on the attached specification your expertise is highly needed for this project Thanks
I am seeking a skilled programmer to develop a comprehensive machine learning solution for analyzing custom signals and predicting security prices within specified timeframes. The solution will incorporate various machine learning stacks to test a range of custom signals and determine their correlation to security prices. I will need the applicant to implement this features and other features will be shared in the

Proje bilgisi

Bütçe
50+ USD
Son teslim tarihi
from 1 to 4 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0