Specifiche


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

Con risposta

1
Sviluppatore 1
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
0
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(16)
Progetti
17
12%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(32)
Progetti
53
36%
Arbitraggio
4
25% / 50%
In ritardo
6
11%
Occupato
4
Sviluppatore 4
Valutazioni
(54)
Progetti
159
69%
Arbitraggio
4
100% / 0%
In ritardo
1
1%
Gratuito
5
Sviluppatore 5
Valutazioni
(2398)
Progetti
3011
65%
Arbitraggio
76
47% / 14%
In ritardo
340
11%
In elaborazione
6
Sviluppatore 6
Valutazioni
(2)
Progetti
1
0%
Arbitraggio
2
0% / 0%
In ritardo
0
In elaborazione
7
Sviluppatore 7
Valutazioni
(54)
Progetti
73
44%
Arbitraggio
21
14% / 67%
In ritardo
8
11%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
(1119)
Progetti
1421
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito
10
Sviluppatore 10
Valutazioni
(45)
Progetti
52
29%
Arbitraggio
2
0% / 0%
In ritardo
0
In elaborazione
11
Sviluppatore 11
Valutazioni
(561)
Progetti
928
48%
Arbitraggio
301
59% / 25%
In ritardo
123
13%
Caricato
Ordini simili
I need a programmer who will be able to make a robot following my strategy which will trade auto in binomo.com . I need an expert who can do this frequently. if you have done similar job, show me a demo first
I have an EA which trades with XAUUSD with a grid system, and I need to add a few features: 1.- The EA works with an indicator and open many trades as a grid system. I need the EA to open JUST 1 TRADE INMEDIATELY WHEN THE TREND SHOWS. 2.- I need the EA to keep that trade open until it reaches TP or the reverse signal shows. The EA has already the 'close if reverse signal' parameter. 3.- I need to create a parameter
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
I need a telegram group or channel scrapper, that's capable of extracting members of a specific telegram group and auto add them to another telegram channel or group. Please let me know what we need to get this done. Thanks
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

Informazioni sul progetto

Budget
50+ USD
Per lo sviluppatore
45 USD
Scadenze
da 1 a 4 giorno(i)