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.
Skrypt tylko na zaproszenie
Tylko użytkownicy zatwierdzeni przez autora mogą uzyskać dostęp do tego skryptu. Musisz złożyć prośbę i uzyskać zgodę na jego użycie. Zazwyczaj jest ona udzielana po dokonaniu płatności. Aby uzyskać więcej informacji, postępuj zgodnie z instrukcjami autora poniżej lub skontaktuj się bezpośrednio z TsuiSum.
TradingView NIE zaleca płacenia za skrypt ani jego używania, jeśli nie masz pełnego zaufania do jego autora i nie rozumiesz, jak działa. Możesz także znaleźć darmowe, open-source'owe alternatywy w naszej sekcji skryptów społecznościowych.
Instrukcje autora
Wyłączenie odpowiedzialności
Skrypt tylko na zaproszenie
Tylko użytkownicy zatwierdzeni przez autora mogą uzyskać dostęp do tego skryptu. Musisz złożyć prośbę i uzyskać zgodę na jego użycie. Zazwyczaj jest ona udzielana po dokonaniu płatności. Aby uzyskać więcej informacji, postępuj zgodnie z instrukcjami autora poniżej lub skontaktuj się bezpośrednio z TsuiSum.
TradingView NIE zaleca płacenia za skrypt ani jego używania, jeśli nie masz pełnego zaufania do jego autora i nie rozumiesz, jak działa. Możesz także znaleźć darmowe, open-source'owe alternatywy w naszej sekcji skryptów społecznościowych.