BeiDou TianShu
- Experts
- Versione: 1.3
- Aggiornato: 5 novembre 2026
- Attivazioni: 5
Strategy Mode of the EA
This EA adopts a composite strategy mode of "SAR Breakout + Cross-Cycle Accumulated PnL Martingale". It can be broken down into four core modes:
1. Signal and Entry Mode (Pure Breakout Pending Orders)
Signal Source: Exclusively uses the Parabolic SAR (SAR) indicator flip signals (defined by the K0 bar).
Entry Method: Absolutely no market chasing. The EA places STOP pending orders at the K0 High/Low +/- an Offset (default 50 points). If the price instantly breaks through the target price causing the pending order to fail, the EA enters a retry loop (every 10 seconds, up to 18 times), waiting for a pullback. If the price never retraces, the trade is abandoned.
Anti-Miss Mechanism: If the order fails and enters the retry phase, the retry will be immediately terminated if the SAR reverses again.
2. Capital and Martingale Mode (Cross-Cycle Accumulated PnL Settlement)
This is the most core mode that distinguishes this EA from traditional martingales:
Looking at the Total Account, Not Single Trades: The EA maintains a global variable `Accumulated PnL` to record the total profit/loss of all closed trades.
Loss Adding: As long as the total account is in a loss and the latest closed trade is a loss, the next lot size = previous lot size × 1.52.
No Profit Adding: If the latest closed trade is profitable but the total account hasn't recovered, the next lot size maintains the previous lot size, never blindly increasing it.
Reset on Break-even: Once the accumulated PnL ≥ 0, or a single Take Profit is hit, the martingale sequence is immediately terminated and the lot size resets to the base lot (e.g., 0.02).
Bi-directional Relay: If the Long direction reaches the maximum layers and suffers a loss, it stops going Long. However, when the SAR flips to Short, the Short order directly inherits the amplified lot size (e.g., 0.05) and continues the sequence.
3. Risk Management and Exit Mode (3D Multi-Layer Protection)
Fixed SL/TP: 150 points / 450 points.
SAR Trailing Stop: Once in profit and conditions are met, the Stop Loss starts trailing the SAR (spread is added for Short positions), firmly locking in profits.
Absolute Daily Stop: Any order hitting the 450-point fixed Take Profit will immediately trigger the "Stopped for Today" state. Regardless of SAR flips or manual clicks, the system will reject all new entries for the rest of the day. It only unlocks at 0:00 the next day.
4. Anomaly Recovery and Daily Reset Mode (Power/Network Outage Safe)
EA Restart Takeover: If the EA is closed or disconnected, upon restart it automatically compares historical data. If SAR flipped during the downtime, it will immediately force-close old positions, calculate the carry-over lots according to the rules, and wait for the next signal. If no flip occurred, it perfectly takes over the original pending orders or positions.
Daily Rollover Settlement:
TP Rollover: If yesterday was stopped by Take Profit, everything is completely reset and cleared at 0:00 today.
Loss Rollover: If yesterday carried a losing position, the historical loss and carry-over lots are preserved at 0:00 today to continue recovering, preventing the use of "daily reset" to escape losses.
💡 One-Sentence Summary:
This is an extreme defensive trend-following mode that "prefers missing the trade over chasing the price, adds positions only on losses, reduces lots on profits, resets only upon break-even, and stops trading for the day after any Take Profit."
