Specification

//+------------------------------------------------------------------+
//| ScalperEA.mq5 |
//+------------------------------------------------------------------+
#property copyright "Template"
#property version "1.00"
#property strict

input int FastEMA = 8;
input int SlowEMA = 21;
input int AtrPeriod = 14;
input double StopAtrMult = 1.2;
input double TpAtrMult = 1.0;
input double RiskPercent = 0.5; // percent account risk per trade
input int Magic = 123456;
input double Lots = 0.01;

double EMAFast[], EMASlow[], ATRArr[];

int OnInit()
{
  SetIndexBuffer(0, EMAFast);
  SetIndexBuffer(1, EMASlow);
  // nothing to set for ATR; we'll compute using iATR
  return(INIT_SUCCEEDED);
}

void OnTick()
{
  // get last two closed candles
  int shift = 1; // last closed bar
  double fast_prev = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
  double fast_last = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
  double slow_prev = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
  double slow_last = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
  double atr = iATR(NULL, PERIOD_CURRENT, AtrPeriod, shift);

  if (atr <= 0) return;

  // simple crossover signals
  if (fast_prev <= slow_prev && fast_last > slow_last)
  {
    // buy signal
    double entry = SymbolInfoDouble(_Symbol, SYMBOL_BID); // or use Ask for buy market entry
    double stop = entry - StopAtrMult * atr;
    double tp = entry + TpAtrMult * atr;
    double lots = Lots;
    // optionally compute lots from RiskPercent and stop distance
    // place market buy
    trade_buy(lots, stop, tp);
  }
  else if (fast_prev >= slow_prev && fast_last < slow_last)
  {
    // sell signal
    double entry = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
    double stop = entry + StopAtrMult * atr;
    double tp = entry - TpAtrMult * atr;
    trade_sell(Lots, stop, tp);
  }
}

void trade_buy(double lots, double stop, double tp)
{
  MqlTradeRequest req;
  MqlTradeResult res;
  ZeroMemory(req);
  req.action = TRADE_ACTION_DEAL;
  req.symbol = _Symbol;
  req.volume = lots;
  req.type = ORDER_TYPE_BUY;
  req.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
  req.sl = stop;
  req.tp = tp;
  req.deviation = 5;
  req.magic = Magic;
  OrderSend(req, res);
}

void trade_sell(double lots, double stop, double tp)
{
  MqlTradeRequest req;
  MqlTradeResult res;
  ZeroMemory(req);
  req.action = TRADE_ACTION_DEAL;
  req.symbol = _Symbol;
  req.volume = lots;
  req.type = ORDER_TYPE_SELL;
  req.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
  req.sl = stop;
  req.tp = tp;
  req.deviation = 5;
  req.magic = Magic;
  OrderSend(req, res);
}

Responded

