OFT FREE PRO – Advanced Averaging & Trend-Following Expert Advisor
OFT FREE PRO is a highly automated, visually intuitive MQL5 Expert Advisor designed primarily for
Gold (XAUUSD) trading on lower timeframes (
M1 and M5). It combines multi-timeframe trend filtering with precise candlestick pattern recognition, wrapped in a robust risk management system and a modern interactive graphical interface.
Here is a comprehensive breakdown of the EA's mechanics, features, and logic:
1. Core Trading Strategy & Entry Logic
The EA does not trade blindly; it requires a confluence of three major technical factors before executing a Buy or Sell order:
- Higher Timeframe (HTF) Trend Filter: The EA analyzes the broader market direction by checking if the price is above or below the 200 EMA on a higher timeframe (default is H1). It will only look for buy setups in an HTF uptrend and sell setups in an HTF downtrend.
- Current Timeframe 200 EMA & Price Distance: On the execution timeframe, the EA calculates the distance between the current price and the 200 EMA. Price must be "stretched" away from the EMA by a minimum distance (default 200 pips) to validate a potential entry.
- Candlestick Pattern Triggers:Once the trend and distance criteria are met, the EA waits for high-probability price action patterns to confirm the entry:
- Reversal Patterns: Bullish or Bearish Engulfing candles.
- Continuation Patterns: Bullish or Bearish Marubozu candles (requiring a 90%+ body-to-range ratio).
2. Trade & Grid Management
Instead of relying on a single entry, the EA utilizes an advanced averaging (grid) system to manage positions:
- Smart Averaging: It can open multiple trades in the same direction (up to a user-defined limit, default 10) if the market moves against the initial position.
- Dynamic Trade Spacing: New trades in the grid are only opened if the price has moved a minimum pip distance away from the previous entry, preventing clustered orders.
- Flexible Lot Sizing: Users can opt for a fixed manual lot size, an auto-lot system based on a percentage of account equity (Risk %), or a Lot Multiplier (Martingale) to aggressively recover from drawdowns.
3. Advanced Risk Management
The EA includes several layers of capital protection to mitigate the risks associated with averaging strategies:
- Combined Stop Loss Syncing: All trades on the same side of the market are automatically synchronized to share the exact same Stop Loss level. This "Master SL" is calculated based on the first trade opened, ensuring the entire basket of trades is protected.
- Basket Trailing Stop: Once the combined profit of all same-side trades reaches a specific "Profit Lock" threshold in pips, the EA activates a trailing stop. It dynamically moves the Stop Loss to lock in profits while giving the trade room to run.
- Hard Equity Protection: A fail-safe mechanism that continuously monitors floating drawdown. If the account's floating loss reaches a user-defined threshold (default 30% of the balance), the EA will instantly close all open positions to prevent a margin call.
4. Modern Interactive Dashboard
One of the standout features of the TPS FREE PRO is its highly detailed, on-chart graphical user interface (GUI):
- Draggable Floating Panels: The main dashboard and the info panel can be dragged and dropped anywhere on the chart using the mouse.
- Live Data Monitoring: The panel displays real-time metrics, including Account Balance/Equity, current Drawdown %, HTF Trend direction, EMA distance, active candlestick patterns, and the accumulated profit of open Buy/Sell baskets.
- 10 Color Themes: Users can click through 10 pre-built aesthetic themes directly from the chart without opening the EA settings.
- Information Hub: A minimized/maximized side panel contains clickable partner links, Telegram contact information, and a built-in "Copy to Clipboard" button for a USDT address.
5. Built-in Security Features
- Account Lock: The EA can be hardcoded to only execute on a specific MetaTrader account number.
- Time Expiry: Includes a built-in expiration date (currently set to December 25, 2026), after which the EA will cease trading operations.