OPEN-SOURCE SCRIPT

Chanlun - Strokes & Central Zones

205
Chanlun Indicator - Strokes and Central Zones

This indicator implements Chan lun's core concepts:
Bi (Stroke): Basic price movement units formed by local highs and lows
Zhongshu (Central Zone): Overlapping areas formed by at least 3 strokes
Extension Lines: Visual guides for the latest central zone boundaries

Key Features:
Automatic stroke identification based on local extremes
Central zone detection with customizable colors
Extension lines for latest central zone (upper/lower bounds)
Separate colors for strokes within central zones
Price labels on the axis for zone boundaries

Settings:
Max Bars: Maximum K-lines to analyze (default: 4900)
Lookback Period: Period for finding local extremes (default: 5)
Min Gap Bars: Minimum bars between strokes (default: 4)
Customizable colors for strokes, zones, and extension lines

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.