OPEN-SOURCE SCRIPT
Clean Trend System - HTF Bias Filtered

Clean Trend System - HTF Bias Filtered
Overview
Clean Trend System is a trend-following strategy designed to identify high-probability market moves by combining lower timeframe price action with higher timeframe trend confirmation.
The system filters trades using EMA structure, VWAP, RSI momentum, breakout detection, and an automatic Higher Timeframe (HTF) bias filter to avoid trading against the bigger trend.
Key Features
✅ Automatic HTF Trend Bias
- Automatically selects a higher timeframe based on the chart timeframe.
- Confirms bullish/bearish market direction using HTF EMA alignment.
✅ Multi EMA Trend Structure
- Fast EMA, Slow EMA, and Trend EMA identify market structure.
- Trades are only considered when the trend is aligned.
✅ VWAP & EMA Pullback Entries
- Detects pullbacks into EMA/VWAP zones.
- Looks for continuation entries with confirmation candles.
✅ Breakout Detection
- Includes recent high/low breakout logic.
- Captures momentum continuation moves.
✅ Momentum Filter
- Uses ROC momentum and Z-score logic to identify stronger moves.
- Background shading helps visualize momentum conditions.
✅ RSI Confirmation
- Filters weak signals and helps avoid overextended entries.
✅ Signal Control
- Prevents repeated signals in the same direction.
- Resets when trend conditions change.
Buy Conditions (Simplified)
A BUY signal appears when:
- Lower timeframe trend is bullish
- Higher timeframe bias is not bearish
- Momentum and RSI conditions confirm
- Pullback or breakout setup is detected
Sell Conditions (Simplified)
A SELL signal appears when:
- Lower timeframe trend is bearish
- Higher timeframe bias is not bullish
- Momentum and RSI conditions confirm
- Pullback or breakdown setup is detected
Recommended Usage
- Works best in trending markets.
- Can be used on intraday and swing timeframes.
- Always combine with proper risk management.
Disclaimer
This script is for educational and research purposes only. It is not financial advice. Past performance does not guarantee future results. Always test and adjust settings for your market.
Overview
Clean Trend System is a trend-following strategy designed to identify high-probability market moves by combining lower timeframe price action with higher timeframe trend confirmation.
The system filters trades using EMA structure, VWAP, RSI momentum, breakout detection, and an automatic Higher Timeframe (HTF) bias filter to avoid trading against the bigger trend.
Key Features
✅ Automatic HTF Trend Bias
- Automatically selects a higher timeframe based on the chart timeframe.
- Confirms bullish/bearish market direction using HTF EMA alignment.
✅ Multi EMA Trend Structure
- Fast EMA, Slow EMA, and Trend EMA identify market structure.
- Trades are only considered when the trend is aligned.
✅ VWAP & EMA Pullback Entries
- Detects pullbacks into EMA/VWAP zones.
- Looks for continuation entries with confirmation candles.
✅ Breakout Detection
- Includes recent high/low breakout logic.
- Captures momentum continuation moves.
✅ Momentum Filter
- Uses ROC momentum and Z-score logic to identify stronger moves.
- Background shading helps visualize momentum conditions.
✅ RSI Confirmation
- Filters weak signals and helps avoid overextended entries.
✅ Signal Control
- Prevents repeated signals in the same direction.
- Resets when trend conditions change.
Buy Conditions (Simplified)
A BUY signal appears when:
- Lower timeframe trend is bullish
- Higher timeframe bias is not bearish
- Momentum and RSI conditions confirm
- Pullback or breakout setup is detected
Sell Conditions (Simplified)
A SELL signal appears when:
- Lower timeframe trend is bearish
- Higher timeframe bias is not bullish
- Momentum and RSI conditions confirm
- Pullback or breakdown setup is detected
Recommended Usage
- Works best in trending markets.
- Can be used on intraday and swing timeframes.
- Always combine with proper risk management.
Disclaimer
This script is for educational and research purposes only. It is not financial advice. Past performance does not guarantee future results. Always test and adjust settings for your market.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。