Specifiche
🔷 MULTI-LAYER HYBRID EA STRATEGY (CORRECTED VERSION)
You are building a multi-layer institutional-style EA that combines:
Higher timeframe bias
Multi-timeframe confirmation
Smart execution
Adaptive risk management
🔷 1. INDICATOR A – HTF CANDLE LOGIC (Monthly → Weekly → Daily)
🔹 Core Idea
Market direction flows top-down:
Monthly → controls Weekly
Weekly → controls Daily
Daily → triggers entry
🔹 Entry Rules (Primary Trend Mode)
✅ BUY Conditions
Monthly candle = Bullish (optional ON/OFF)
Weekly candle = Bullish
Daily candle body = Bullish
Daily aligns with Weekly direction
➡️ Open BUY
❌ SELL Conditions
Monthly candle = Bearish
Weekly candle = Bearish
Daily candle body = Bearish
Daily aligns with Weekly
➡️ Open SELL
🔹 Stop Loss Logic
User selects SL source:
SL Mode = Daily / Weekly / Monthly
SL Placement:
Buy: SL = Wick opening price of selected timeframe
Sell: SL = Wick opening price of selected timeframe
👉 This represents a strong liquidity level.
🔹 Trade Management
🟢 Trailing Stop
Trail to previous Daily wick opening price
Only trail if:
Trade direction = Weekly direction
🔴 Exit Rules
Close at Daily candle close (optional)
Close at Weekly candle close (optional)
Close if Daily reverses against Weekly direction
🔹 Take Profit Options
Fixed TP (RR or pips)
OR No TP (use trailing stop)
Smart Continuation:
If TP is hit AND:
Daily + Weekly still aligned
➡️ Re-enter trade
➡️ New SL = latest wick opening
🔷 2. INDICATOR B – 9 SIGNAL MULTI-TIMEFRAME SYSTEM
🔹 Core Idea
Uses 9 internal signals to determine direction
Works across 3 selected timeframes
Has two modes: Conservative & Aggressive
🔹 Entry Modes
🟢 Conservative Mode (Strong Confirmation)
All 3 timeframes = same direction
AND 9/9 signals agree
➡️ Open trade
🟡 Aggressive Mode (Early Entry)
All 3 timeframes = same direction
AND at least 7/9 signals agree
➡️ Open trade
🔹 Exit Rules
If 2 lower timeframes reverse direction
➡️ Close trade
Example:
H4 = BUY
H1 + M15 = SELL
➡️ Exit BUY
🔹 Stop Loss Adjustment (Important Addition)
In Conservative mode → use wider SL (e.g. Weekly wick)
In Aggressive mode → use tighter SL (e.g. Daily wick)
🔷 3. HYBRID EA (INDICATOR A + B)
🔹 Master Entry Logic
Trade only when both indicators confirm
✅ BUY:
Indicator A = BUY
Indicator B = BUY
➡️ Open BUY
❌ SELL:
Indicator A = SELL
Indicator B = SELL
➡️ Open SELL
🔹 Strength-Based Entry
Mode
Condition
Conservative
Indicator B = 9 signals aligned
Aggressive
Indicator B = 7+ signals aligned
👉 Applies to both standalone and hybrid mode.
🔹 Filter Priority
Monthly
Weekly
Daily
Indicator B confirmation
🔷 4. NEW WEEK ENTRY LOGIC
At the start of a new week:
Check Monthly direction
Allow trades only in direction of Monthly
➡️ Prevents trading against macro trend
🔷 5. PULLBACK MODE
🔹 Scenario
Monthly = BUY
Weekly = SELL
👉 This is a pullback, not a reversal
🔹 Strategy (Buy the Dip)
Wait for:
Weekly opposite Monthly
Daily returns to align with Monthly
Indicator B confirms
➡️ Open trade in direction of Monthly
SL:
Use Weekly wick opening
TP:
Previous Weekly high
OR RR 1:2+
🔷 6. PAIR SELECTION SYSTEM
🔹 Multi-Symbol Scan
EA scans:
EURUSD, GBPUSD, XAUUSD, etc.
🔹 Scoring System
Condition
Score
Monthly alignment
+3
Weekly alignment
+2
Daily alignment
+2
Indicator B alignment
+3
🔹 Trade Selection
Trade only pairs with score ≥ 7
🔹 Dashboard Output
Pair name
Direction (BUY/SELL)
Signal strength (%)
Mode (Conservative / Aggressive)
🔷 7. RISK MANAGEMENT
🔹 Mode 1: Risk %
1–3% per trade
Auto lot calculation
🔹 Mode 2: Fixed Lot
Manual lot size
🔹 Protection Features
Max trades per pair
Max total trades
Daily loss limit
Spread filter
Optional news filter
🔷 8. EA SETTINGS
🔹 General
Enable Indicator A → true/false
Enable Indicator B → true/false
Hybrid mode → true/false
🔹 Timeframes
Monthly filter → ON/OFF
Weekly TF
Daily TF
Indicator B TF1, TF2, TF3
🔹 Entry
Entry mode → Conservative / Aggressive / Auto
Auto re-entry → true/false
Pullback mode → true/false
🔹 Stop Loss
SL Source → Daily / Weekly / Monthly
Dynamic SL (based on mode) → true/false
Trailing stop → true/false
🔹 Exit
Close on Daily close → true/false
Close on Weekly close → true/false
🔹 Risk
Use Risk % → true/false
Risk value
Use Fixed Lot → true/false
Lot size
🔹 Filters
Max spread
Minimum signal strength
Max trades per pair
🔷 9. FINAL EA LOGIC FLOW
Scan all pairs
Check Monthly → Weekly → Daily alignment
Check Indicator B signals (7 or 9 strength)
Detect Pullback condition
Score each pair
Select best pairs
Execute trade
Apply SL (wick opening)
Manage trade (trail, exit rules)
Re-enter if trend continues
🔥 FINAL IMPROVEMENTS ADDED
Conservative vs Aggressive entry clearly defined
7-signal vs 9-signal logic integrated
SL adapts based on entry strength
Hybrid confirmation tightened
Pullback logic cleaned
EA settings structured for coding