OPEN-SOURCE SCRIPT

Ultimate Trend System — Multi-Timeframe State Machine

46
This indicator is built for high-frequency and intraday trading (such as Micro Silver futures) and features advanced multi-timeframe signal logic:

Signal stability: BUY, SELL, and STOP are managed as a state machine. Trade signals appear only when the state changes, preventing clutter and making execution cleaner.

Multi-timeframe filtering: Trade signals on your main chart (e.g., 2-minute) are filtered by the dominant trend from higher timeframes (15min SMA and VWAP). Entry signals only appear when aligned with the higher timeframe trend.

Momentum confirmation: ATR (volatility) and QQE (momentum) must also confirm the trend direction before a signal appears.

STOP state: Only appears after a BUY or SELL state if a reversal or noise situation is detected (such as a fake breakout), helping you step aside during poor conditions.

Fakeout detection: The script identifies fake breakouts to avoid entering trades on unreliable price moves.

Optional SuperTrend module: Enable for additional trend filtering if required.

Easy to tune: All main logic and filters are parameters you can further adjust based on your own strategy tests.

Designed for day trading, trend-following algorithms, and backtesting workflows. Gives clear, uncluttered execution signals only in meaningful market regimes. Test, share your results, and feel free to optimize parameters for your own style!

本脚本针对微型银等高频短线交易场景设计,信号逻辑采用多时间框架趋势过滤 + 动能共振。具体特性如下:

主信号只在状态切换时显示,BUY/SELL/STOP互斥,避免信号堆积,更便于实盘执行。

信号触发条件需同时满足短周期动能(ATR、QQE)及15分钟趋势(SMA、VWAP)过滤,仅在趋势顺势区间出现BUY或SELL。

STOP信号仅在出现实际交易信号后才有可能触发,严格控制观望/退出点,提高策略稳健性。

FAKEOUT逻辑干扰信号,避免假突破和无效行情参与。

可选SuperTrend模块开关,进一步增强趋势识别过滤。

适合日内交易、算法跟随、程序化回测场景。欢迎回测、交流及参数联调优化!

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。