Bonnitta Quantum Scalper
- Experts
- 버전: 1.51
Broadly speaking, this Expert Advisor (EA) combines two core strategies: a Breakout Trap to capture initial momentum entries, and a Stop-and-Reverse (SAR) Recovery mechanism to recover from false breakouts, specifically engineered for Netting accounts.
1. Core Concept: Hunting Momentum Breakouts Instead of relying on lagging indicators (such as Moving Averages or RSI) to predict trend direction, this EA reads raw price action. It identifies the highest high and lowest low over a specified number of recent candlesticks (InpLookbackBars ) and places pending order traps on both sides of the market.
2. EA Workflow (4 Execution Phases)
-
Phase 1: Trap Placement & Trailing (Breakout Trap) When no positions are open, the EA places two simultaneous pending orders: a Buy Stop above the recent high (High + InpBreakoutOffset ) and a Sell Stop below the recent low (Low - InpBreakoutOffset ). If price remains within the range and forms a new consolidation structure, the EA dynamically trails both pending orders to follow the latest price action.
-
Phase 2: Execution & Opposite Order Cancellation Once price surges and triggers one of the traps (e.g., the Buy Stop executes into a Buy position), the EA immediately deletes the opposite pending order (Sell Stop) to prevent uncontrolled double exposure.
-
Phase 3: Profit Locking (Aggressive Trailing Stop) If price continues moving in favor of the initial trade and reaches a specific profit threshold (InpTrailingStart ), the EA activates an automated, tight Trailing Stop (InpTrailingStep ). This locks in gains progressively while allowing profits to run during strong trends.
-
Phase 4: Loss Recovery (Netting Stop-and-Reverse Recovery) If the initial breakout turns out to be a false breakout and price reverses against the position by InpReverseZonePoints :
-
The EA automatically closes the losing position and records the realized loss in memory (m_accumulated_loss ).
-
Simultaneously, it opens a new position in the opposite direction with a scaled lot size (Previous Lot × InpLotMultiplier ).
-
During recovery mode, the Trailing Stop is disabled. The EA continuously monitors the combined net profit (Current Position Profit - Accumulated Loss ). As soon as the net profit reaches the specified dollar target (InpRecoveryProfitUSD ), the position is closed and the cycle resets to Phase 1.
-
3. Safety Mechanisms & Risk Management Because reversal strategies with progressive lot sizing carry high risk in choppy markets, this EA is equipped with 5 layers of protection:
-
Maximum Reversal Limit ( InpMaxReverseSteps ): Caps the maximum number of reversals allowed within a single cycle (e.g., up to 4 steps). If this limit is reached, the EA executes a stop-loss to protect the remaining account balance.
-
Maximum Lot Cap ( InpMaxLotSize ): Prevents lot sizes from scaling beyond a safe threshold relative to your capital.
-
Automated Margin Validation ( HasEnoughMargin ): Before opening or reversing a position, the EA calculates the exact margin required. If the account's Free Margin is insufficient (less than 115% of the required margin), the EA cancels the reversal and safely closes the cycle.
-
Spread Filter ( InpMaxSpreadPoints ): Pauses trading operations whenever broker spreads widen beyond normal limits (such as during high-impact news releases).
-
Market Session Filter ( IsMarketOpen ): Automatically suspends order placement and modifications when the market is closed or during daily rollover breaks (such as the daily Gold/commodity break) to prevent server rejections.
4. Ideal vs. Challenging Market Conditions
-
Ideal Conditions: High-momentum markets with clean directional trends (such as the London and New York sessions on XAUUSD or major pairs), where breakouts follow through immediately and are captured by the Trailing Stop.
-
Challenging Conditions: Wide-ranging sideways or choppy (whipsaw) markets, where price repeatedly breaks above resistance and immediately reverses below support, triggering consecutive Stop-and-Reverse cycles
