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
(15)
Progetti
16
13%
Arbitraggio
1
0% / 100%
In ritardo
0
In elaborazione
3
Sviluppatore 3
Valutazioni
(32)
Progetti
53
36%
Arbitraggio
4
25% / 50%
In ritardo
6
11%
Caricato
4
Sviluppatore 4
Valutazioni
(53)
Progetti
155
69%
Arbitraggio
4
100% / 0%
In ritardo
1
1%
In elaborazione
5
Sviluppatore 5
Valutazioni
(2390)
Progetti
3000
65%
Arbitraggio
76
47% / 14%
In ritardo
340
11%
Gratuito
6
Sviluppatore 6
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
1
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
(1118)
Progetti
1420
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito
10
Sviluppatore 10
Valutazioni
(40)
Progetti
43
30%
Arbitraggio
2
0% / 0%
In ritardo
0
Caricato
11
Sviluppatore 11
Valutazioni
(558)
Progetti
925
48%
Arbitraggio
301
59% / 25%
In ritardo
123
13%
Caricato
Ordini simili
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
Has anyone tried to create an EA based on the black scholes model? A) Is it even possible for metatrader5? B) What need to be added as input? C) Which other statistical and mathematical models could work and how? D) Do you have know-how in statistical and mathematical models? Would like to see some results
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
The task is as follows: Create and EA, preferably in python, that can connect to MT5 (via API), with the following criteria: -Scans a multitude of triangular currency pairs (EUR/USD, USD/JPY, EUR/JPY as an example), and finds differences between the implied rate via the use of two currencies, ie in the example case EUR/USD*USD/JPY, and the actual rate. -Takes positions in a market neutral nature (short/long postions)
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 want a bot developer deriv He has experience and I want a profitable robot, the profit is higher than the loss Or I want someone to sue with me. I have a profitable robot, but I want another robot or to improve another robot I have
Hello Everyone. I need a very competent programmer who can develop a mobile APP for me. Requirement: 1, The programmer will design the sport app from A-Z, and it will have login interface for registered users, 2, Users will automatically be denied access after s specific time expiration 3, It will have 5 to 7 different sections where sporting games (Text) can be uploaded by the admin on a daily based or as admin
Where/How to request Oanda retail open positions? I've tried through with a Oanda API and requesting this way; url= " https://api-fxpractice.oanda.com/v3/instruments/AUD_USD/positionBook " but I get result different results (see attached pic). If someone is able to replicate/ make some similar to this indicator, im willing to pay
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

Informazioni sul progetto

Budget
50+ USD
Scadenze
da 1 a 4 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0