feat(v0.1.0): project foundation with logging and config
This commit is contained in:
74
config/detectors.yaml
Normal file
74
config/detectors.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
# Pattern Detector Configuration
|
||||
|
||||
fvg_detector:
|
||||
enabled: true
|
||||
min_gap_size_pips: 5 # Minimum gap size in pips
|
||||
max_gap_age_bars: 50 # Maximum bars before gap is considered invalid
|
||||
require_confirmation: true # Require price to touch gap zone
|
||||
|
||||
bullish:
|
||||
min_body_size_ratio: 0.6 # Minimum body size relative to candle
|
||||
min_gap_size_ratio: 0.3 # Minimum gap relative to ATR
|
||||
|
||||
bearish:
|
||||
min_body_size_ratio: 0.6
|
||||
min_gap_size_ratio: 0.3
|
||||
|
||||
order_block_detector:
|
||||
enabled: true
|
||||
lookback_bars: 20 # Bars to look back for BOS
|
||||
min_candle_size_ratio: 0.5 # Minimum candle size relative to ATR
|
||||
require_structure_break: true # Require BOS before OB
|
||||
|
||||
bullish:
|
||||
min_body_size_ratio: 0.7
|
||||
max_wick_ratio: 0.3 # Maximum wick size relative to body
|
||||
|
||||
bearish:
|
||||
min_body_size_ratio: 0.7
|
||||
max_wick_ratio: 0.3
|
||||
|
||||
liquidity_detector:
|
||||
enabled: true
|
||||
swing_lookback: 10 # Bars to look back for swing points
|
||||
min_swing_size_pips: 10
|
||||
sweep_tolerance_pips: 2 # Tolerance for sweep detection
|
||||
|
||||
bullish_sweep:
|
||||
require_reversal: true
|
||||
min_reversal_size_ratio: 0.5
|
||||
|
||||
bearish_sweep:
|
||||
require_reversal: true
|
||||
min_reversal_size_ratio: 0.5
|
||||
|
||||
premium_discount:
|
||||
enabled: true
|
||||
calculation_method: "session_range" # session_range or daily_range
|
||||
session_start_time: "03:00"
|
||||
session_end_time: "04:00"
|
||||
|
||||
levels:
|
||||
premium_threshold: 0.618 # Fibonacci level
|
||||
discount_threshold: 0.382
|
||||
equilibrium_level: 0.500
|
||||
|
||||
structure_detector:
|
||||
enabled: true
|
||||
swing_period: 10 # Period for swing detection
|
||||
min_structure_size_pips: 15
|
||||
|
||||
bos:
|
||||
require_confirmation: true
|
||||
confirmation_bars: 2
|
||||
|
||||
choch:
|
||||
require_confirmation: true
|
||||
confirmation_bars: 2
|
||||
|
||||
scanner:
|
||||
run_parallel: false # Run detectors in parallel (experimental)
|
||||
save_detections: true
|
||||
generate_screenshots: false # Set to true for labeling workflow
|
||||
screenshot_path: "data/screenshots/patterns"
|
||||
|
||||
Reference in New Issue
Block a user