İş Gereklilikleri

//+------------------------------------------------------------------+
//| SimpleEA.mq5|
//| Copyright 2023, MetaQuotes Software Corp. |
//+------------------------------------------------------------------+
#property copyright "2023, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict

input int FastMAPeriod = 12; // Período da média móvel rápida
input int SlowMAPeriod = 26; // Período da média móvel lenta
input double LotSize = 0.1; // Tamanho do lote

double FastMA, SlowMA;

//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
  {
   //--- initialization of indicators
   FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   //---
  }
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
  {
   FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   
   double previousFastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   double previousSlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   
   if (previousFastMA < previousSlowMA && FastMA > SlowMA)
   {
      if (OrderSelect(0, SELECT_BY_POS, MODE_TRADES) == false)
      {
         OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, "Buy Order", 0, 0, clrGreen);
      }
   }
  }
//+------------------------------------------------------------------+

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(31)
Projeler
55
5%
Arabuluculuk
34
0% / 94%
Süresi dolmuş
24
44%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(151)
Projeler
232
32%
Arabuluculuk
18
39% / 33%
Süresi dolmuş
1
0%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(539)
Projeler
620
33%
Arabuluculuk
36
39% / 53%
Süresi dolmuş
11
2%
Yüklendi
4
Geliştirici 4
Derecelendirme
(94)
Projeler
130
9%
Arabuluculuk
8
25% / 38%
Süresi dolmuş
28
22%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(11)
Projeler
17
59%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
2
12%
Serbest
6
Geliştirici 6
Derecelendirme
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(48)
Projeler
49
8%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Preciso de um desenvolvedor com experiência comprovada em MQL5 , especificamente em automação de alertas do MetaTrader 5 com envio automático de mensagens e prints para canal do Telegram . O projeto não é do zero . Já possuo: Código do indicador / lógica em MQL5 Biblioteca de integração com Telegram (API já pronta) O trabalho consiste em ajustar / implementar um Expert Advisor para que, quando um alerta específico
Tenho uma foto e video(não deu para anexar) de um robo trabalhando com buy stop e sell stop com indicadores de força e volatilidade. Gostaria de saber se consegue construir um

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 15 to 35 gün