INVITE-ONLY SCRIPT
Updated

Chanlun FBFD pen czsc Channel Chan Theory

81

🏆 Chan Zhong Shuo Chan FBFD Pure Segment Version Indicator - Flagship Edition

Background
A decade of craftsmanship, a significant upgrade
This Chanlun indicator has undergone nearly 10 years of meticulous refinement and continuous optimization. Since its initial design in 2015, it has been validated through actual trading. Now newly upgraded and launched on TradingView, it offers more comprehensive functions and superior performance.

It truly implements all core theories from the original Chanlun text, including a complete system of K-line inclusion, fractal recognition, pen and segment analysis, center theory, pure pen and segment division (classification of the first and second cases in the original text), divergence and reversal, providing professional and comprehensive technical analysis tools for Chanlun enthusiasts in the industry.

Chinese Translation for User Indicator Interface:
● 顶背离: Top Divergence
● 底背离: Bottom Divergence
● 顶背驰: Top Divergence Including Trend Structure
● 底背驰: Bottom Divergence Including Trend Structure

📦 Parameter Settings

● Number of K-lines to calculate: Up to 5000, which is the maximum data available even for free TradingView users
● Pen detail parameters: Old/new pens, sub-high/low pens, high/low pens, strict pens can be adjusted and selected according to the target numbers
● Segment detail parameters: Adjustable
● MA and Bollinger Bands display parameters: Check to display, uncheck to hide as needed
● Center price and pen/segment price display: Check to display, uncheck to hide as needed
● MACD parameters: Can be adjusted as needed, including fast, slow, and signal line period settings
● MA parameters: Default parameters can be manually adjusted
● Pen divergence, segment divergence, pen-segment reversal display: Check to display, uncheck to hide as needed
● Pen-segment divergence and reversal alerts: Disabled by default, can be enabled by checking. Then in TradingView's alert interface, select the indicator in conditions, set "Any alert() function call", set notification type, and create the alert to receive notifications



🔥 Integration of other commonly used indicators and reasons:
✅ Moving Averages: Since Chanlun uses MA overlay analysis, this makes it more convenient for users to analyze trends from different perspectives, so it's essential to add
✅ Bollinger Bands: Bollinger Bands channel, combined with Chanlun, can also provide more perspectives for trend analysis and improve accuracy, so it's also added
✅ MACD: This is an indispensable indicator for analyzing trend strength in Chanlun theory, so it must be integrated for convenient analysis
✅ Chanlun ZSLX pen czsc Channel Chan Theory and Chanlun FBFD pen czsc Channel Chan Theory scripts share some underlying source code and must be integrated because:
The underlying K-line inclusion, MACD divergence and reversal, K-line objects, and pen parts in the original Chanlun text are the same, but the top-level segment and trend recursion division principles, display effects, and functions are significantly different. Additionally, TradingView community has source code quantity restrictions, making it impossible to fully integrate the two versions into one. Therefore, the kxian object returned by the Start_kxian function, the bi object returned by the Start_bi function, the source code for drawing K-line centers in showKxianzsfunc, and the MACD divergence and reversal judgment code in this script will have integrated parts with the same source code.



🎯 Technical Principles
🔥 1. Comprehensive coverage of original Chanlun functions
✅ Multi-level center combination - pen centers, K-line centers, segment centers



● Chanlun K-line centers: The lowest level Chanlun centers
● Chanlun pen centers: Pen center division intervals from the original text, taking the lowest point of the overlapping part as the high point and the highest point of the overlapping part as the low point
● Chanlun segment centers: Segment center division intervals from the original text, taking the lowest point of the segment overlapping part as the high point and the highest point of the segment overlapping part as the low point



✅ Divergence and reversal warning - divergence and reversal algorithm



● Principle: Adopts MACD strength statistics from the original Chanlun text, distinguishes between divergence/reversal in pen structures and segment structures, marks specific values on the graph, differentiates MACD strength between pens and segments. This will be further upgraded with more complex statistics in the future, but currently serves as a reference for the current cycle. Specific analysis still requires multi-cycle strength analysis.



✅ Original two-level pure segmentation - exclusive algorithm



● Principle: Strictly follows segment division from the original text, distinguishing between the first and second cases, as well as special fractal inclusion processing for the second case, and segment rules. Some segments may not end at the highest or lowest points.



