Make a HFT trading bot

MQL5 Asesores Expertos Fórex

Tarea técnica


                                                                                                 

I want you to build an HFT-style algo trading bot focusing on ultra-low latency logic, fast execution, and order-book microstructure.
Follow these requirements:

———————

1. GENERAL BOT SPECIFICATIONS

  • Platform: MT5 (MQL5)

  • Execution type: High-frequency trading style

  • Strategy basis:

    • Order book imbalance

    • Tick-by-tick microtrend detection

    • Latency-optimized scalping

    • Micro-arbitrage between bid/ask pressure

    • Queue position logic (when possible)

  • One toolchain: provide fully functional MQL5 code that compiles.

———————

2. DATA SOURCES & SIGNALS

Include:

  • Real-time tick stream (OnTick)

  • Order Book (Level 2) using MarketBookAdd()

  • Spread tracking and spread-based signals

  • Imbalance detection:

    • Buy volume vs sell volume

    • Best bid/ask changes

  • Microstructure patterns:

    • Bid exhaustion

    • Ask exhaustion

    • Sudden depth disappearance

    • Quote stuffing detection (if possible)

———————

3. ENTRY LOGIC RULES

Create multiple entry conditions:

  • Imbalance ratio threshold (example: ask > bid by X%)

  • Price acceleration over last N ticks

  • Spread drops below threshold

  • Best bid lifts 2+ ticks in < 50 ms

  • Best ask drops 2+ ticks in < 50 ms

Make the rules tunable in input parameters.

———————

4. EXIT LOGIC

Include auto exit based on:

  • Micro take-profit (0.05%–0.10%)

  • Micro stop-loss (0.03%–0.05%)

  • Sudden spread widening

  • Reverse imbalance

  • Order book shift against the position

  • Time-based exit (milliseconds)

———————

5. RISK MANAGEMENT

Implement:

  • Max trades per second

  • Daily loss limit

  • Daily profit cap

  • Auto-disable after limit hit

  • Auto reduction of lot size when volatility spikes

———————

6. EXECUTION SPEED OPTIMIZATION

Tell the bot to:

  • Pre-allocate memory

  • Use lightweight arrays

  • Avoid heavy loops

  • Avoid indicators

  • Keep logic pure tick-based

  • Conditional checks optimized for speed

———————

7. OUTPUT REQUIREMENTS

Your response must include:

  1. Clear explanation of the strategy

  2. Full MQL5 code

  3. Separate helper functions for:

    • Order book processing

    • Latency timing

    • Imbalance calculations

    • Fast trade execution

  4. Comments throughout the code

  5. Instructions on compiling and running it

Write everything cleanly, optimized, and ready to run.

                                                                                                                                                  

Han respondido

1
Desarrollador 1
Evaluación
(266)
Proyectos
598
35%
Arbitraje
64
20% / 58%
Caducado
147
25%
Libre
Ha publicado: 1 artículo, 22 ejemplos
2
Desarrollador 2
Evaluación
(168)
Proyectos
200
48%
Arbitraje
3
33% / 33%
Caducado
2
1%
Libre
3
Desarrollador 3
Evaluación
(12)
Proyectos
16
13%
Arbitraje
4
50% / 25%
Caducado
4
25%
Trabajando
4
Desarrollador 4
Evaluación
(7)
Proyectos
9
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
Ha publicado: 1 artículo
5
Desarrollador 5
Evaluación
(144)
Proyectos
186
41%
Arbitraje
24
58% / 21%
Caducado
13
7%
Libre
6
Desarrollador 6
Evaluación
(311)
Proyectos
557
35%
Arbitraje
79
32% / 43%
Caducado
202
36%
Trabaja
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(1)
Proyectos
3
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(296)
Proyectos
475
40%
Arbitraje
105
40% / 24%
Caducado
80
17%
Ocupado
Ha publicado: 2 ejemplos
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(187)
Proyectos
243
20%
Arbitraje
22
50% / 18%
Caducado
0
Trabaja
12
Desarrollador 12
Evaluación
(3)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(1)
Proyectos
0
0%
Arbitraje
5
0% / 80%
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(7)
Proyectos
9
0%
Arbitraje
1
0% / 100%
Caducado
2
22%
Libre
16
Desarrollador 16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 ejemplos
17
Desarrollador 17
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Criei um Robô para a venda alta precisão que automatiza a estratégia de correção média de Larry Williams. Possui filtros de tendência seletiva, controle de lote por risco percentual e execução rápida. Compatível com contas Hedge e Netting. Configuração simples e otimizada para mercados de alta volatilidade. *55(16) 993786056
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
Project Title: Custom XAUUSD Support & Resistance Indicator Platform Required: MT5 preferred. If possible, also provide TradingView Pine Script version later. Main Goal: I want a custom indicator made specifically for XAUUSD (Gold) only. The indicator should automatically detect and draw strong support and resistance zones where price has a high probability of reacting, rejecting, or reversing. It must update
I need a boom-and-crash MT5 robot that is very accurate for opening trades just before the spike happens. It should use M1 timeframe It should have options for changing lot size, number of trades to open, stop loss and take profit in points If the spike happens and it makes some profit, it should automatically close all trades. If the spike happens and the spike is not in profits, the trades can remain open waiting
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
This is yakubu Jnr trading bots I create the trading robots to help my self and others traders to be successful please you can join my live trading bots or subscribe to my trading robots
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone

Información sobre el proyecto

Presupuesto
30 - 100 USD
Plazo límite de ejecución
de 1 a 10 día(s)