Smart UT Bot MT5
1. System Overview & Architecture
Smart UT Bot Pro EA (MT5 Edition) is an institutional-grade, fully automated trading system engineered specifically for MetaTrader 5. Optimized for Gold (XAUUSD), Forex pairs, and Indices, the EA combines high-frequency ATR volatility tracking with a multi-layered indicator matrix and Smart Money Concepts (SMC) structure analysis.
The system is built on a native MQL5 execution architecture, utilizing the CTrade position-management framework, CopyBuffer array indexing, and an adaptive scoring matrix to validate entry conditions.
UT Bot ATR Core Signal (MQL5) >> Multi-Filter Scoring Engine (RSI, MACD, Volume, Momentum, SMC Structural, MTF Trend) >> Score >= MinSignalScore Requirement? >> Execute Order Via Filter Signal / CTrade Class Maintain Flat
Key Technical Features
-
Adaptive Auto-Preset Engine: Automatically detects chart timeframe changes ( M1 , M5 , M15 ) and reconfigures internal volatility multipliers, trailing distances, and filter thresholds instantly without requiring manual parameter adjustments.
-
Smart Scoring Matrix: Overcomes trade stagnation caused by rigid logical AND ( && ) conditions. The main UT Bot trigger requires a composite score from 6 secondary filters to meet or exceed MinSignalScore .
-
Heikin-Ashi Price Smoothing: Filters out false breakout spikes by processing smoothed Heikin-Ashi price vectors instead of raw close prices.
-
Real-Time ATR Trailing Engine: Continuously updates server-side Stop Loss levels tick-by-tick via MQL5 position modification APIs to lock in floating profits.
-
Smart Money Concepts (SMC): Evaluates structural market events - Change of Character (CHoCH) and Break of Structure (BOS) - using dynamic pivot high/low calculations.
-
Cumulative Volume Delta (CVD): Real-time volume differential tracking overlaid on the interactive visual dashboard to measure market participant pressure.
2. Installation & MT5 Configuration
-
Open MT5 Data Folder: Launch MetaTrader 5, click File >> Open Data Folder.
-
Transfer EA File: Navigate to MQL5 >> Experts and paste Smart_UT_Bot.ex5
-
Refresh Navigator: Open the Navigator panel ( Ctrl + N ), right-click Expert Advisors, and click Refresh.
-
Attach to Chart: Open a chart (Recommended: XAUUSD), drag and drop Smart_UT_Bot onto the window.
-
Configure Permissions: In the EA Properties window under the Common tab:
-
Check Allow Algo Trading.
-
Check Allow Modification of Signals Settings.
-
-
Enable Global Algo Trading: Ensure the main Algo Trading button on the top MT5 toolbar is toggled ON (Green icon).
3. Input Parameters Dictionary
Preset & Core UT Bot Parameters
-
AutoPreset ( true / false ): Enforces automatic timeframe adaptation ( M1 , M5 , M15 ). Set to false to enable custom manual parameters.
-
KeyValue (Default: 1.5 ): Sensitivity multiplier applied to the Average True Range (ATR) stop distance. Higher values widen the stop distance to avoid market noise; lower values increase signal frequency.
-
ATRPeriod (Default: 10 ): Lookback period for Average True Range volatility calculation.
-
UseHeikinAshi ( true / false ): Uses Heikin-Ashi close prices instead of raw Close prices for ATR trailing calculation.
-
UseATRTrailing ( true / false ): Enables tick-level position modifications to trail Stop Loss orders along the UT Bot ATR line.
System Scoring Matrix & Secondary Filters
-
MinSignalScore (Default: 4 ): Minimum score required across the 6 secondary filters (RSI, MACD, Volume, Momentum, SMC, MTF Trend) to execute a order (Range: 3 to 6 ).
-
UseRSI / RSIPeriod / RSI_OB / RSI_OS : RSI filter preventing Buy orders in overbought zones (>70) and Sell orders in oversold zones (<30).
-
UseMACD / MACD_Fast / MACD_Slow / MACD_Signal : Validates directional momentum via MACD histogram and signal line crossovers.
-
PivotLength / UseCHoCH / UseBOS : Configures pivot lookback periods for identifying Smart Money Concepts structural shifts (CHoCH) and trend continuations (BOS).
-
UseMTFTrend / MTF_EMA_Period : Assesses higher timeframe trend bias using EMAs across 6 timeframes ( 5M , 15M , 30M , 1H , 4H , 1D ).
-
UseVolume / VolLongPeriod / VolShortPeriod : Compares short-term moving average volume against long-term baselines to confirm volume expansion.
-
UseMomentum / MomThreshold : Measures rate-of-change price velocity, normalized against current ATR volatility.
Risk & Position Management
-
LotSize (Default: 0.01 ): Fixed trading volume per order.
-
UseATR_SL ( true / false ):
-
true : Computes Stop Loss and Take Profit distances dynamically using ATR multipliers ( ATR_SL_Mult , ATR_TP_Mult ).
-
false : Sets SL/TP using fixed USD monetary amounts ( FixedSL_USD , FixedTP_USD ).
-
-
ATR_SL_Mult (Default: 1.5 ): Stop Loss distance multiplier
-
ATR_TP_Mult (Default: 3.0 ): Take Profit distance multiplier
-
MagicNumber (Default: 88888888 ): Unique EA identifier for position tracking on hedging and netting accounts.
-
Slippage (Default: 3 ): Maximum allowed order execution slippage in points.
-
MinBarsBetween (Default: 5 ): Minimum bar delay required between consecutive trade entries to avoid overtrading.
4. Live Trading Operations & Risk Protocols
-
Broker & Spread Conditions: Execute trades on raw ECN accounts with Gold spreads below 15–20 points (1.5–2.0 pips). Wide floating spreads degrade the performance of ATR dynamic trailing stops. Use a low-latency VPS ($< 5\text{ ms}$) for execution stability.
-
Capital Sizing Guidelines:
-
$1,000 Capital: Trading lot size 0.01 – 0.02 .
-
$5,000 Capital: Trading lot size 0.05 – 0.10 .
-
Maintain total portfolio risk per trade between 1% and 2% of account equity.
-
-
High-Impact News Protocol: Disable automated trading 30 minutes before and after high-impact macroeconomic releases: Non-Farm Payrolls (NFP), Consumer Price Index (CPI), FOMC Rate Decisions, and Retail Sales. High volatility spikes during these events can cause severe spread widening and slippage.
-
Optimal Session Hours:
-
London Session: 07:00 – 10:30 UTC.
-
New York Session: 12:00 – 16:00 UTC.
-
Avoid opening new trades during low-liquidity Asian consolidation ranges or late Friday sessions.
-
