OPEN-SOURCE SCRIPT

TP-Trend

162
中文
【原理概要】
本指标跳出了传统“仅依赖收盘价”的局限,采用典型价格 HHLC/3$ 作为底层数据源。通过对均线进行二阶平滑处理(EMA of EMA),能比传统双均线更早地发现趋势转折,同时有效过滤震荡市的假突破。

【核心功能】
双重平滑逻辑:$X_2$为典型价格的 6 周期平滑, $X_3$为其二阶 5 周期平滑,捕捉动能加速度。
视觉增强系统: 自动为 K 线着色。红色/棕色代表多头波段,绿色代表空头波段。
信号确认: 亮黄色(Buy)与深蓝色(Sell)柱体精准标记趋势引爆点。

零未来函数: 算法完全基于时序历史数据,信号不漂移,可直接用于实盘参考。

【使用建议】建议配合大周期趋势或成交量指标使用。在日线级别捕捉波段主升浪效果最佳。

English
[Logic]This script utilizes Typical Price (HHLC/3$) instead of standard Close prices to provide a more holistic view of market value. By applying a dual-smoothing EMA process, it identifies trend shifts with reduced lag while maintaining high sensitivity.

[Features]
Trend Coloring: Bars change color based on momentum (Red for Bullish, Green for Bearish).
Actionable Signals: Distinct Yellow (Buy) and Blue (Sell) highlights on crossover bars.
No Repaint: Purely mathematical approach based on historical data.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.