CA786 Long Signal

Based on the provided PDF attachments, I've designed a TradingView strategy script in Pine Script. The strategy focuses on the "支持阻力會被尊重" (Support/Resistance Holds) playbook, also known as CA786, with an option to use 0.85 for rapid pullbacks as discussed in the improvements (e.g., from "支持阻力會被尊重 4.pdf"). Key elements extracted from the documents:
Core Logic: Identify trends and pullbacks in an uptrend (buy) or downtrend (sell). Enter on pullbacks to the confluence of a Higher Timeframe (HTF) Congestion Area (CA, a narrow consolidation range) and a Lower Timeframe (LTF, current chart) Fibonacci retracement at 0.786 or 0.85.
Congestion Area (CA): A narrow-range consolidation after a strong impulse move (straight-line advance/decline without significant pullbacks). From documents like "支持阻力會被尊重 - Playbook 實例.pdf" and "支持阻力會被尊重.整理區的選擇.pdf", prioritize the first CA for higher success rates (85% in uptrends per Bulkowski's backtests). Automatically detected as periods of low volatility (range < ATR threshold).
Fib Levels: 0.786 as primary (risk-reward optimized); 0.85 for rapid pullbacks (e.g., "剎車距離" in rapid corrections, calculated as ≈0.857 from 1/3 between 1 and 0.786).
Trend Requirement: Impulse move after CA must be steep/straight-line (no major pullbacks), as per checklists in multiple files.
Multi-Timeframe: LTF = 5m (as specified); HTF user-input (default 15m or 30m for context).
Entry: At CA + Fib confluence. Buy in uptrends, sell in downtrends.
Stop Loss: Bottom of the impulse wave (prior pivot low for longs, high for shorts).
Targets: #1 = Prior high/low (rebound); #2 = 1.618 extension (new extremes), as in playbooks.
Filters: Only trade in trend direction (using EMA). Avoid if not straight-line impulse. Bonus: Big candle start to impulse increases odds.
Applicability: All markets/timeframes, but tuned for 5m charts. Handles longs/shorts symmetrically.
Limitations: CA detection is automated but approximate (uses volatility filter); real-world use may require manual confirmation. Backtest on your asset.
Based on the provided PDF attachments, I've designed a TradingView strategy script in Pine Script. The strategy focuses on the "支持阻力會被尊重" (Support/Resistance Holds) playbook, also known as CA786, with an option to use 0.85 for rapid pullbacks as discussed in the improvements (e.g., from "支持阻力會被尊重 4.pdf"). Key elements extracted from the documents:
Core Logic: Identify trends and pullbacks in an uptrend (buy) or downtrend (sell). Enter on pullbacks to the confluence of a Higher Timeframe (HTF) Congestion Area (CA, a narrow consolidation range) and a Lower Timeframe (LTF, current chart) Fibonacci retracement at 0.786 or 0.85.
Congestion Area (CA): A narrow-range consolidation after a strong impulse move (straight-line advance/decline without significant pullbacks). From documents like "支持阻力會被尊重 - Playbook 實例.pdf" and "支持阻力會被尊重.整理區的選擇.pdf", prioritize the first CA for higher success rates (85% in uptrends per Bulkowski's backtests). Automatically detected as periods of low volatility (range < ATR threshold).
Fib Levels: 0.786 as primary (risk-reward optimized); 0.85 for rapid pullbacks (e.g., "剎車距離" in rapid corrections, calculated as ≈0.857 from 1/3 between 1 and 0.786).
Trend Requirement: Impulse move after CA must be steep/straight-line (no major pullbacks), as per checklists in multiple files.
Multi-Timeframe: LTF = 5m (as specified); HTF user-input (default 15m or 30m for context).
Entry: At CA + Fib confluence. Buy in uptrends, sell in downtrends.
Stop Loss: Bottom of the impulse wave (prior pivot low for longs, high for shorts).
Targets: #1 = Prior high/low (rebound); #2 = 1.618 extension (new extremes), as in playbooks.
Filters: Only trade in trend direction (using EMA). Avoid if not straight-line impulse. Bonus: Big candle start to impulse increases odds.
Applicability: All markets/timeframes, but tuned for 5m charts. Handles longs/shorts symmetrically.
Limitations: CA detection is automated but approximate (uses volatility filter); real-world use may require manual confirmation. Backtest on your asset.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact TsuiSum directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact TsuiSum directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.