İş 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
(16)
Projeler
17
12%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Ücretsiz
3
Geliştirici 3
Derecelendirme
(32)
Projeler
53
36%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
6
11%
Meşgul
4
Geliştirici 4
Derecelendirme
(54)
Projeler
159
69%
Arabuluculuk
4
100% / 0%
Süresi dolmuş
1
1%
Ücretsiz
5
Geliştirici 5
Derecelendirme
(2396)
Projeler
3010
65%
Arabuluculuk
76
47% / 14%
Süresi dolmuş
340
11%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(2)
Projeler
1
0%
Arabuluculuk
2
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%
Çalışıyor
10
Geliştirici 10
Derecelendirme
(43)
Projeler
50
28%
Arabuluculuk
2
0% / 0%
Süresi dolmuş
0
Ücretsiz
11
Geliştirici 11
Derecelendirme
(559)
Projeler
927
48%
Arabuluculuk
301
59% / 25%
Süresi dolmuş
124
13%
Yüklendi
Benzer siparişler
Hi I want you to make software, let's give the software a name " rocky", I want to explain the project to understand the possibility, example: let's assume I have a computer and there is some internet browsers open, now the software "rocky" you will make is monitoring the computers full screen or a region of screen continuesly and as soon as the internet browser updates with some graphical changes (which is the text
I am looking developer who can code pocket option data and insert in to costume candle Heikin in trading view. I want to trade otc as such its up to developer to get pocket option data stream and then make costume candle Heikin inside of trading view. Their will be a drop down menu in setting that will use to pick the otc pair. Developer must have way to chat on mobile app also. We will use
I need an EA in based of this indicator. It have buffers. The owner told me it..., So I need an expert who can do this I will attached the file right now
HI, I'm looking for an experienced person who can add buy/sell indications and Alerts on existing Pinescript along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should excute trade instantly as based on the alerts/indications on tradingview script
My Ea is currently closing orders in Drawdow and is making loss after loss I need someone with coding experience to help me fix this problem and also make a couple of visual changes pls text me first I can explain everything more detailed n
Position: Telegram Bonk Bot Type Developer Budget: $150 Start Date: Immediate Project Overview: We are seeking an experienced and skilled Telegram Bot Developer to complete and launch an advanced TG BOT Notification and Automated Trading Bot. This bot is designed to provide real-time notifications about new token info and execute automated trades based on user-defined preferences. 😁 The core functionality and
HI, I'm looking for an experienced person who can add buy/sell indications/Alerts on existing Pinescript code along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should execute trade instantly as based on the alerts/indications on tradingview script
Hello i need an expert who can help me backtest my Grid system EA and find the best profitable setting where i can use it on a live account. Note: Only applicant with experience and prove of work should apply
i am python lover an know it a little and want in first emp[loy from you to write script for shoping and for your i write for your platform if you want,even i can test your platform annd website for any bugs as a bunty hunter also i intrested in trading few years ago and want tra de and enjoy my profit thats all... i have nothing to describe anymore
EA 30 - 75 USD
I would like my robot to open up to 2000 trades. It should be 90-97% accurate at all times. It should trade currency pairs, Indexes and Gold. It must analyze the chart automatically and it must be easy to be set up. It must not lose any money. Profitable all the way. I would like someone who is highly experienced to do the job. NB!! MOBILE ROBOT. It must have automated TP and SL. all trades should be trigger anytime

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