🔢 HFT MT5 Bot Settings Guide
HFT MT5 Bot is a highly configurable automated trading system focused on fast market execution, controlled entry distances, time-based trading restrictions, and active position management. Its settings combine trading-hour controls, spread protection, fixed Stop Loss, trailing-stop management, break-even protection, candle-based market analysis, breakout calculations, and entry-distance limits. The configuration below explains every visible parameter and preserves all numerical values exactly as shown.

🔄 Trading Hours & Schedule
🔹 Limit trading hours: true — Enables the defined trading-hour restriction so the EA operates only within the configured session.
🔹 TradingHourStart: h15 — Sets the trading start hour to 15, corresponding to 15:00.
🔹 TradingMinStart: m00 — Sets the trading start minute to 00, making the configured start time 15:00.
🔹 TradingHourEnd: h18 — Sets the trading end hour to 18, corresponding to 18:00.
🔹 TradingMinEnd: m30 — Sets the trading end minute to 30, making the configured end time 18:30.
🔹 Trading Session: 15:00–18:30 — Based on the supplied hour and minute settings, the active trading window is 15:00 to 18:30.
🔄 Trade Identification & Cutoff Management
🔹 Magic number for Lock30X EA: 303030 — Assigns the unique Magic Number 303030 to identify and manage the EA's trades.
🔹 Min seconds between force-close retries at cutoff: 2 — Sets a minimum delay of 2 seconds between repeated force-close attempts when the trading cutoff is reached.
🔄 Stop Loss Settings
🔹 Initial fixed SL distance (points): 30 — Sets the initial fixed Stop Loss distance to 30 points.
🔄 Trailing Stop Settings
🔹 Enable Trailing Stop: true — Enables the trailing-stop management system.
🔹 Trailing Stop Distance (points) [HFT Bot value]: 100.0 — Sets the trailing-stop distance to 100.0 points.
🔹 Trailing Step (points) [HFT Bot value]: 100.0 — Sets the trailing-stop adjustment step to 100.0 points.
🔄 Break-Even Protection
🔹 Enable Break Even: true — Activates the break-even protection system.
🔹 Break Even Trigger (points) [HFT Bot value]: 50.0 — Activates break-even management after the trade reaches 50.0 points of favorable movement.
🔹 Break Even Stop (points) [HFT Bot value]: 0.0 — Sets the break-even Stop Loss placement to 0.0 points relative to the entry level.
🔄 Entry Tolerance & Stale-Trade Protection
🔹 Tolerance (points): only re-center once drift beyond the ideal: 5.0 — Allows 5.0 points of deviation before the system re-centers an entry around its ideal level.
🔹 Stale ceiling (points): beyond this distance from market, cancel: 150.0 — Cancels an outdated/pending entry when it becomes more than 150.0 points away from the current market.
🔄 Spread Protection
🔹 Max allowed spread (points) – skip if spread >= this: 100 — Prevents trading when the spread reaches or exceeds 100 points.
🔄 Candle-Based Direction Analysis
🔹 Bars used for bullish/bearish close-count vote: 10 — Uses the latest 10 bars to calculate the bullish-versus-bearish closing-direction vote.
🔹 Min (bullish-bearish) count difference needed to vote a direction: 2 — Requires at least a 2-bar difference between bullish and bearish counts before assigning a directional vote.
🔹 A closed candle's body must be >= this fraction of its recent average body: 0.3 — Requires a candle body to reach at least 0.3 of its recent average body size to satisfy this condition.
🔄 Range & Breakout Analysis
🔹 Bars used for average range / breakout / average body calculation: 8 — Uses 8 bars to calculate the relevant average range, breakout reference, and average candle-body measurements.
🔹 Entry distance = this fraction of the recent average bar range: 0.3 — Calculates the entry distance using 0.3 of the recent average bar range.
🔹 Hard ceiling on entry distance (points) regardless of volatility: 70.0 — Caps the entry distance at 70.0 points, regardless of the calculated market volatility.
🔢 Configuration Summary
🔹 Trading Hours: 15:00–18:30 — The EA is restricted to the configured trading session.
🔹 Trading-Hour Filter: true — Trading-hour limitations are active.
🔹 Magic Number: 303030 — Used to distinguish HFT MT5 Bot positions.
🔹 Initial Stop Loss: 30 points — Provides the initial fixed SL distance.
🔹 Trailing Stop: true — Trailing management is enabled with 100.0-point distance and 100.0-point step.
🔹 Break-Even: true — Break-even protection activates at 50.0 points, with the Break Even Stop set to 0.0 points.
🔹 Entry Tolerance: 5.0 points — Controls when the EA re-centers an entry after sufficient deviation.
🔹 Stale Entry Ceiling: 150.0 points — Prevents excessively distant entries from remaining active.
🔹 Maximum Spread: 100 points — Trading is skipped when spread is >= 100 points.
🔹 Directional Analysis: 10 bars — The bullish/bearish vote uses 10 bars and requires a minimum count difference of 2.
🔹 Candle Body Threshold: 0.3 — A qualifying closed candle body must be at least 0.3 of its recent average body.
🔹 Average Range Calculation: 8 bars — Uses 8 bars for range, breakout, and average-body calculations.
🔹 Entry Distance Factor: 0.3 — Entry distance is based on 0.3 of the recent average bar range.
🔹 Maximum Entry Distance: 70.0 points — The entry distance cannot exceed 70.0 points.
🔢 Conclusion
The HFT MT5 Bot configuration is built around controlled execution rather than unrestricted market exposure. The setup combines a 15:00–18:30 trading window, 30-point initial Stop Loss, 100.0-point trailing distance, 50.0-point break-even trigger, and 100-point maximum spread filter.
Its candle-analysis engine uses 10 bars for directional voting, requires a 2-bar bullish/bearish count difference, and uses 8 bars for average-range and breakout calculations. Entry placement is further controlled by a 0.3 range fraction, 5.0-point tolerance, and 70.0-point hard entry-distance ceiling.
These settings provide multiple layers of execution control, but the actual risk profile can vary significantly depending on the traded symbol, broker's point specification, spread, volatility, and account size. Backtesting and forward testing are recommended before using the configuration on a live account.
🔢 FAQs
❓ What are the trading hours of the HFT MT5 Bot?
The configured trading session is 15:00 to 18:30, with Limit trading hours = true.
❓ What is the initial Stop Loss?
The Initial fixed SL distance is set to 30 points.
❓ Does the HFT MT5 Bot use a trailing stop?
Yes. Enable Trailing Stop = true, with a 100.0-point trailing distance and 100.0-point trailing step.
❓ When does break-even activate?
Break-even is enabled and activates at 50.0 points, while Break Even Stop is configured at 0.0 points.
❓ How does the EA control entry distance?
It uses 0.3 of the recent average bar range to calculate entry distance, with a maximum hard ceiling of 70.0 points.








