指定

//+------------------------------------------------------------------+
//| M65 PRO ROBOT |
//| Trend + RSI + Risk Management |
//+------------------------------------------------------------------+
#property strict

input double LotSize = 0.01;
input int StopLoss = 100; // points
input int TakeProfit = 200; // points
input int RSI_Period = 14;

int rsiHandle;
int ema50Handle;
int ema200Handle;

//+------------------------------------------------------------------+
int OnInit()
{
   rsiHandle = iRSI(_Symbol, PERIOD_M5, RSI_Period, PRICE_CLOSE);
   ema50Handle = iMA(_Symbol, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE);
   ema200Handle = iMA(_Symbol, PERIOD_M5, 200, 0, MODE_EMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
   double rsi[], ema50[], ema200[];
   CopyBuffer(rsiHandle, 0, 0, 1, rsi);
   CopyBuffer(ema50Handle, 0, 0, 1, ema50);
   CopyBuffer(ema200Handle, 0, 0, 1, ema200);

   if(PositionSelect(_Symbol)) return;

   double Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
   double Bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   // BUY CONDITION
   if(ema50[0] > ema200[0] && rsi[0] > 55)
   {
      trade.Buy(LotSize, _Symbol, Ask, Ask - StopLoss * _Point, Ask + TakeProfit * _Point);
   }

   // SELL CONDITION
   if(ema50[0] < ema200[0] && rsi[0] < 45)
   {
      trade.Sell(LotSize, _Symbol, Bid, Bid + StopLoss * _Point, Bid - TakeProfit * _Point);
   }
}

応答済み

1
開発者 1
評価
(28)
プロジェクト
39
23%
仲裁
14
0% / 93%
期限切れ
4
10%
暇
2
開発者 2
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
3
開発者 3
評価
(298)
プロジェクト
478
40%
仲裁
105
40% / 24%
期限切れ
82
17%
取り込み中
パブリッシュした人: 2 codes
類似した注文
Je souhaite développer un robot de trading automatique (Expert Advisor) pour MetaTrader 5, capable de trader sur plusieurs marchés : Instruments : Forex : EURUSD, GBPUSD, USDJPY Or : XAUUSD Indices : US30, NAS100 Crypto : BTCUSD, ETHUSD Fonctionnalités : 1. Ouverture automatique de positions achat et vente selon la stratégie 2. Possibilité d'ouvrir plusieurs positions sur un même symbole 3. Paramètres réglables
Je souhaite développer un robot de trading automatique avec les exigences suivantes : 1. Marchés : principalement XAUUSD (Gold), avec possibilité d’ajouter EURUSD par la suite. 2. Plateforme : MetaTrader 5 (MT5). 3. Type de trading : le robot doit pouvoir ouvrir automatiquement des positions BUY et SELL selon les conditions de la stratégie. 4. Analyse : utiliser la tendance, les supports/résistances et les
EA Scalping M5 30 - 70 USD
//+------------------------------------------------------------------+ //| Scalping_M5_Bot.mq5 | //| Copyright 2026, MQL5 Freelance | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link " https://www.mql5.com " #property version "1.00" #include <Trade\Trade.mqh> CTrade trade; //--- Paramètres d'entrée input double
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;

プロジェクト情報

予算
30+ USD