Fill The Wick Trading System (XAUUSD M15) – Complete Guide
Executive Summary
The Fill The Wick Trading System is an automated Expert Advisor (EA) designed specifically for trading Gold (XAUUSD) on the 15-minute timeframe (M15). The strategy is built around price action momentum and the “wick fill” concept, reinforced by Heikin Ashi confirmation to filter out market noise and capture short-term continuation moves.
Key Features & Highlights
-
Dual-Confirmation Mechanism Combines standard candlestick patterns with calculated Heikin Ashi values to ensure entries only occur during aligned price momentum.
-
Dynamic Take Profit (TP) Instead of fixed pip targets, Take Profit is calculated dynamically based on a percentage of the preceding candle’s wick, aligning execution with real-time market volatility.
-
Safety & Risk Filters Features a single-position restriction to avoid over-exposure, an optional spread filter to prevent high-cost entries, and configurable trading window restrictions.
-
Broker-Level Safety Checks Automatically adjusts lot sizing to broker specifications and validates minimum stop distances before submitting orders to reduce order execution failures.
Core Trading Logic
The EA analyzes the most recently closed candle (Shift 1) on every tick execution. A trade signal is triggered when the following conditions are simultaneously met:
BUY Signal Conditions
-
Standard Candlestick: Must be bullish (
Close > Open). -
Heikin Ashi Candle: Must be bullish (
HA Close > HA Open). -
Lower Wick Threshold: The lower wick length (
Close - Low) must be equal to or greater thanMinWick(Default: $0.30). -
Take Profit Check: The target TP distance (
Lower Wick * WickTP_Percent / 100) must be at leastMinTP(Default: $0.30).
Execution: Opens a BUY position at Ask price with dynamic TP set above entry and SL set at Ask - StopLossDistance.
SELL Signal Conditions
-
Standard Candlestick: Must be bearish (
Close < Open). -
Heikin Ashi Candle: Must be bearish (
HA Close < HA Open). -
Upper Wick Threshold: The upper wick length (
High - Close) must be equal to or greater thanMinWick(Default: $0.30). -
Take Profit Check: The target TP distance (
Upper Wick * WickTP_Percent / 100) must be at leastMinTP(Default: $0.30).
Execution: Opens a SELL position at Bid price with dynamic TP set below entry and SL set at Bid + StopLossDistance.
Input Parameter Configuration Guide
Below is a detailed breakdown of all user-configurable parameters accessible in the MT4 “Inputs” tab:
1. Basic Settings
-
EA_Name (Default:
"Fill The Wick XAUUSD M15"): Internal identifier printed in logs and order comments. -
MagicNumber (Default:
150915): Unique identifier for the EA to manage its own trades independently from manual trades or other EAs.
2. Volume & Lot Size
-
FixedLots (Default:
0.01): Fixed lot size for each trade. Automatically adjusted to conform with broker minimums and steps.
3. Wick & Target Parameters
-
MinWick (Default:
0.30): Minimum wick size required (in USD) to qualify for a trade signal. -
MinTP (Default:
0.30): Minimum allowed Take Profit distance (in USD). If calculated TP is less than this value, the trade is skipped. -
WickTP_Percent (Default:
50.0): Percentage of the previous candle’s wick length used to determine the TP target.
4. Risk Management
-
StopLossDistance (Default:
0.70): Fixed Stop Loss distance (in USD) from the entry price.
5. Spread Protection
-
UseSpreadFilter (Default:
false): Enable/Disable spread filtering. -
MaxSpread (Default:
0.20): Maximum allowable spread in USD for trade execution (Active only whenUseSpreadFilter = true).
6. Trading Hours Filter
-
UseTradingHours (Default:
false): Enable/Disable time-restricted trading. -
StartHour / StartMinute (Default:
9:0): Market entry allowed starting from this broker time. -
EndHour / EndMinute (Default:
23:0): Market entry disallowed after this broker time (Supports overnight time frames).
7. Directional Controls & Execution
-
AllowBuy (Default:
true): Enable or disable BUY trade signals. -
AllowSell (Default:
true): Enable or disable SELL trade signals. -
Slippage (Default:
30): Maximum allowable price slippage in points during order placement.











Leave a Reply