Skip to product information
Magnet OB Finder #030

Magnet OB Finder – User Guide
Overview
Magnet OB Finder
is an MT5 Expert Advisor that combines:
Supply/Demand Zones – auto-detected using swing highs/lows and ATR-based zone
width.
ATR-based Stop Loss & Take Profit – flexible SL/TP management tied to volatility.
RSI Divergence – bullish/bearish divergences confirm entries.
Risk Management – fixed lot or percent risk.
Trailing Stop – ATR-based trailing stop to protect profits.
The EA automatically detects zones, confirms signals, and executes trades with risk-managed lot
sizing.
How It Works
1. Zone Detection
o Demand Zone: Formed at swing lows.
o Supply Zone: Formed at swing highs.
o Width = ATR × Inp_Zone_ATR_Width or minimum points.
2.
Entry Conditions
o Buy: Price touches demand zone and RSI shows bullish divergence.
o Sell: Price touches supply zone and RSI shows bearish divergence.
3.
Stop Loss (SL)
o For buys: Below demand zone – ATR × Inp_ATR_SLx.
o For sells: Above supply zone + ATR × Inp_ATR_SLx.
4.
Take Profit (TP)
o Either RiskReward × SL distance (if >0).
o Or ATR × Inp_ATR_TPx.
5.
Trailing Stop
o Dynamically adjusts based on ATR × Inp_Trail_ATR_mult.
Input Parameters
General
Inp_EA_Name – name tag for trades.
Inp_Magic – unique ID to separate trades from other EAs.
Inp_AllowLong / Inp_AllowShort – enable/disable buy or sell trades.
Inp_MaxSpreadPoints – skip trading if spread is too high.
Inp_CooldownBars – bars to wait before opening another trade.
Risk Management
Inp_RiskMode
o FIXED_LOTS – always use Inp_FixedLots.
o PERCENT_RISK – lot size based on account balance and stop size.
Inp_FixedLots – fixed lot size (e.g., 0.1).
Inp_RiskPercent – % of balance to risk per trade (e.g., 1%).
ATR / SLTP
Inp_ATR_Period – ATR lookback period.
Inp_ATR_SLx – SL distance multiplier.
Inp_ATR_TPx – TP distance multiplier (if RiskReward=0).
Inp_RiskReward – TP/SL ratio (overrides ATR_TPx if >0).
RSI & Divergence
Inp_RSI_Period – RSI calculation period.
Inp_Div_Lookback – number of bars to scan for divergence.
Inp_Pivot_Len – swing detection length for pivots.
Zones
Inp_Zone_Lookback – bars to scan for supply/demand zones.
Inp_Zone_ATR_Width – zone half-width multiplier.
Inp_MinZonePoints – minimum zone thickness in points.
Trailing
Inp_TrailingEnable – enable/disable trailing.
Inp_Trail_ATR_mult – trailing distance multiplier.
Recommended Parameter Sets
EURUSD M30 (Medium Volatility)
Inp_RiskMode = PERCENT_RISK
Inp_RiskPercent = 1.0
Inp_ATR_Period = 14
Inp_ATR_SLx = 1.5
Inp_RiskReward = 1.5
Inp_Zone_ATR_Width = 0.5
Inp_Pivot_Len = 3
Inp_CooldownBars = 10
XAUUSD H1 (High Volatility)
Inp_RiskMode = PERCENT_RISK
Inp_RiskPercent = 0.5
Inp_ATR_Period = 14
Inp_ATR_SLx = 2.0
Inp_RiskReward = 2.0
Inp_Zone_ATR_Width = 0.7
Inp_Pivot_Len = 4
Inp_CooldownBars = 15
Usage Tips
Best used on M30–H1 charts for clearer zones.
Works well on trending or volatile pairs (EURUSD, GBPUSD, XAUUSD).
Avoid low-liquidity times (e.g., Asian session for non-JPY pairs).
Test parameters on each symbol with Strategy Tester.
Always forward-test on demo before live trading.

You may also like