Specifiche
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
Con risposta
1
Valutazioni
Progetti
240
34%
Arbitraggio
20
45%
/
30%
In ritardo
3
1%
Gratuito
2
Valutazioni
Progetti
478
40%
Arbitraggio
105
40%
/
24%
In ritardo
82
17%
Caricato
Pubblicati: 2 codici
3
Valutazioni
Progetti
65
34%
Arbitraggio
4
25%
/
50%
In ritardo
9
14%
In elaborazione
4
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
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
Informazioni sul progetto
Budget
30+ USD