✅ Real-time K-line inclusion processing - intelligent recognition of inclusion relationships



● In rising K-lines, take the higher high and higher low values (take the higher among highs)
● In falling K-lines, take the lower high and lower low values (take the lower among lows)



✅ Accurate fractal marking - automatic recognition of top and bottom fractals



● By setting the old/new pen parameter to 2, the high and low points of each top and bottom fractal will be drawn
● Top fractal: Among three K-lines, the middle K-line has a higher high and a higher low than both sides
● Bottom fractal: Among three K-lines, the middle K-line has a lower low and a lower high than both sides



✅ Multi-dimensional pen and segment analysis - complete system of pens and segments



● Old pens: Traditional strict pen definition in Chanlun, consistent with the original text
● New pens: Traditional new pen definition in Chanlun, meeting the relaxed pen conditions in the original text
● Fractal pens: Pens formed by top and bottom fractals, with sensitive price response (many peers mark fractal pens of this cycle as sub-level)
● Segments: This version adopts a recursive approach, treating some pens as segments in certain places. Most places are the same as pure segmentation, but with different line-drawing principles



✅ Multi-level center combination - K-line centers, pen centers, segment centers



● K-line centers: The smallest level Chanlun centers
● Pen centers: Adopt pen center division intervals from the original text, taking the lowest point of the overlapping part as the high point and the highest point of the overlapping part as the low point
● Segment centers: Adopt segment center division intervals from the original text, taking the lowest point of the segment overlapping part as the high point and the highest point of the segment overlapping part as the low point



⚙️ Indicator Features
⚙️ 1. Diversified pen and segment algorithm engine
🎨 Three pen algorithms: "Chanlun old pen", "Chanlun new pen", "top-bottom fractal pen", with more custom pen types to be added later
🔧 Common parameter adjustments: Equal high/low points, highest/lowest point pens, sub-high/low pens, fractal interval judgment, and other refined controls
📊 Dual segment division: Original pure segmentation + large-level segmentation
🎯 Multiple personalized parameter adjustments: Many other different parameters to meet different Chanlun enthusiasts' understanding needs and trading styles



🌟 2. Multi-level intelligent combination system
📈 Synchronous calculation and display: K-line centers, pens, pen centers, segments, large-level segments, segment center linkage analysis
🏗️ Exclusive pure segmentation algorithm: Accurately identifies first and second case segment divisions
🎪 Multi-level center system: Complete coverage of three center levels
📊 Panoramic market analysis: Provides comprehensive market dynamic insights



🎨 3. Professional visual customization
🌈 Custom color schemes - perfectly matching personal chart styles
💰 Price label display - marking of key price levels for pens, segments, and centers
📐 Professional auxiliary tools - practical functions such as moving averages and Bollinger Bands
🎁 MACD - supporting indicator in the sub-chart



⏰ 4. Perfect K-line replay support
🔄 Historical data review - perfectly supports TradingView replay function
📚 Market research tool - enhances historical trend analysis capabilities
🧠 Decision-making ability enhancement - deepens market insight and judgment level



📦 Product Versions
🥇 Version 1: Professional Segmentation Edition
Suitable for: Traditional Chanlun enthusiasts pursuing classic segmentation algorithms
Core functions:
🔸 Multiple pen algorithms: Fractal pens, new pens, old pens, sub-high/low pens, highest/lowest pens
🔸 Pen and segment detail adjustments: Massive parameters supporting various pen division schemes
🔸 Complete center system: K-line centers, pen centers, segment centers
🔸 Intelligent warning system: Divergence and reversal prompts and alarm functions
🔸 Recursive large levels: Current level and large-level segmentation analysis



**📊 [View effect diagram]
snapshot



💡 Peer comparison: The "professional version" functions of other platforms are just basic configurations here



🎊 Experience now and start your professional Chanlun analysis journey!



Pre-sales note: The Chan Zhong Shuo Chan theory is relatively complex. The software tries its best to implement the functions described in the original text, but there may still be some flaws that cannot be handled perfectly. These will be gradually improved in the future. Customers who are concerned about this can try it for a few days first, purchase it if they find it suitable, or treat it as a test if not. We welcome everyone to feedback problems and bugs, and the shopkeeper will update, modify, and optimize in the future when available.



