Spécifications
//+------------------------------------------------------------------+
//| Simple Robo Trader MT5 |
//| Works on any pair & timeframe |
//+------------------------------------------------------------------+
#property strict
// Input settings
input double LotSize = 0.01;
input int FastMA = 10;
input int SlowMA = 30;
input int RSIPeriod = 14;
input int StopLoss = 200; // in points
input int TakeProfit = 400;// in points
// Indicator handles
int fastMAHandle;
int slowMAHandle;
int rsiHandle;
//+------------------------------------------------------------------+
int OnInit()
{
fastMAHandle = iMA(_Symbol, _Period, FastMA, 0, MODE_EMA, PRICE_CLOSE);
slowMAHandle = iMA(_Symbol, _Period, SlowMA, 0, MODE_EMA, PRICE_CLOSE);
rsiHandle = iRSI(_Symbol, _Period, RSIPeriod, PRICE_CLOSE);
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
if(PositionsTotal() > 0) return;
double fastMA[2], slowMA[2], rsi[1];
CopyBuffer(fastMAHandle, 0, 0, 2, fastMA);
CopyBuffer(slowMAHandle, 0, 0, 2, slowMA);
CopyBuffer(rsiHandle, 0, 0, 1, rsi);
// BUY Condition
if(fastMA[1] < slowMA[1] && fastMA[0] > slowMA[0] && rsi[0] > 50)
{
BuyTrade();
}
// SELL Condition
if(fastMA[1] > slowMA[1] && fastMA[0] < slowMA[0] && rsi[0] < 50)
{
SellTrade();
}
}
//+------------------------------------------------------------------+
void BuyTrade()
{
double price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
double sl = price - StopLoss * _Point;
double tp = price + TakeProfit * _Point;
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = LotSize;
req.type = ORDER_TYPE_BUY;
req.price = price;
req.sl = sl;
req.tp = tp;
req.deviation = 10;
OrderSend(req, res);
}
//+------------------------------------------------------------------+
void SellTrade()
{
double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
double sl = price + StopLoss * _Point;
double tp = price - TakeProfit * _Point;
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = LotSize;
req.type = ORDER_TYPE_SELL;
req.price = price;
req.sl = sl;
req.tp = tp;
req.deviation = 10;
OrderSend(req, res);
}
Répondu
1
Évaluation
Projets
14
36%
Arbitrage
3
0%
/
100%
En retard
0
Gratuit
Publié : 1 article
2
Évaluation
Projets
144
46%
Arbitrage
21
38%
/
19%
En retard
32
22%
Travail
3
Évaluation
Projets
3
33%
Arbitrage
2
0%
/
100%
En retard
0
Gratuit
4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Évaluation
Projets
1
100%
Arbitrage
3
0%
/
100%
En retard
0
Gratuit
6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Évaluation
Projets
451
55%
Arbitrage
24
54%
/
17%
En retard
30
7%
Occupé
8
Évaluation
Projets
1
0%
Arbitrage
3
0%
/
100%
En retard
1
100%
Gratuit
9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Évaluation
Projets
0
0%
Arbitrage
1
0%
/
0%
En retard
0
Travail
11
Évaluation
Projets
7
14%
Arbitrage
1
0%
/
100%
En retard
1
14%
Gratuit
12
Évaluation
Projets
169
38%
Arbitrage
9
78%
/
22%
En retard
15
9%
Gratuit
13
Évaluation
Projets
8
0%
Arbitrage
2
50%
/
0%
En retard
1
13%
Travail
14
Évaluation
Projets
3
0%
Arbitrage
0
En retard
0
Gratuit
15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Évaluation
Projets
0
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
17
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
18
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
19
Évaluation
Projets
9
22%
Arbitrage
0
En retard
0
Gratuit
20
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
21
Évaluation
Projets
63
52%
Arbitrage
5
0%
/
40%
En retard
1
2%
Gratuit
22
Évaluation
Projets
1
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
Commandes similaires
Tradingview strategy develop
30+ USD
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
Informations sur le projet
Budget
40 - 10000 USD