Specification


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

Responded

1
Developer 1
Rating
(2)
Projects
3
0%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(15)
Projects
16
13%
Arbitration
1
0% / 100%
Overdue
0
Working
3
Developer 3
Rating
(32)
Projects
53
36%
Arbitration
4
25% / 50%
Overdue
6
11%
Loaded
4
Developer 4
Rating
(53)
Projects
155
69%
Arbitration
4
100% / 0%
Overdue
1
1%
Working
5
Developer 5
Rating
(2390)
Projects
3000
65%
Arbitration
76
47% / 14%
Overdue
340
11%
Free
6
Developer 6
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Working
7
Developer 7
Rating
(54)
Projects
73
44%
Arbitration
21
14% / 67%
Overdue
8
11%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(1118)
Projects
1420
62%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
10
Developer 10
Rating
(40)
Projects
43
30%
Arbitration
2
0% / 0%
Overdue
0
Loaded
11
Developer 11
Rating
(557)
Projects
924
48%
Arbitration
301
59% / 25%
Overdue
123
13%
Loaded
Similar orders
Marroonblack 30+ USD
best robot 🤖 forex I have created for helping those in Need and sure I will also try my best too , let’s work together to grow and make money 💰
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

Project information

Budget
50+ USD
Deadline
from 1 to 4 day(s)

Customer

Placed orders1
Arbitrage count0