The Zone Entry Module provides reusable zone analysis, FVG detection, and a pending entry system that any strategy can use to improve entry quality.
VECTRA calculates Premium/Discount zones using three methods blended together:
High/Low Range
40%
Traditional swing high/low percentage
VWAP Bands
35%
Volume-weighted center ±1.5 standard deviations
ATR Bands
25%
EMA20 ±2.5 ATR as dynamic range
0-30%
Discount — Favor long entries
30-42%
Extended Discount — Near discount, some setups valid
42-58%
Equilibrium — No zone edge
58-70%
Extended Premium — Near premium, some setups valid
70-100%
Premium — Favor short entries
The module detects Fair Value Gaps (3-candle patterns with non-overlapping wicks):
Minimum gap size: 0.1% of price
Lookback: 20 candles
Classification: BULLISH or BEARISH
Zone awareness: In discount, in premium, or neutral
For strategies that want to wait for price to reach a specific level, use the pending entry system:
add_pending(symbol, direction, target_price, ...) — Register a pending entry.
add_pending(symbol, direction, target_price, ...)
check_pending(symbol, current_price, htf_bias, cvd_trend) — Re-validate and trigger.
check_pending(symbol, current_price, htf_bias, cvd_trend)
Pending entries auto-expire after configurable timeout.
Re-validation ensures the setup is still valid when price reaches the target.