The Smart indicateur

Tarea técnica

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

Han respondido

1
Desarrollador 1
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(151)
Proyectos
232
32%
Arbitraje
18
39% / 33%
Caducado
1
0%
Trabaja
Solicitudes similares
Faire produire de l'argent avec les robot pour être millionnaire dans le futur et m'amuser avec mais affaires et je ne veux pas être pauvre et je veux aider les personnes pauvres
I am looking for a developer to work with to create a bot that will generate signals based on the session highs and lows. Two pending orders will be placed, and one will be automatically deleted as soon as the other is activated. A second recovery trade will then be placed at the same level where the deleted trade was located that will activated in case the running trade hits sl. If the running trade hits tp the
Je recherche un développeur avec qui travailler pour créer un bot qui va produire des signaux en fonction des prix les plus haut ou bas des sessions. Deux pending order seront placés et un sera supprimé automatiquement des que l'autre est activé et un deuxième recovery trade sera placés au meme endroit ou le trade a été supprimé. Il ya un certain nombre de point que j'aimerais que ca soit modifiable on en parlera en
Bonjour, Je recherche un développeur MQL5 pour créer un Expert Advisor sur MetaTrader 5 destiné au trading de XRP (crypto). Le but est de développer un robot automatique simple, stable et propre, destiné à un usage sérieux. Il ne doit contenir aucune martingale, aucun grid et aucune logique cachée. Le projet correspond à un MVP avec un budget limité compris entre 300 et 450 USD. Le robot devra fonctionner sur MT5
BONSOIR/BONJOUR J'ai à ma disposition un système de plusieurs indicateurs que j'utilise. J'observe l'ensemble de ces indicateurs pour déclencher un achat/vente dans une condition particulière des indicateurs. je veux formaliser tout ça dans un robot de trading automatique qui déclenchera les positions dans ces conditions particulières

Información sobre el proyecto

Presupuesto
35+ USD
Plazo límite de ejecución
de 30 a 365 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0