Spezifikation
//+------------------------------------------------------------------+
//| SimpleEA.mq5|
//| Copyright 2023, MetaQuotes Software Corp. |
//| https://www.mql5.com|
//+------------------------------------------------------------------+
#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);
}
}
}
//+------------------------------------------------------------------+
Bewerbungen
1
Bewertung
Projekte
55
5%
Schlichtung
34
0%
/
94%
Frist nicht eingehalten
24
44%
Arbeitet
2
Bewertung
Projekte
232
32%
Schlichtung
18
39%
/
33%
Frist nicht eingehalten
1
0%
Arbeitet
3
Bewertung
Projekte
620
33%
Schlichtung
36
39%
/
53%
Frist nicht eingehalten
11
2%
Beschäftigt
4
Bewertung
Projekte
130
9%
Schlichtung
8
25%
/
38%
Frist nicht eingehalten
28
22%
Arbeitet
5
Bewertung
Projekte
17
59%
Schlichtung
2
0%
/
100%
Frist nicht eingehalten
2
12%
Frei
6
Bewertung
Projekte
1
100%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Bewertung
Projekte
49
8%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
Construção de um EA baseado em um video
30 - 100 USD
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
Projektdetails
Budget
30+ USD
Ausführungsfristen
von 15 bis 35 Tag(e)