Техническое задание


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

Откликнулись

1
Разработчик 1
Оценка
(4)
Проекты
4
0%
Арбитраж
1
0% / 0%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(33)
Проекты
38
21%
Арбитраж
5
0% / 60%
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(39)
Проекты
65
34%
Арбитраж
4
25% / 50%
Просрочено
9
14%
Работает
4
Разработчик 4
Оценка
(78)
Проекты
246
74%
Арбитраж
7
100% / 0%
Просрочено
1
0%
Свободен
Опубликовал: 1 статью
5
Разработчик 5
Оценка
(2676)
Проекты
3415
68%
Арбитраж
77
48% / 14%
Просрочено
343
10%
Свободен
Опубликовал: 1 пример
6
Разработчик 6
Оценка
(7)
Проекты
8
13%
Арбитраж
6
33% / 33%
Просрочено
0
Свободен
7
Разработчик 7
Оценка
(61)
Проекты
83
45%
Арбитраж
27
11% / 70%
Просрочено
8
10%
Свободен
8
Разработчик 8
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(1156)
Проекты
1462
63%
Арбитраж
21
57% / 10%
Просрочено
43
3%
Свободен
10
Разработчик 10
Оценка
(369)
Проекты
455
55%
Арбитраж
24
54% / 17%
Просрочено
31
7%
Загружен
11
Разработчик 11
Оценка
(574)
Проекты
945
47%
Арбитраж
309
58% / 27%
Просрочено
125
13%
Свободен
Похожие заказы
A video of the front end project is attached or uploaded in the link for view, the project is to build web app trader for login of mt4 / mt5 login and trades, the Web app is still under development your ideas matter in this project feel free to share ideal regards this project if you are good in Visual studio 2022 VS code and have handled C++ projects before on multiple situation this project might be yours. UI/UX
I have the Fisher Indicator shown below the chart. I need an alert added for when the Fisher Indicator hits the 50 point at the end of each period. GBPUSD and EURUSD 4H charts are provided and I can provide additional

Информация о проекте

Бюджет
50+ USD
Сроки выполнения
от 1 до 4 дн.