Spécifications

//+------------------------------------------------------------------+
//| Simple Robo Trader MT5 |
//| Works on any pair & timeframe |
//+------------------------------------------------------------------+
#property strict

// Input settings
input double LotSize = 0.01;
input int FastMA = 10;
input int SlowMA = 30;
input int RSIPeriod = 14;
input int StopLoss = 200; // in points
input int TakeProfit = 400;// in points

// Indicator handles
int fastMAHandle;
int slowMAHandle;
int rsiHandle;

//+------------------------------------------------------------------+
int OnInit()
{
   fastMAHandle = iMA(_Symbol, _Period, FastMA, 0, MODE_EMA, PRICE_CLOSE);
   slowMAHandle = iMA(_Symbol, _Period, SlowMA, 0, MODE_EMA, PRICE_CLOSE);
   rsiHandle = iRSI(_Symbol, _Period, RSIPeriod, PRICE_CLOSE);

   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
void OnTick()
{
   if(PositionsTotal() > 0) return;

   double fastMA[2], slowMA[2], rsi[1];

   CopyBuffer(fastMAHandle, 0, 0, 2, fastMA);
   CopyBuffer(slowMAHandle, 0, 0, 2, slowMA);
   CopyBuffer(rsiHandle, 0, 0, 1, rsi);

   // BUY Condition
   if(fastMA[1] < slowMA[1] && fastMA[0] > slowMA[0] && rsi[0] > 50)
   {
      BuyTrade();
   }

   // SELL Condition
   if(fastMA[1] > slowMA[1] && fastMA[0] < slowMA[0] && rsi[0] < 50)
   {
      SellTrade();
   }
}

//+------------------------------------------------------------------+
void BuyTrade()
{
   double price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
   double sl = price - StopLoss * _Point;
   double tp = price + TakeProfit * _Point;

   MqlTradeRequest req;
   MqlTradeResult res;

   ZeroMemory(req);

   req.action = TRADE_ACTION_DEAL;
   req.symbol = _Symbol;
   req.volume = LotSize;
   req.type = ORDER_TYPE_BUY;
   req.price = price;
   req.sl = sl;
   req.tp = tp;
   req.deviation = 10;

   OrderSend(req, res);
}

//+------------------------------------------------------------------+
void SellTrade()
{
   double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
   double sl = price + StopLoss * _Point;
   double tp = price - TakeProfit * _Point;

   MqlTradeRequest req;
   MqlTradeResult res;

   ZeroMemory(req);

   req.action = TRADE_ACTION_DEAL;
   req.symbol = _Symbol;
   req.volume = LotSize;
   req.type = ORDER_TYPE_SELL;
   req.price = price;
   req.sl = sl;
   req.tp = tp;
   req.deviation = 10;

   OrderSend(req, res);
}

Répondu

1
Développeur 1
Évaluation
(7)
Projets
9
0%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
Publié : 1 article
2
Développeur 2
Évaluation
(64)
Projets
144
46%
Arbitrage
20
40% / 15%
En retard
32
22%
Travail
3
Développeur 3
Évaluation
(4)
Projets
3
33%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(3)
Projets
1
100%
Arbitrage
3
0% / 100%
En retard
0
Gratuit
6
Développeur 6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(354)
Projets
425
54%
Arbitrage
20
55% / 15%
En retard
29
7%
Travail
8
Développeur 8
Évaluation
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
1
100%
Travail
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
Projets
0
0%
Arbitrage
1
0% / 0%
En retard
0
Travail
11
Développeur 11
Évaluation
(6)
Projets
7
14%
Arbitrage
1
0% / 100%
En retard
1
14%
Gratuit
12
Développeur 12
Évaluation
(119)
Projets
169
38%
Arbitrage
9
78% / 22%
En retard
15
9%
Gratuit
13
Développeur 13
Évaluation
(6)
Projets
6
0%
Arbitrage
2
50% / 0%
En retard
1
17%
Gratuit
14
Développeur 14
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Travail
15
Développeur 15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
17
Développeur 17
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
18
Développeur 18
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
19
Développeur 19
Évaluation
(8)
Projets
9
22%
Arbitrage
0
En retard
0
Gratuit
20
Développeur 20
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
21
Développeur 21
Évaluation
(45)
Projets
63
52%
Arbitrage
5
0% / 40%
En retard
1
2%
Gratuit
22
Développeur 22
Évaluation
(2)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Commandes similaires
Good morning, I have a Gap Fill strategy and a 10 min opening range break strategy that trade on RTH ES Futures data I have been working on that seem to have some bugs while live trading. They have both been coded by ChatGPT so I would like someone that know how to properly code a strategy to go over each to proof and debug them. Would you be able to do this and could you possibly add some context or features that
I have attached the demo version of the EA and the performance graph Below run it on the strategy tester to confirm that it is working. It is based on order flow combined with a rigorously tested risk management system. It is going for $1000 , you will pay $150 now and $850 after 1 month (I am sure you will have made enough profits to cover the balance).Dm me if you have any questions
i need ninjatrader strategy, i want to buy this strategy, i mean an existing ninjatrader strategy, we can make deal after i have seen the backtest of the ninjatrader strategy, my budget is within 100 to $120
I am looking for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD and BTC on the M1 timeframe . The objective is to create a stable and efficient EA that can open multiple trades per day while managing risk using proper stop-loss, take-profit, and trailing stop mechanisms
I am looking for an experienced MT4 (MQL4) developer to build a Harmonic Pattern Indicator with a PRZ (Potential Reversal Zone) detection system , similar to advanced harmonic scanners. Kindly apply if you can handle this project. Note: I don't want unprofessional developer
hello, i want a convertion of this trading view indicator FVG (NEPHEW_SAM_) to mql5 to be add later to an expert advisor. i want to access this data, gap data printed on current timeframe and multi timeframe that i choose (current, timeF1, timeF2, timeF3, timeF4)(gap time, gap value, top gap value, low gap value, gap type bull / bear, gap type iFVG or FVG). a function that check if the price is checking the gap at
I have developed a ready-made quantitative trading system for MetaTrader 5. The system uses an ensemble of machine learning models (XGBoost, LightGBM, Random Forest) combined with a market regime filter based on a Hidden Markov Model. Core features: - Automated trading for XAUUSD - Risk management and dynamic position sizing - Market regime detection (trend / range) - Volatility filter - Telegram monitoring interface
Hello, I am looking for an experienced MT5 (MetaTrader 5) developer to create a simple and reliable Forex trading EA. Broker: Skyriss Platform: MT5 Requirements: • EA should work only on Forex pairs (EURUSD, GBPUSD, USDJPY, USDCHF) • Around 1–2 trades per day is enough • Proper risk management with Stop Loss (SL) and Take Profit (TP) • Prefer low-risk trading with 0.01–0.03 lot depending on balance • No martingale or
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
Key Requirements: Source Account: Connect to a Master account using Investor (Read-only) Password. Destination Account: Execute trades on a Live Slave account with full trading access. Currency Focus: The system must handle Currency Pairs accurately, including symbol mapping (e.g., EURUSD to EURUSD.m) between different brokers. Stealth Features: Remove/Disable all trade comments. Assign custom Magic Numbers to the

Informations sur le projet

Budget
40 - 10000 USD