Specification

//+------------------------------------------------------------------+
//|                                                     SimpleEA.mq4 |
//|                        Generated by MetaEditor                   |
//|                   https://www.mql5.com/en/docs                   |
//+------------------------------------------------------------------+
#property strict

// Input parameters
input double LotSize = 0.1; // Lot size
input int MovingAveragePeriod = 50; // MA period

// Global variables
double maCurrent;
double maPrevious;

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   // Initialization of variables
   maCurrent = 0;
   maPrevious = 0;
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   // Cleanup code here
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   // Calculate current and previous MA
   maCurrent = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   maPrevious = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   
   // Check for buy signal
   if (maPrevious < Close[1] && maCurrent > Close[0])
     {
      // Open buy order
      OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, "Buy Order", 0, 0, Blue);
     }
   
   // Check for sell signal
   if (maPrevious > Close[1] && maCurrent < Close[0])
     {
      // Open sell order
      OrderSend(Symbol(), OP_SELL, LotSize, Bid, 2, 0, 0, "Sell Order", 0, 0, Red);
     }
  }
//+------------------------------------------------------------------+

Responded

1
Developer 1
Rating
(151)
Projects
188
57%
Arbitration
10
80% / 0%
Overdue
0
Free
Published: 1 code
2
Developer 2
Rating
(373)
Projects
479
23%
Arbitration
57
56% / 25%
Overdue
55
11%
Loaded
3
Developer 3
Rating
(2)
Projects
5
0%
Arbitration
3
0% / 100%
Overdue
1
20%
Working
4
Developer 4
Rating
(9)
Projects
19
16%
Arbitration
3
67% / 0%
Overdue
0
Free
5
Developer 5
Rating
(5)
Projects
2
0%
Arbitration
4
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(300)
Projects
306
69%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
7
Developer 7
Rating
(143)
Projects
184
42%
Arbitration
24
58% / 21%
Overdue
12
7%
Working
8
Developer 8
Rating
(33)
Projects
38
21%
Arbitration
5
0% / 60%
Overdue
0
Free
9
Developer 9
Rating
(246)
Projects
253
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
10
Developer 10
Rating
(45)
Projects
46
24%
Arbitration
34
9% / 85%
Overdue
10
22%
Free
11
Developer 11
Rating
(72)
Projects
80
10%
Arbitration
38
8% / 58%
Overdue
6
8%
Free
12
Developer 12
Rating
(2)
Projects
2
100%
Arbitration
1
0% / 0%
Overdue
0
Free
13
Developer 13
Rating
(3)
Projects
2
50%
Arbitration
2
0% / 100%
Overdue
0
Free
14
Developer 14
Rating
(4)
Projects
4
0%
Arbitration
1
0% / 0%
Overdue
0
Free
Similar orders
We're looking for a highly professional MQL5 developer to create FX Apex, an advanced scalping EA optimized for small accounts ($50+), 1:30 leverage, IC Markets broker, and ready for demo/live trading. Key Features:_ Scalps XAU/USD & major pairs (M1-M15), option to add more Adaptive TP/SL based on volatility, trend, ATR, momentum Dynamic trailing, breakeven, partial close functionality Configurable risk per trade
I have an existing MetaTrader 5 EA that requires significant improvements to its **risk management logic and trade execution** behavior. Currently, the EA executes trades without applying proper stop loss, take profit, or trailing mechanisms, which results in high drawdown and potential loss of capital. The goal is to **optimize the EA for low risk and high return**, starting with small capital (e.g., \$10, \$50
💰 BUDGET: $200-$2,800 XAUUSD EA (Negotiable) Institutional XAUUSD EA with 20+ Systems | Sharpe 4.2+ | Quant Firm Standards DESCRIPTION I need an experienced MQL5 developer to build a professional institutional-grade EA with 20+ integrated trading systems for MetaTrader 5. CORE REQUIREMENTS: Architecture: • 20+ independent trading systems (trend, mean reversion, volatility, breakout) • ON/OFF toggle for each system
Hi , I am finding scalping Ea for Mt5 which can work on all pairs and have back tested results at least of 1 year and is currently running in Mt5 so i can login and see how it is performing who ever have message me
Strategy Name: SHA & Fast Ema Pullback for BTCUSD Scalping Indicators Used: Smoothed Heiken Ashi Candles MT5.ex5, Fast EMA, Trend Ema, RSI Filters Used: Break Even Filter, Ema Slope Filter, Day-wise Filter, Session/ Time Filter, Loss Filter Lots: Fixed Size, 50% lots booked when Risk to Reward is 1:1 Stop Loss: in Points Trailing SL: starts once Risk to Reward 1:1 is achieved Target: 2000 Pts (max) Buy Setup Ema
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4 year backtest 2021‑2025 report, equity curve, trade list, strategy description, and 1‑month demo access. i need a concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you
Buen día. Busco un desarrollador para agregar sistema de Martingala a un Bot de MT4, sin poseer el código fuente, solo el archivo EX4. Mas detalles en mensaje privado, agradezco la atención prestada
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
want a highly profitable EA; price is not an issue, as long as you can prove it and send me a demo for me to test. You need to prove yourself first. The EA needs a year of stable backtesting
I’m looking for an experienced MQL5 developer to build TWO MT5 custom indicators that detect multi-condition M30 trade setups and send Telegram alerts before trade execution . This project requires strict close-based logic , multi-indicator buffer processing , and non-repainting behavior . HIGH-LEVEL REQUIREMENTS Indicators must evaluate signals from M30 only All conditions are checked only after candle close Logic

Project information

Budget
50+ USD