1. K-line inclusion from the original text
snapshot
2. Pen and segment multi-level divergence and reversal prompts
snapshot
3. More than three types of pens that can be adjusted
snapshot
4. Including pen and segment area strength statistics + center high and low price display
snapshot
5. Three-level center (K-line center, pen center, segment center) detailed analysis
snapshot
6. Multiple moving averages display
snapshot
7. Commonly used superimposed Bollinger Bands
snapshot
8. Original text segment division rules with 2-level segments
snapshot
9. Some alarm functions designed, including divergence and reversal, with more to be added in the future
10. A total of dozens of optional parameter settings
11. Free trial

🏆 缠中说禅FBFD 纯分段版指标 - 旗舰版

背景
十年匠心,重磅升级
这套缠中说禅指标历经近10年的精心打磨与持续优化,从2015年初版设计至今,已经过实战验证。现全新升级登陆TradingView,功能更加完善,性能更加卓越。
真正实现了缠论原文中的所有核心理论,包括K线包含、分型识别、笔段分析、中枢理论、 纯分笔分段(原文第一种和第二种情况分类)、背离背驰等完整体系,为缠论爱好者提供业界专业、全面的技术分析工具。


📦参数设置
- 计算K线数量:最多计算5000根,免费tradingview用户也只能这么多数据
- 笔细节参数:新旧笔、次高低点笔、最高低点笔、严格笔 可以调整可按标的数字选
● - 线段细节参数: 调整
- 显示均线和布林线参数:根据需要设置打钩就是显示,取消打钩就是隐藏
- 显示中枢价格和笔段价格:根据需要设置打钩就是显示,取消打钩就是隐藏
- macd参数:可以根据自己需要调整参数 快 慢 信号线周期设置
- 均线参数:默认参数可以自己手动调整
- 显示笔背离、段背离、笔段背驰:根据需要设置打钩就是显示,取消打钩就是隐藏
- 笔段背离背驰报警:默认关闭可以设置打钩开启,然后在tradingview的警报界面,条件里选择指标,设置:任何alert()函数调用,再设置通知类型,然后创建报警就可以收到报警

🔥整合其他常用指标和原因:
✅均线:因为缠论里是有使用均线叠加分析,这种更方便用户从不同视角分析走势,所以必须增加
✅布林线:布林线通道,结合缠论,也可以更多的视角分析走势,提高准确度,所以也增加了
✅macd:这个是缠论分析理论里必不可少的分析走势力度的指标,所以也必须整合进来方便分析
✅Chanlun ZSLX pen czsc Channel Chan Theory这个脚本和Chanlun FBFD pen czsc Channel Chan Theory这个脚本有些底层的源码是一样的必须整合原因:
因为缠论原文底层的K线包含、macd背离背驰、K线对象和笔部分都是一样的,但是顶层的线段和走势递归两种划分原理和显示效果和功能是有很大区别,并且tradingview社区的源码量有限制,导致也无法两个版本划线完全整合成一个,所以,这个脚本里的Start_kxian函数返回的kxian对象、 Start_bi函数返回的bi 对象 、showKxianzsfunc画K线中枢部分的源码、macd背离背驰判断部分代码,会有一样的整合部分源码
🎯 技术原理
🔥 1. 全方位缠论原文功能覆盖
● ✅ 多级中枢联立 - 笔中枢、K线中枢、线段中枢
○ - 缠论K线中枢:最低级别的缠论中枢
- 缠论笔中枢:原文的笔中枢划分区间,高点取重叠部分的最低点,低点取重叠部分最高点
- 缠论线段中枢:原文的线段中枢划分区间,高点取线段重叠部分的最低点,低点取线段重叠部分最高点
● ✅ 背离背驰预警 - 背离背驰算法
○ - 原理:采用缠论原文的macd力度统计,区分笔结构的背离背驰和段结构的背离背驰,并且在图形上标上具体数值,区分笔和段的macd力度,后期这个还要继续升级更复杂的统计,仅做本周期的参考,具体也是要多周期力度分析


● ✅ 原文两级别纯分段 - 独家算法
- 原理:严格按原文的线段划分,区分第一种情况和第二种情况,以及特殊的第二种情况分型包含处理,线段规则,有的地方可能不是结束在最高最低点

