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.
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com TsuiSum.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.
Instruções do autor
Aviso legal
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com TsuiSum.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.