Spécifications
//+------------------------------------------------------------------+
//| M65 PRO ROBOT |
//| Trend + RSI + Risk Management |
//+------------------------------------------------------------------+
#property strict
input double LotSize = 0.01;
input int StopLoss = 100; // points
input int TakeProfit = 200; // points
input int RSI_Period = 14;
int rsiHandle;
int ema50Handle;
int ema200Handle;
//+------------------------------------------------------------------+
int OnInit()
{
rsiHandle = iRSI(_Symbol, PERIOD_M5, RSI_Period, PRICE_CLOSE);
ema50Handle = iMA(_Symbol, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE);
ema200Handle = iMA(_Symbol, PERIOD_M5, 200, 0, MODE_EMA, PRICE_CLOSE);
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
double rsi[], ema50[], ema200[];
CopyBuffer(rsiHandle, 0, 0, 1, rsi);
CopyBuffer(ema50Handle, 0, 0, 1, ema50);
CopyBuffer(ema200Handle, 0, 0, 1, ema200);
if(PositionSelect(_Symbol)) return;
double Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
double Bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);
// BUY CONDITION
if(ema50[0] > ema200[0] && rsi[0] > 55)
{
trade.Buy(LotSize, _Symbol, Ask, Ask - StopLoss * _Point, Ask + TakeProfit * _Point);
}
// SELL CONDITION
if(ema50[0] < ema200[0] && rsi[0] < 45)
{
trade.Sell(LotSize, _Symbol, Bid, Bid + StopLoss * _Point, Bid - TakeProfit * _Point);
}
}
Répondu
1
Évaluation
Projets
39
23%
Arbitrage
14
0%
/
93%
En retard
4
10%
Gratuit
2
Évaluation
Projets
239
33%
Arbitrage
20
45%
/
30%
En retard
2
1%
Gratuit
3
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 8 codes
4
Évaluation
Projets
1732
49%
Arbitrage
53
70%
/
13%
En retard
38
2%
Gratuit
5
Évaluation
Projets
2925
63%
Arbitrage
123
45%
/
25%
En retard
429
15%
Travail
6
Évaluation
Projets
2
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
7
Évaluation
Projets
1
0%
Arbitrage
1
0%
/
0%
En retard
0
Travail
8
Évaluation
Projets
7
0%
Arbitrage
8
13%
/
75%
En retard
3
43%
Gratuit
9
Évaluation
Projets
477
40%
Arbitrage
105
40%
/
24%
En retard
81
17%
Chargé
Publié : 2 codes
10
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
Mamadou Cissé
50+ USD
Spécifiez vos exigences de spécification ici point par point. Essayez de décrire vos besoins de manière brève et claire, afin que votre développeur potentiel soit en mesure d'évaluer correctement sa complexité et son coût, ainsi que le temps d'exécution requis. Une mauvaise description ou une description trop générique aura pour conséquence un manque d’intérêt pour votre commande, ou que vous passerez beaucoup de
Informations sur le projet
Budget
30 - 200 USD
Délais
de 3 à 5 jour(s)