Termos de Referência


*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.

Respondido

1
Desenvolvedor 1
Classificação
(2)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(16)
Projetos
17
12%
Arbitragem
1
0% / 100%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(32)
Projetos
53
36%
Arbitragem
4
25% / 50%
Expirado
6
11%
Ocupado
4
Desenvolvedor 4
Classificação
(54)
Projetos
159
69%
Arbitragem
4
100% / 0%
Expirado
1
1%
Livre
5
Desenvolvedor 5
Classificação
(2396)
Projetos
3010
65%
Arbitragem
76
47% / 14%
Expirado
340
11%
Trabalhando
6
Desenvolvedor 6
Classificação
(2)
Projetos
1
0%
Arbitragem
2
0% / 0%
Expirado
0
Trabalhando
7
Desenvolvedor 7
Classificação
(54)
Projetos
73
44%
Arbitragem
21
14% / 67%
Expirado
8
11%
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(1119)
Projetos
1421
62%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
10
Desenvolvedor 10
Classificação
(43)
Projetos
50
28%
Arbitragem
2
0% / 0%
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(560)
Projetos
927
48%
Arbitragem
301
59% / 25%
Expirado
123
13%
Carregado
Pedidos semelhantes
Hello developers here, I need a professional developer that can help me to develop an mt5 trading bot that works according to my strategy, I will be sharing my strategy in the inbox, Let me know if you can develop it, I will be waiting for your response
Pls I need a software that can change any video language example if I download a video from YouTube or Facebook or if possible put the video link then I can choose language I want it to speak in the software will detect the default language of the video then translate it so if I play the video it will play in the language I choose
هل يمكنك مساعدتي؟ أريد تنفيذ إشارة تداول آلية على MT4/MT5 لنظام Android Can you help me I want to implement an automated trading signal on MT4/MT5 for Android Can you help me I want to implement an automated trading signal on MT4/MT5 for Android
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
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
Hey, im looking for a person who can create an my very own version of pineconnector, which should have all the option of pineconnector and it should be user-friendly without any complications
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
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
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

Informações sobre o projeto

Orçamento
50+ USD
Prazo
de 1 para 4 dias

Cliente

Pedidos postados1
Número de arbitragens0