Inp_Pyramid_Multiplier = 3.0 // Scale multiplier (probe → main)
Inp_Pyramid_Max_Lots = 2.0 // Hard cap: max lots for any single position
Inp_Pyramid_OnlyProfitable = true // Pyramid only if last position is in profit
Logic:
No open positions: lots = target_lots / 3.0 — a small probe is opened (1/3 of normal)
Position exists: lots = last_volume × 3.0 — scaling up to full size
If OnlyProfitable = true and the last position is in loss → pyramid is blocked
Log:"Pyramid blocked: last position not in profit." / "LOT CAP: 4.50 -> 2.00"
Blocks trading when the current price is below the previous week’s Low on W1. Protects against trading in a structurally bearish trend or during potential crashes.
One of the defining mechanisms of the system. It detects institutional impulses (sudden, violent moves generated by large capital) and immediately changes the system’s behaviour.
Impulse Detection
On every new bar on Inp_Impulse_TF (default M1):
Calculates average range and average volume over the last Inp_Impulse_AvgPeriod (20) candles
current_volume > VolMult × avg_volume (1.5× average volume)
Log:"Institutional Impulse Detected! Activating MUZZLE MODE for 15 mins."
Muzzle Mode — How the System’s Characteristics Change
After an impulse is detected, the system enters Muzzle Mode:
Parameter
Normal Mode
During Impulse (Muzzle Mode)
Min. Smart DI candle body
2 pts
150 pts
CCI block level
Inp_Block_CCI_Level (350)
Inp_Muzzle_CCI_Block_Level (130)
SELL signals
Allowed
Blocked if Channel_Down = 0
Price channel
Standard Dynamic Channel
Muzzle Box (anchored at impulse price)
Key point: When Inp_Muzzle_Channel_Points_Down = 0, the system operates exclusively as BUY ONLY during an impulse — selling is completely blocked. This allows the system to ride the momentum after a breakout move.
Dynamic Muzzle Channel
At the moment an impulse is detected, the system saves the current BID price (g_Muzzle_BasePrice). All subsequent signals must fall within:
Upper: base_price + Muzzle_Channel_Points_Up
Lower: base_price - Muzzle_Channel_Points_Down (or -DBL_MAX when Down = 0)
Muzzle Mode Deactivation
Muzzle Mode expires only when ALL of the following conditions are met: