Spécifications
Mql5
//+------------------------------------------------------------------+
//| Expert Advisor بسيط EMA+RSI + فلتر الأخبار |
//+------------------------------------------------------------------+
#property strict
// إعدادات المؤشرات
input int EMA_Fast = 10;
input int EMA_Slow = 50;
input int RSI_Period = 14;
input double RSI_Buy = 30;
input double RSI_Sell = 70;
input double StopLoss = 20;
input double TakeProfit = 40;
// إعدادات الأخبار (توقيت الأخبار المهمة بالساعة والدقيقة)
input int NewsHourStart = 12; // ساعة بدء الأخبار
input int NewsMinuteStart = 30; // دقيقة بدء الأخبار
input int NewsHourEnd = 13; // ساعة انتهاء الأخبار
input int NewsMinuteEnd = 0; // دقيقة انتهاء الأخبار
//+------------------------------------------------------------------+
// دالة التحقق من الأخبار
bool IsNewsTime()
{
datetime now = TimeCurrent();
MqlDateTime tm;
TimeToStruct(now, tm);
int start_minutes = NewsHourStart*60 + NewsMinuteStart;
int end_minutes = NewsHourEnd*60 + NewsMinuteEnd;
int now_minutes = tm.hour*60 + tm.min;
if(now_minutes >= start_minutes && now_minutes <= end_minutes)
return(true); // وقت الأخبار → لا تداول
else
return(false); // وقت آمن → تداول
}
//+------------------------------------------------------------------+
// دالة الدخول في الصفقة
void EnterTrade()
{
if(IsNewsTime()) return; // لا تداول أثناء الأخبار
double EMA_fast = iMA(NULL,0,EMA_Fast,0,MODE_EMA,PRICE_CLOSE,0);
double EMA_slow = iMA(NULL,0,EMA_Slow,0,MODE_EMA,PRICE_CLOSE,0);
double RSI_val = iRSI(NULL,0,RSI_Period,PRICE_CLOSE,0);
// شروط الشراء
if(EMA_fast > EMA_slow && RSI_val < RSI_Buy)
{
if(PositionSelect(Symbol())==false)
OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"Buy EMA+RSI",0,0,clrGreen);
}
// شروط البيع
if(EMA_fast < EMA_slow && RSI_val > RSI_Sell)
{
if(PositionSelect(Symbol())==false)
OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point,"Sell EMA+RSI",0,0,clrRed);
}
}
//+------------------------------------------------------------------+
// تنفيذ البوت على كل شمعة جديدة
void OnTick()
{
EnterTrade();
}
Répondu
1
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
2
Évaluation
Projets
240
34%
Arbitrage
20
45%
/
30%
En retard
3
1%
Gratuit
3
Évaluation
Projets
0
0%
Arbitrage
1
0%
/
0%
En retard
0
Travail
4
Évaluation
Projets
478
40%
Arbitrage
105
40%
/
24%
En retard
82
17%
Chargé
Publié : 2 codes
5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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
Je recherche un EA fully automatique pour Volatility 75 et Volatility 100 sur Deriv/MT5. Logique de trading (5 modules) : Breakout – Cassure confirmée d'un niveau S/R sur H4/Daily, confirmation clôture H1 Rebond – Entrée quand le prix touche un S/R et repart en sens inverse Range – Détection canal horizontal, achat bas / vente haut Trailing Stop – Dès +300 points, SL remonte automatiquement Anti-drawdown – Pause auto
Informations sur le projet
Budget
35+ USD
Délais
de 30 à 365 jour(s)