Skip to product information
Crystal OB Analyzer #029

Crystal OB Analyzer – User Guide
Overview
The Crystal OB Analyzer EA is designed for Smart Money Concepts (SMC) traders.
It automatically detects:
• Order Blocks (OB) – bullish or bearish supply/demand areas.
• Fair Value Gaps (FVG) – imbalance zones formed by 3-candle patterns.
• Volume Confirmation – filters trades only when volume exceeds its SMA average.
The EA can trade retests of OB zones when confluence with FVG and Volume conditions is
met. It also draws OB/FVG zones on the chart for visual analysis.
Inputs & Parameters
General
• EA Name – Identifier for this EA instance.
• Magic Number – Unique ID for trades (do not duplicate with other EAs).
• Lookback Bars – Number of candles to scan for OB/FVG zones.
• Zone Life Bars – How many bars zones stay visible before being auto-deleted.
Order Block Detection
• Body-only OB – true = zone from candle body only; false = full wick.
• Impulse Body ATR – Body size multiple of ATR required to qualify as an impulse.
• Fractal Period – Number of bars used to validate swing breaks.
• ATR Period – ATR length for impulse validation and SL sizing.
Volume Filter
• Use Volume Filter – Enable/disable volume check.
• Volume MA Period – SMA length of tick volume.
• Volume Multiplier – Current volume must be >= SMA * multiplier to allow trade.
Fair Value Gap (FVG)
• Draw FVG – Show FVG zones on chart.
• Require FVG Confluence – Only trade OB if an FVG overlaps or is near.
• FVG Max Gap Points – If not overlapping, maximum allowed distance (in points).Trading Settings
• Allow Trading – Enable/disable auto-trading.
• Allow Long / Allow Short – Restrict trading direction.
• Risk Percent – % of balance risked per trade (dynamic lot size).
• RR TakeProfit – Risk-to-reward ratio (e.g., 2.0 = TP at 2× risk).
• SL ATR Multiplier – ATR padding added to stop loss beyond OB zone.
• Cooldown Bars – Bars to wait before allowing a new trade.
• Max Spread Points – Maximum allowed spread to enter trades.
Styling
• OB Colors – Bullish OB (green), Bearish OB (red).
• FVG Colors – Bullish FVG (blue), Bearish FVG (pink).
• Zone Transparency – 0 (invisible) to 255 (solid).
How It Works
1. OB Detection
o EA scans for impulsive candles that break prior swings.
o Last opposite candle before the impulse becomes the OB.
2. FVG Detection
o Looks for 3-candle imbalance patterns.
o Draws bullish/bearish FVG zones.
3. Trade Entry
o On retest of OB zone → check:
▪ Spread ≤ allowed.
▪ Volume filter passes.
▪ FVG overlaps/near OB (if required).
o If conditions match → EA enters trade with risk-based lot sizing.
4. Risk Management
o Stop Loss = OB boundary ± ATR padding.
o Take Profit = SL distance × RR multiplier.
Example Recommended Parameters
EURUSD (M30)
• LookbackBars = 800
• FractalPeriod = 3
• ImpulseBodyATR = 0.8• ATR_Period = 14
• UseVolumeFilter = true, VolumeMA = 20, Multiplier = 1.2
• RequireFVGConfluence = true, FVGMaxGap = 30
• RiskPercent = 1.0, RR = 2.0, SL ATR Mult = 1.0
XAUUSD (H1)
• LookbackBars = 1000
• FractalPeriod = 4
• ImpulseBodyATR = 1.0
• ATR_Period = 14
• UseVolumeFilter = true, VolumeMA = 30, Multiplier = 1.3
• RequireFVGConfluence = true, FVGMaxGap = 50
• RiskPercent = 0.5, RR = 2.5, SL ATR Mult = 1.2
Usage Tips
• Best used on M30–H1 for cleaner OB/FVG structures.
• Combine with higher timeframe bias (H4/D1) for stronger confluence.
• Start with AllowTrading=false to use in “analysis-only mode”.
• Use low spread accounts (important for gold/XAUUSD).

You may also like