The Smart indicateur

指定

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();
}

反馈

1
开发者 1
等级
项目
0
0%
仲裁
0
逾期
0
空闲
2
开发者 2
等级
(153)
项目
238
33%
仲裁
20
45% / 30%
逾期
2
1%
空闲
3
开发者 3
等级
项目
0
0%
仲裁
1
0% / 0%
逾期
0
工作中
4
开发者 4
等级
(297)
项目
476
40%
仲裁
105
40% / 24%
逾期
81
17%
繁忙
发布者: 2 代码
5
开发者 5
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
Golden boy 30+ USD
Je veux un bot qui achèteras et vendras au moment précis( qu’il trouvera bon) pour me permettre de miser peu et d’avoir plus gains.j’ai joins deux images prenez exemple sur la vente pour pouvoir améliorer le bot et j’aimerais qu’il soit facile à manier que même en dormons il ouvre des ordres et les fermes avant les pertes
Hello, I am looking for a skilled trader who can develop a trading system for me that will allow me to earn between 3% and 5% of my capital every day
Un bot Bassée sur IA 30 - 100 USD
1/Je cherche un robot de trading basé sur l'IA 2/ Un bot qui protégé mon capital toujours en générant des profits constants. 3 / un bot Entièrement automatisé 4 / Transactions sur XAUUSD 5/Taux de réussite des transactions : 99 % 6/ Bénéficiez d'une exécution plus rapide, d'analyses avancées et d'une automatisation transparente sur MT5. 1/ I'm looking for an AI-based trading bot 2/ A bot that protects my capital
Je cherche un développeur pour modifier mon robots code source MQ5 je veux cacher le suiveur c'est a dire le trail steps et aussi l'ordre en attente si possible . Je veux qu' il es un bouton d'activation sur le paramètre qui va me permettre de cacher le suiveur ( trail steps ) au yeux des courtiers

项目信息

预算
35+ USD
截止日期
 30  365 天