PROTECTED SOURCE SCRIPT
Telah dikemas kini Trend Tracking Signal System

一款适合A股的交易决策工具,其核心逻辑可以拆解为以下四个维度:
1. 动能过滤:趋势双线 (Kinetic Dual-Lines)
系统不直接使用原始价格,而是通过线性回归斜率 (Slope) 对 EMA 进行修正。
买线 (Buy Line):极短周期的 EMA,反应瞬时价格重心。
卖线 (Sell Line):核心所在。它计算了 21 周期内的价格斜率,并外推 20 个周期。
原理:如果价格上涨但斜率放缓,卖线会迅速上移,导致买线跌破卖线(变蓝),从而在暴跌前提前离场。
视觉反馈:
黄色K线:买线上穿卖线,趋势确立。
蓝色K线:买线下穿卖线,趋势终结。
2. 形态捕捉:底背离 (Bottom Divergence)
逻辑:代码中通过 ff (EMA 3) 与 ma15 (EMA 21) 的交叉来定义。
实战意义:当股价经历长期下跌后,短期均线(3日)强力扭转上穿中期均线(21日),意味着空头动能枯竭。
显示:图表底部会标注 “底背离” 标签,这通常是左侧交易者的“潜伏”信号。
3. 仓位管理:跟进与加码 (Pyramiding Logic)
这是本系统最独特的逻辑,它通过统计 55日新高 (HHV 55) 后的表现来决定是否加仓:
“跟” (跟进信号 - B1):
触发条件:股价放量突破 55 日最高点,且之前没有出现过止损信号。
含义:代表行情进入“右侧确认为真突破”阶段,适合在第一波回踩时进场。
“加” (多级加码 - B2/B3):
触发条件:在出现“跟”信号后,股价持续走强,且突破次数在 3-4 次以内。
含义:这是主升浪的标志。系统通过计数器 countBB 确保你不会在趋势末端盲目加仓,只在趋势爆发力最强的阶段提示“加”,实现利润滚雪球。
4. 环境感知:四维均线矩阵 (Market Matrix)
除了买卖线,图表上还有四条辅助线帮助判断环境:
主力 (Smart Money):红色线,代表中期成本重心。
操盘 (Operator):青色粗线,是波段的“生命线”,只要价格在其上方,皆可持股。
界点 (Boundary):洋红色线,20日均线,多空分水岭。
绿降 (Momentum Drop):绿色线,这是一个加速衰减公式。当绿线位于上方时,说明下跌惯性极大。
信号/现象 交易动作 逻辑背景
出现“底背离” 轻仓试探 跌势放缓,可能有反弹,适合左侧埋伏。
K线变黄 + “买入” 标准建仓 核心趋势转暖,买卖线完成金叉。
标签“跟”出现 确认持仓 确认有效突破 55 日压力位,趋势进入成长期。
标签“加”出现 重仓/加仓 进入主升浪,多头排列极其强劲。
K线变蓝 + “卖出” 清仓离场 动能斜率反转,趋势彻底走坏。
请注意:本策略仅供参考学习,请勿直接实盘,市场没有万金油指标。
投资有风险,入市需谨慎
1. The Kinetic Core
The system uses Linear Regression Slope to refine standard EMAs.
Trend Bars: When the "Buy Line" (Fast EMA) crosses the "Sell Line" (Slope-Adjusted EMA), candlesticks turn Yellow (Bullish) or Blue (Bearish). This slope-adjustment helps filter out whipsaws in choppy markets.
2. Bottom Divergence
Detected via the EMA(3) and EMA(21) relationship. It flags potential market bottoms where selling pressure is exhausted, providing an early entry hint for contrarian traders.
3. Pyramiding: "Follow" (跟) & "Add" (加)
This is a sophisticated position-sizing engine:
"Follow" (跟): Triggered upon a valid 55-day high breakout. It signifies the transition from a breakout to an established trend.
"Add" (加): These are secondary and tertiary buy signals during the Impulse Wave. The system counts the number of successful breakouts to ensure you are adding positions during the most profitable phase, not at the trend's end.
4. Market Matrix
Smart Money (Red): Tracks institutional cost basis.
Operational Line (Cyan): The "Mainline" of the swing; stay long as long as price holds above.
Pivot Point (Fuchsia): The 20-period boundary between bulls and bears.
1. 动能过滤:趋势双线 (Kinetic Dual-Lines)
系统不直接使用原始价格,而是通过线性回归斜率 (Slope) 对 EMA 进行修正。
买线 (Buy Line):极短周期的 EMA,反应瞬时价格重心。
卖线 (Sell Line):核心所在。它计算了 21 周期内的价格斜率,并外推 20 个周期。
原理:如果价格上涨但斜率放缓,卖线会迅速上移,导致买线跌破卖线(变蓝),从而在暴跌前提前离场。
视觉反馈:
黄色K线:买线上穿卖线,趋势确立。
蓝色K线:买线下穿卖线,趋势终结。
2. 形态捕捉:底背离 (Bottom Divergence)
逻辑:代码中通过 ff (EMA 3) 与 ma15 (EMA 21) 的交叉来定义。
实战意义:当股价经历长期下跌后,短期均线(3日)强力扭转上穿中期均线(21日),意味着空头动能枯竭。
显示:图表底部会标注 “底背离” 标签,这通常是左侧交易者的“潜伏”信号。
3. 仓位管理:跟进与加码 (Pyramiding Logic)
这是本系统最独特的逻辑,它通过统计 55日新高 (HHV 55) 后的表现来决定是否加仓:
“跟” (跟进信号 - B1):
触发条件:股价放量突破 55 日最高点,且之前没有出现过止损信号。
含义:代表行情进入“右侧确认为真突破”阶段,适合在第一波回踩时进场。
“加” (多级加码 - B2/B3):
触发条件:在出现“跟”信号后,股价持续走强,且突破次数在 3-4 次以内。
含义:这是主升浪的标志。系统通过计数器 countBB 确保你不会在趋势末端盲目加仓,只在趋势爆发力最强的阶段提示“加”,实现利润滚雪球。
4. 环境感知:四维均线矩阵 (Market Matrix)
除了买卖线,图表上还有四条辅助线帮助判断环境:
主力 (Smart Money):红色线,代表中期成本重心。
操盘 (Operator):青色粗线,是波段的“生命线”,只要价格在其上方,皆可持股。
界点 (Boundary):洋红色线,20日均线,多空分水岭。
绿降 (Momentum Drop):绿色线,这是一个加速衰减公式。当绿线位于上方时,说明下跌惯性极大。
信号/现象 交易动作 逻辑背景
出现“底背离” 轻仓试探 跌势放缓,可能有反弹,适合左侧埋伏。
K线变黄 + “买入” 标准建仓 核心趋势转暖,买卖线完成金叉。
标签“跟”出现 确认持仓 确认有效突破 55 日压力位,趋势进入成长期。
标签“加”出现 重仓/加仓 进入主升浪,多头排列极其强劲。
K线变蓝 + “卖出” 清仓离场 动能斜率反转,趋势彻底走坏。
请注意:本策略仅供参考学习,请勿直接实盘,市场没有万金油指标。
投资有风险,入市需谨慎
1. The Kinetic Core
The system uses Linear Regression Slope to refine standard EMAs.
Trend Bars: When the "Buy Line" (Fast EMA) crosses the "Sell Line" (Slope-Adjusted EMA), candlesticks turn Yellow (Bullish) or Blue (Bearish). This slope-adjustment helps filter out whipsaws in choppy markets.
2. Bottom Divergence
Detected via the EMA(3) and EMA(21) relationship. It flags potential market bottoms where selling pressure is exhausted, providing an early entry hint for contrarian traders.
3. Pyramiding: "Follow" (跟) & "Add" (加)
This is a sophisticated position-sizing engine:
"Follow" (跟): Triggered upon a valid 55-day high breakout. It signifies the transition from a breakout to an established trend.
"Add" (加): These are secondary and tertiary buy signals during the Impulse Wave. The system counts the number of successful breakouts to ensure you are adding positions during the most profitable phase, not at the trend's end.
4. Market Matrix
Smart Money (Red): Tracks institutional cost basis.
Operational Line (Cyan): The "Mainline" of the swing; stay long as long as price holds above.
Pivot Point (Fuchsia): The 20-period boundary between bulls and bears.
Nota Keluaran
一款适合A股的交易决策工具,其核心逻辑可以拆解为以下四个维度:1. 动能过滤:趋势双线 (Kinetic Dual-Lines)
系统不直接使用原始价格,而是通过线性回归斜率 (Slope) 对 EMA 进行修正。
买线 (Buy Line):极短周期的 EMA,反应瞬时价格重心。
卖线 (Sell Line):核心所在。它计算了 21 周期内的价格斜率,并外推 20 个周期。
原理:如果价格上涨但斜率放缓,卖线会迅速上移,导致买线跌破卖线(变蓝),从而在暴跌前提前离场。
视觉反馈:
黄色K线:买线上穿卖线,趋势确立。
蓝色K线:买线下穿卖线,趋势终结。
2. 形态捕捉:底背离 (Bottom Divergence)
逻辑:代码中通过 ff (EMA 3) 与 ma15 (EMA 21) 的交叉来定义。
实战意义:当股价经历长期下跌后,短期均线(3日)强力扭转上穿中期均线(21日),意味着空头动能枯竭。
显示:图表底部会标注 “底背离” 标签,这通常是左侧交易者的“潜伏”信号。
3. 仓位管理:跟进与加码 (Pyramiding Logic)
这是本系统最独特的逻辑,它通过统计 55日新高 (HHV 55) 后的表现来决定是否加仓:
“跟” (跟进信号 - B1):
触发条件:股价放量突破 55 日最高点,且之前没有出现过止损信号。
含义:代表行情进入“右侧确认为真突破”阶段,适合在第一波回踩时进场。
“加” (多级加码 - B2/B3):
触发条件:在出现“跟”信号后,股价持续走强,且突破次数在 3-4 次以内。
含义:这是主升浪的标志。系统通过计数器 countBB 确保你不会在趋势末端盲目加仓,只在趋势爆发力最强的阶段提示“加”,实现利润滚雪球。
4. 环境感知:四维均线矩阵 (Market Matrix)
除了买卖线,图表上还有四条辅助线帮助判断环境:
主力 (Smart Money):红色线,代表中期成本重心。
操盘 (Operator):青色粗线,是波段的“生命线”,只要价格在其上方,皆可持股。
界点 (Boundary):洋红色线,20日均线,多空分水岭。
绿降 (Momentum Drop):绿色线,这是一个加速衰减公式。当绿线位于上方时,说明下跌惯性极大。
信号/现象 交易动作 逻辑背景
出现“底背离” 轻仓试探 跌势放缓,可能有反弹,适合左侧埋伏。
K线变黄 + “买入” 标准建仓 核心趋势转暖,买卖线完成金叉。
标签“跟”出现 确认持仓 确认有效突破 55 日压力位,趋势进入成长期。
标签“加”出现 重仓/加仓 进入主升浪,多头排列极其强劲。
K线变蓝 + “卖出” 清仓离场 动能斜率反转,趋势彻底走坏。
请注意:本策略仅供参考学习,请勿直接实盘,市场没有万金油指标。
投资有风险,入市需谨慎
1. The Kinetic Core
The system uses Linear Regression Slope to refine standard EMAs.
Trend Bars: When the "Buy Line" (Fast EMA) crosses the "Sell Line" (Slope-Adjusted EMA), candlesticks turn Yellow (Bullish) or Blue (Bearish). This slope-adjustment helps filter out whipsaws in choppy markets.
2. Bottom Divergence
Detected via the EMA(3) and EMA(21) relationship. It flags potential market bottoms where selling pressure is exhausted, providing an early entry hint for contrarian traders.
3. Pyramiding: "Follow" (跟) & "Add" (加)
This is a sophisticated position-sizing engine:
"Follow" (跟): Triggered upon a valid 55-day high breakout. It signifies the transition from a breakout to an established trend.
"Add" (加): These are secondary and tertiary buy signals during the Impulse Wave. The system counts the number of successful breakouts to ensure you are adding positions during the most profitable phase, not at the trend's end.
4. Market Matrix
Smart Money (Red): Tracks institutional cost basis.
Operational Line (Cyan): The "Mainline" of the swing; stay long as long as price holds above.
Pivot Point (Fuchsia): The 20-period boundary between bulls and bears.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.