Specification

#include <Trade/Trade.mqh>
CTrade trade;

input double LotSize = 0.1;
input int FastMA = 10;
input int SlowMA = 20;

int fastHandle, slowHandle;

// Initialize indicators
int OnInit()
{
   fastHandle = iMA(_Symbol, PERIOD_CURRENT, FastMA, 0, MODE_SMA, PRICE_CLOSE);
   slowHandle = iMA(_Symbol, PERIOD_CURRENT, SlowMA, 0, MODE_SMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}

void OnTick()
{
   double fastMA[2];
   double slowMA[2];

   CopyBuffer(fastHandle, 0, 0, 2, fastMA);
   CopyBuffer(slowHandle, 0, 0, 2, slowMA);

   // Previous and current values
   double fastPrev = fastMA[1];
   double fastCurr = fastMA[0];
   double slowPrev = slowMA[1];
   double slowCurr = slowMA[0];

   // Check if no open position
   if(PositionSelect(_Symbol) == false)
   {
      // BUY signal
      if(fastPrev < slowPrev && fastCurr > slowCurr)
      {
         trade.Buy(LotSize, _Symbol);
      }

      // SELL signal
      if(fastPrev > slowPrev && fastCurr < slowCurr)
      {
         trade.Sell(LotSize, _Symbol);
      }
   }
}

Responded

1
Developer 1
Rating
(210)
Projects
282
46%
Arbitration
27
59% / 37%
Overdue
36
13%
Free
2
Developer 2
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
3
Developer 3
Rating
(15)
Projects
19
16%
Arbitration
5
40% / 40%
Overdue
0
Free
4
Developer 4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(18)
Projects
23
9%
Arbitration
6
33% / 50%
Overdue
1
4%
Loaded
6
Developer 6
Rating
(6)
Projects
5
0%
Arbitration
3
33% / 33%
Overdue
2
40%
Working
7
Developer 7
Rating
(378)
Projects
486
24%
Arbitration
59
54% / 25%
Overdue
55
11%
Busy
8
Developer 8
Rating
(25)
Projects
33
24%
Arbitration
3
33% / 33%
Overdue
4
12%
Working
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(73)
Projects
257
53%
Arbitration
16
50% / 38%
Overdue
83
32%
Free
Similar orders
I am seeking an expert MQL5 developer for a paid architectural consultation. I am currently in the process of building a trading platform and need a deep dive with a specialist who understands the "under the hood" mechanics of high-frequency execution and systematic bot design. Topics for Discussion: Engine Logic: Best practices for building a robust, low-latency execution engine on MT5. Risk Frameworks: Implementing
I need a mt5 Expert advisor ea to manage intraday trades with strict risk management. The EA must -Handle between 5 to 8 clean trades a day max altogether throughout all 3 sessions. no big news trading times and no overnight trades -Use 1% on forex pairs and upto 2% on XAUUSD risk per trade - Automatically calculate lot size based on stop loss -use fixed RR ratio [1:2] For forex pairs, the stop loss should be
Ninjatrdaer Script 500 - 1000 USD
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I need a clean, bug-free MT5 Expert Advisor (MQL5) based on this exact mechanical scalping strategy on M5 timeframe for EURUSD. Indicators (built-in): - EMA 9 and EMA 21 on M5 - RSI 14 - ADX 14 (>25 for strong trend) - H1 EMA 21 above/below H1 EMA 9 for trend alignment Entry Rules (ALL must be true): BUY: EMA9 crosses above EMA21 (on closed bar) + RSI > 50 + ADX > 25 + H1 EMA21 > H1 EMA9 SELL: Mirror (cross below
I will like to purchase tradingview strategy with high winning rate, i mean already made, tested and trusted and powerful strategy, i have tried to code my own strategy with lot of freelancers but nothing to me i am just wasting money, i have wasted lot of money already, so i need a high winning rate tradingview strategy, we can discuss price in chat, I will need to see some test result as well
I need a visual web page or program to monitor and analyze multiple MT5 or MT4 trading accounts. A real-time dashboard (real-time visual interface) is required, including account ID, affiliated broker, trading account balance, real-time order quantity, opening price, ongoing order position, spread, profit, etc. If you have mature development experience or source code, let's have a chat, bro
Looking to acquire a good MT5 based EA that works on Gold, forex pairs or BTC. Must be suitable for current market conditions and profitable in backtests. Suitable on 1 Min timeframe to be used on, Must be actively opening many positions throughout the day. Share me the details if this matches something you have or developed. Looking to get this finalised within the weekend
need a dots marking of a simple rules pullback indicator. in the .tpl file look at 28 Jan 2026, TF M5 basically it is just overlaping lows or highs of the previous candle price. there are 2 scenario to accomodate: 1. simple pullbacks 2. pullbacks with inside bar and outside bar involved
READ BEFORE MESSAGING PLEASE Developer Requirements (Strict): - Expert Level Only: This is a professional-grade, robust trading engine. Please do not apply if you are a beginner or intermediate developer. ​ - Asynchronous Proficiency: You must have deep experience with CTrade and handling asynchronous order execution (Requotes, Busy Servers, and Order Integrity Sync). ​ - Proven Track Record: I require a developer
buy condition when blue color appears sell condition when yellow color appears close all buys when there is a sell order close all sells when there is a buy order

Project information

Budget
30+ USD
Deadline
to 365 day(s)

Customer

Placed orders1
Arbitrage count0