The Smart indicateur

Şartname

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(153)
Projeler
240
34%
Arabuluculuk
20
45% / 30%
Süresi dolmuş
3
1%
Serbest
3
Geliştirici 3
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(298)
Projeler
478
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
82
17%
Yüklendi
Yayınlandı: 2 kod
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Optimisation et amélioration avancée d’un Expert Advisor MQL5 Bonjour, Je recherche un développeur MQL5 expérimenté dans les Expert Advisors, les systèmes Grid et surtout la gestion du risque , afin d’améliorer un EA existant Je fournis le code source .mq5 actuel
Water polo 30+ USD
//+------------------------------------------------------------------+ //| XAUUSD M5 TELEGRAM TRADING EA | //| EMA 20/50/200 + RSI + ATR + Telegram | //+------------------------------------------------------------------+ #property strict #property version "1.00" #property description "XAUUSD M5 EA with EMA, RSI, ATR and Telegram notifications" #include <Trade/Trade.mqh> CTrade trade;
Bonjour, Je souhaite créer un Expert Advisor (EA) en MQL5 optimisé pour opérer sur les paires Forex (EURUSD) et les métaux précieux (GOLD / XAUEUR / GAUUSD) Fonctionnalités requises : 1. Stratégie directionnelle : Le bot doit identifier le début d'un mouvement de tendance (hausse ou baisse) et exécuter des entrées rapides dans le sens de la tendance. 2. Sortie anticipée : Le bot doit sécuriser la position rapidement

Proje bilgisi

Bütçe
35+ USD
Son teslim tarihi
from 30 to 365 gün