Tarea técnica
Je voudrais creer un robot de trading similaire à "Shuttle Runner" en incluant
"
//--- include the file with the description of the MQL5 standard library #include <Trade\Trade.mqh> #include <Indicators\Bands.mqh> #include <Indicators\RSI.mqh> //--- create an instance of the CTrade class CTrade trade; //--- create instances of the indicator classes iBands bands; iRSI rsi; //--- input parameters input int GMT = 2; input bool Monday = true; input int MondayStart = 8; input int MondayStop = 14; input bool Tuesday = true; input int TuesdayStart = 8; input int TuesdayStop = 14; input bool Wednesday = true; input int WednesdayStart = 8; input int WednesdayStop = 14; input bool Thursday = true; input int ThursdayStart = 8; input int ThursdayStop = 14; input bool Friday = true; input int FridayStart = 8; input int FridayStop = 14; void OnInit() { //--- initialize the indicators bands.Create(_Symbol, PERIOD_CURRENT, 20, 2.0); rsi.Create(_Symbol, PERIOD_CURRENT, 14); } void OnTick() { //--- check if the symbol is XAUUSD if (_Symbol != "XAUUSD") return; //--- check if trading is allowed on the current day datetime time = TimeCurrent() + GMT * 3600; MqlDateTime dt; TimeToStruct(time, dt); bool tradeAllowed = false; switch (dt.day_of_week) { case 1: tradeAllowed = Monday && dt.hour >= MondayStart && dt.hour < MondayStop; break; case 2: tradeAllowed = Tuesday && dt.hour >= TuesdayStart && dt.hour < TuesdayStop; break; case 3: tradeAllowed = Wednesday && dt.hour >= WednesdayStart && dt.hour < WednesdayStop; break; case 4: tradeAllowed = Thursday && dt.hour >= ThursdayStart && dt.hour < ThursdayStop; break; case 5: tradeAllowed = Friday && dt.hour >= FridayStart && dt.hour < FridayStop; break; } if (!tradeAllowed) return; //--- get the current price data double"
Et tout rementtre le fichier dans l'ordre.
Merci
"
//--- include the file with the description of the MQL5 standard library #include <Trade\Trade.mqh> #include <Indicators\Bands.mqh> #include <Indicators\RSI.mqh> //--- create an instance of the CTrade class CTrade trade; //--- create instances of the indicator classes iBands bands; iRSI rsi; //--- input parameters input int GMT = 2; input bool Monday = true; input int MondayStart = 8; input int MondayStop = 14; input bool Tuesday = true; input int TuesdayStart = 8; input int TuesdayStop = 14; input bool Wednesday = true; input int WednesdayStart = 8; input int WednesdayStop = 14; input bool Thursday = true; input int ThursdayStart = 8; input int ThursdayStop = 14; input bool Friday = true; input int FridayStart = 8; input int FridayStop = 14; void OnInit() { //--- initialize the indicators bands.Create(_Symbol, PERIOD_CURRENT, 20, 2.0); rsi.Create(_Symbol, PERIOD_CURRENT, 14); } void OnTick() { //--- check if the symbol is XAUUSD if (_Symbol != "XAUUSD") return; //--- check if trading is allowed on the current day datetime time = TimeCurrent() + GMT * 3600; MqlDateTime dt; TimeToStruct(time, dt); bool tradeAllowed = false; switch (dt.day_of_week) { case 1: tradeAllowed = Monday && dt.hour >= MondayStart && dt.hour < MondayStop; break; case 2: tradeAllowed = Tuesday && dt.hour >= TuesdayStart && dt.hour < TuesdayStop; break; case 3: tradeAllowed = Wednesday && dt.hour >= WednesdayStart && dt.hour < WednesdayStop; break; case 4: tradeAllowed = Thursday && dt.hour >= ThursdayStart && dt.hour < ThursdayStop; break; case 5: tradeAllowed = Friday && dt.hour >= FridayStart && dt.hour < FridayStop; break; } if (!tradeAllowed) return; //--- get the current price data double"
Et tout rementtre le fichier dans l'ordre.
Merci
Han respondido
1
Evaluación
Proyectos
240
34%
Arbitraje
20
45%
/
30%
Caducado
3
1%
Libre
2
Evaluación
Proyectos
478
40%
Arbitraje
105
40%
/
24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
3
Evaluación
Proyectos
65
34%
Arbitraje
4
25%
/
50%
Caducado
9
14%
Trabaja
4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Bonjour, Je recherche un développeur expérimenté en Python + MetaTrader5 pour créer un Bot Scanner. OBJECTIF DU BOT: Scanner n'importe quel graphique MT5 : Forex, Indices Synthétiques, Indices, Actions, Métaux, Crypto. Détecter uniquement des FIGURES CHARTISTES sans indicateur. Envoyer une alerte instantanée sur Telegram ou par mails avec : Paire, Timeframe, Nom de la Figure, fiabilité en % , Capture d'écran du
Rim crazzack
30 - 300 USD
Je souhaite développer un robot de trading automatique capable de fonctionner uniquement lorsque je suis connecté à mon compte de trading. Le robot devra respecter les règles suivantes : Il peut ouvrir positions que lorsque je suis connecté. Il doit analyser les marchés en temps réel sur les unités de temps M1 (1 minute), M5 (5 minutes) et M15 (15 minutes). Il doit identifier des opportunités d'achat ou de vente en
Información sobre el proyecto
Presupuesto
30+ USD