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.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với TsuiSum.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với TsuiSum.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.