OPEN-SOURCE SCRIPT
China A-Share Long Trend Resonance System (CLR System)

Description (for TradingView public release)
The China A-Share Long Trend Resonance System (CLR System) is a long-only trend-following strategy designed specifically for A-share equities, where short selling is not assumed in practical retail conditions.
This system focuses on capturing sustained bullish trends by combining multi-factor trend confirmation and momentum resonance across different market conditions. It is built around the principle that strong trends in A-shares are typically driven by alignment of trend structure, momentum strength, and market regime.
Key Features:
Long-only design, fully adapted for A-share market structure
Multi-layer trend confirmation (trend + momentum + volatility filters)
Designed to avoid sideways market noise and reduce whipsaw trades
Emphasizes trend continuation entries rather than prediction
Built-in position management logic (scaling in / scaling out optional)
Suitable for index ETFs and liquid large/mid-cap stocks
Core Logic Philosophy:
The strategy identifies “resonance zones” where multiple technical conditions align, indicating high probability trend continuation. Instead of chasing tops or bottoms, it aims to participate in the middle phase of strong trends.
Market Suitability:
A-share stocks (long-only environment)
Index ETFs (e.g., CSI 300, SSE 50, ChiNext ETF)
Medium to high liquidity instruments
Risk Note:
This strategy does not guarantee profits and should be used with proper risk management. It is designed for systematic trend participation rather than short-term speculation.
The China A-Share Long Trend Resonance System (CLR System) is a long-only trend-following strategy designed specifically for A-share equities, where short selling is not assumed in practical retail conditions.
This system focuses on capturing sustained bullish trends by combining multi-factor trend confirmation and momentum resonance across different market conditions. It is built around the principle that strong trends in A-shares are typically driven by alignment of trend structure, momentum strength, and market regime.
Key Features:
Long-only design, fully adapted for A-share market structure
Multi-layer trend confirmation (trend + momentum + volatility filters)
Designed to avoid sideways market noise and reduce whipsaw trades
Emphasizes trend continuation entries rather than prediction
Built-in position management logic (scaling in / scaling out optional)
Suitable for index ETFs and liquid large/mid-cap stocks
Core Logic Philosophy:
The strategy identifies “resonance zones” where multiple technical conditions align, indicating high probability trend continuation. Instead of chasing tops or bottoms, it aims to participate in the middle phase of strong trends.
Market Suitability:
A-share stocks (long-only environment)
Index ETFs (e.g., CSI 300, SSE 50, ChiNext ETF)
Medium to high liquidity instruments
Risk Note:
This strategy does not guarantee profits and should be used with proper risk management. It is designed for systematic trend participation rather than short-term speculation.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.