● ✅ 实时K线包含处理 - 智能识别包含关系
○ - 上涨K线中取高点高值、低点高值,高高取高
- 下跌K线中取高点低值、低点低值,低低取低
● ✅ 精准分型标记 - 顶底分型自动识别
○ - 通过新旧笔参数设置2,会画出每个顶底分型高低点
○ - 顶分型:三根k线中,中间K线高点高于两侧K线,低点也高于两侧
- 底分型:三根k线中,中间K线低点低于两侧K线,高点也低于两侧
● ✅ 多维笔段分析 - 笔、线段完整体系
○ - 老笔:传统缠论严格笔定义,符合原文
- 新笔:传统缠论新笔定义,符合原文宽松笔条件
- 分型笔:顶底分型就成笔,价格反应比较敏锐(同行很多人把本周期分型笔标成次级别)
○ - 线段:这个版本采用递归思路,有的地方一笔处理成段,大部分地方跟纯分段一样,但是划线原理不同
● ✅ 多级中枢联立 - K线中枢、笔中枢、线段中枢
○ - K线中枢:最小级别的缠论中枢
- 笔中枢:采用原文的笔中枢划分区间,高点取重叠部分的最低点,低点取重叠部分最高点
- 线段中枢:采用原文的线段中枢划分区间,高点取线段重叠部分的最低点,低点取线段重叠部分最高点
⚙️ 指标特点
⚙️ 1. 多样化笔段算法引擎
● 🎨 三种笔算法: "缠论旧笔"、"缠论新笔"、"顶底分型笔",以及后面会增加更多自定义类型笔选择
● 🔧 常见参数调节: 等高低点、最高低点笔、次高低笔、分型区间判断等精细化控制
● 📊 双重段划分: 原文纯分段 +大级别分段
● 🎯 超多个性化参数调整: 还有很多其他不同参数,满足不同缠友的理解需求与交易风格
🌟 2. 多级别智能联立系统
● 📈 同步计算显示: K线中枢、笔、笔中枢、线段、大级别线段、线段中枢联动分析
● 🏗️ 独家纯分段算法: 精确识别第一种、第二种情况线段划分
● 🎪 多级中枢体系: 三重中枢级别完整覆盖
● 📊 全景市场分析: 提供全面的市场动态洞察
🎨 3. 专业视觉定制
● 🌈 自定义配色方案 - 完美匹配个人图表风格
● 💰 价格标识显示 - 笔、段、中枢关键价位标注
● 📐 专业辅助工具 - 均线、布林线等实用功能
● 🎁 MACD - 配套附图指标
⏰ 4. 完美K线回放支持
● 🔄 历史数据回顾 - 完美支持TradingView回放功能
● 📚 市场研究利器 - 提升历史走势分析能力
● 🧠 决策能力增强 - 深化市场洞察与判断水平

📦 产品版本
🥇 版本一:专业分段版
适合:传统缠论爱好者,追求经典分段算法
核心功能:
● 🔸 多种笔算法: 分型笔、新笔、旧笔、次高低点笔、最高低点
● 🔸 笔段细节调整: 海量参数支持各种笔划分方案
● 🔸 完整中枢体系: K线中枢、笔中枢、段中枢
● 🔸 智能预警系统: 背离背驰提示及报警功能
● 🔸 递归大级别: 本级别、大级别分段分析
**📊[查看效果图]
snapshot
💡 同行对比: 其他平台的"专业版"功能,在我们这里只是基础配置


🎊 立即体验,开启专业缠论分析之旅!
售前说明:缠中说禅理论,相对比较复杂,软件尽量实现原文的功能,但是也难免有些瑕疵地方,无法处理到位,这边后期会陆续完善,介意的客户可以先试用几天,觉得合适再买,不合适就当测试下,欢迎大家反馈问题和bug,掌柜有空会后期更新修改和优化

1.原文的K线包含
snapshot

2.笔段多级别背离背驰提示
snapshot

3.超过三种笔可以调整
snapshot


4.包含笔段面积力度统计+中枢高低点价格显示
snapshot

5.三级别中枢(K线中枢 笔中枢 段中枢)精细分析
snapshot

6.多个均线显示
snapshot

7.常用叠加布林
snapshot

8.原文线段划分规则,并且做2级别段
snapshot

9.设计了一些报警功能,背离背驰等,后期还会陆续完善

10.总共几十个可选参数设置

11.免费试用
Release Notes
Updated pen details and colors, as well as set strict pen and more detail optimizations

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.