1
Developer 1
Rating
(627)
Projects
987
47%
Arbitration
33
36% / 36%
Overdue
99
10%
Loaded
Published: 6 codes
2
Developer 2
Rating
(104)
Projects
168
24%
Arbitration
23
9% / 78%
Overdue
16
10%
Working
3
Developer 3
Rating
(1)
Projects
0
0%
Arbitration
2
0% / 100%
Overdue
0
Free
4
Developer 4
Rating
(273)
Projects
401
27%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
5
Developer 5
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(7)
Projects
8
0%
Arbitration
2
0% / 50%
Overdue
1
13%
Working
7
Developer 7
Rating
Projects
2
0%
Arbitration
4
25% / 50%
Overdue
1
50%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(32)
Projects
35
34%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
11
Developer 11
Rating
(255)
Projects
262
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
12
Developer 12
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
13
Developer 13
Rating
(4)
Projects
3
33%
Arbitration
2
0% / 100%
Overdue
0
Free
14
Developer 14
Rating
(12)
Projects
16
13%
Arbitration
4
50% / 25%
Overdue
4
25%
Loaded
15
Developer 15
Rating
(1)
Projects
0
0%
Arbitration
5
0% / 80%
Overdue
0
Free
16
Developer 16
Rating
(129)
Projects
168
39%
Arbitration
10
40% / 0%
Overdue
29
17%
Loaded
17
Developer 17
Rating
(5)
Projects
8
13%
Arbitration
3
0% / 33%
Overdue
2
25%
Free
Published: 1 code
18
Developer 18
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
19
Developer 19
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
Rating
(32)
Projects
33
61%
Arbitration
1
100% / 0%
Overdue
1
3%
Free
Published: 5 codes
Similar orders
Hola, estoy buscando un desarrollador MQL5 con experiencia real en trading algorítmico. Necesito un EA para XAUUSD con: Control de Drawdown filtro de mercado (tendencia vs rango) gestión de riesgo dinámica optimización para sesiones específicas Antes de avanzar quisiera saber: ¿Qué experiencia tienes con EAs en MT5? ¿Has trabajado con estrategias de oro (XAUUSD)? ¿Cómo gestionas el drawdown en un bot? ¿Puedes mostrar
Iam seeking for a good trade robot/indicator debugging developer to finalize and close profits for me,in both my exneas blocker and MT5,for expert advisor for trading both gold xausd and sliver xagusd,l really want a perfect robot that can herence and risk management principles,not to leave out am a beginner
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
Project Description I am looking for a highly experienced MQL5 developer to build a professional-grade Expert Advisor for MetaTrader 5, focused on XAUUSD (Gold). This project is not a simple EA, but the foundation of a scalable multi-strategy trading system, designed for long-term development and future upgrades. Core Concept The EA must support a maximum of 5 internal strategies, each working independently but
I need an experienced developer to carry out an indicator and trading robot using the following; moving averages risk ( take profit and stop loss) and maximum drawdown limits heiken ashi confirmation. trendline breakout if possible The developer will test this on a demo account that I will provide before conclusion as I don’t want anyone to waste my time trying to use chartgpt trial and error. If you can do the
Volume Gaps & Imbalances by Zeiierman is the indicator I want to convert to MT5. I want to work with someone who specializes /understands scalping on the 1min. You need to be able to modify and play with the settings, back & forward test, and find settings that will work best for scalping the NQ. I am not looking for a developer that just builds without completely forward testing it, that all the fields works, and
Hi, Before ordering, I want to verify the quality of your ICT/SMC logic. Do you have an existing indicator or strategy (your own work) that I can test on TradingView? If yes, please provide: 1. A demo (invite-only script or video) 2. Proof it is NON-repainting (explained clearly) 3. Live or replay demonstration (not static screenshots) Specifically I want to see: * Clean swing structure (no consecutive highs/lows) *
Описание: Мне нужен пользовательский индикатор для MT4, основанный на логике концепции «умных денег» (Smart Money Concepts, SMC). Индикатор должен определять изменения структуры рынка без перерисовки. Основные требования: Логика: Индикатор должен использовать подход, основанный на зигзаге, для определения точек HH/LL и LH/HL. Сигналы: - Фиолетовая стрелка (Продажа): Появляется, когда цена формирует новый нижний
Project Overview ​I am looking for a high-level Algorithmic Trader / Developer to build a sophisticated, fully automated scalping system for the Nasdaq-100 Future (NQ) . The system must integrate institutional order flow logic with market structure analysis. ​The core logic must be written in Python , acting as a central hub that bridges ATAS (as the primary data source for Order Flow) and MetaTrader 5 (as the
[Automatic Level Detection Group] - Enable Auto Detection: Yes/No - Number of Levels Required: (Number) 3-5 - Lookback Bars: (Number) 100-200 - Minimum Touches for Strong Level: (Number) 2 - Use Zig Zag Algorithm: Yes/No - Use Level Clustering: Yes/No - Max Cluster Distance (points): (Number) [Display and Drawing Group] - Resistance Line Color: (Color) - Support Line Color: (Color) - Show Info Labels: Yes/No - Lines

Project information

Budget
30 - 500 USD