Make a HFT trading bot

MQL5 Experts Forex

Specification


                                                                                                 

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.

                                                                                                                                                  

Responded

1
Developer 1
Rating
(266)
Projects
598
35%
Arbitration
64
20% / 58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
2
Developer 2
Rating
(168)
Projects
200
48%
Arbitration
3
33% / 33%
Overdue
2
1%
Free
3
Developer 3
Rating
(12)
Projects
16
13%
Arbitration
4
50% / 25%
Overdue
4
25%
Loaded
4
Developer 4
Rating
(7)
Projects
9
0%
Arbitration
2
0% / 100%
Overdue
0
Free
Published: 1 article
5
Developer 5
Rating
(144)
Projects
186
41%
Arbitration
24
58% / 21%
Overdue
13
7%
Free
6
Developer 6
Rating
(311)
Projects
557
35%
Arbitration
79
32% / 43%
Overdue
202
36%
Working
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(1)
Projects
3
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(296)
Projects
475
40%
Arbitration
105
40% / 24%
Overdue
80
17%
Busy
Published: 2 codes
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(187)
Projects
243
20%
Arbitration
22
50% / 18%
Overdue
0
Working
12
Developer 12
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
13
Developer 13
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
14
Developer 14
Rating
(1)
Projects
0
0%
Arbitration
5
0% / 80%
Overdue
0
Free
15
Developer 15
Rating
(7)
Projects
9
0%
Arbitration
1
0% / 100%
Overdue
2
22%
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
17
Developer 17
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Similar orders
I need any highly profitable robot which can trade small account like 50-100USD and any currency pair(s) The robot should avoid trading around news time and have good risk management. It should use any strategy which is profitable and not those unacceptable by brokers. Demo versions will be required before selection
I need a high-speed Expert Advisor (EA) for MT5 designed specifically for XAUUSD (Gold) scalping. The bot should focus on fast entries and quick profits with high efficiency. Main requirements: 1. Symbol: XAUUSD (Gold only). 2. Platform: MetaTrader 5. 3. Strategy type: Scalping (fast trades, quick profit). 4. The bot should open trades frequently based on fast market movements. 5. Small Take Profit (quick profit
Gold_m1_ob_bot. 30+ USD
import MetaTrader5 as mt5 import pandas as pd import time from datetime import datetime # ================== CONFIG ================== SYMBOL = "XAUUSD" TIMEFRAME = mt5.TIMEFRAME_M1 LOT = 0.01 MAX_OBS = 12 # keeps signals frequent ATR_PERIOD = 14 IMPULSE_FACTOR = 1.5 # strong candle = impulse SESSION_START = 8 # GMT (London open) SESSION_END = 20 # GMT (NY close) MAX_SPREAD = 30 #
A perfect indicator 30 - 80 USD
Merge nearby zones yes/no Alert on/off Label on/off Show only current relevant zones near price yes/no Distance filter from current price Zone transparency Colors Preferred Output on Chart: I want the indicator to show only: the strongest nearby support zones under price the strongest nearby resistance zones above price major higher timeframe zones clean chart view I do not want excessive clutter. Entry Assistance
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
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

Project information

Budget
30 - 100 USD
Deadline
from 1 to 10 day(s)