PROTECTED SOURCE SCRIPT
TrendSight

📌 TrendSight — The All-in-One Multi-Timeframe Trend Engine
Key Features & Logic
Multi-Timeframe Trend Confirmation:
Entries are filtered by confirming bullish/bearish alignment across three distinct Supertrend timeframes (e.g., 5-min, 15-min, 45-min, etc.), combined with an EMA and volatility filter, to ensure high-conviction trades that's a powerful combination! Designing the entire strategy around the 15-minute timeframe (M15) and focusing on high-volatility coins maximizes the strategy's effectiveness .
Guaranteed Single-Entry per Signal:
The strategy uses a powerful manual flag and counter system to ensure trades fire only once when a new signal begins. It absolutely prevents immediate re-entry if the signal remains true, waiting instead for the entire trend condition to reset to false.
Dynamic Trailing Stop Loss:
The Stop Loss is set to a moving Supertrend line (current_supertrend), ensuring tight risk management that trails the price as the trade moves into profit.Guaranteed Take Profit (4% Run-up): Uses a precise Limit Order via strategy.exit() to capture profits instantly at a 4% run-up. This ensures accurate profit capture, even on sudden spikes (wicks).
Automated Risk Management:
Position size is dynamically calculated based on a fixed risk percentage (default 2% of equity) relative to the distance to the trailing stop.
🔥 Core Components
1. Adaptive Multi-Timeframe SuperTrend Dashboard
The backbone of mTrendSight is a fully customizable SuperTrend system, enhanced with a multi-timeframe confirmation table displaying ST direction & value.
This compact “Trend Dashboard” provides instant clarity on higher-timeframe direction, trend strength, and market bias.
2. Dynamic Support & Resistance Channels
Automatically detects the strongest support/resistance zones using pivot clustering.
Key Features:
Clustered S/R Channels instead of thin lines
Adaptive width based on recent swings
Breakout markers (optional) for continuation signals
Helps identify structural zones, retest areas, and liquidity pockets
3. Multi-Timeframe Color-Coded EMAs
Plot up to three EMAs, each optionally pulled from a higher timeframe.
Benefits:
Instant visual trend alignment
Bullish/Bearish dynamic color shifts
Precision EMA value table for trade planning
Works perfectly with ST & RSI for multi-layer confirmation
4. Linear Regression Trend Channel
A statistically driven trend channel that measures the most probable path of price action.
Highlights:
Uses Pearson’s R to determine trend reliability
Provides a Confidence Level to judge whether trend slope is credible
Ideal for determining over-extension and mean-reversion zones
5. ATR Volatility Analyzer
A lightweight but powerful volatility classifier using ATR.
Features:
Detects High, Low, or Normal volatility
Clean table display
Helps filter entries during low-energy markets
Strengthens trend-following filters when volatility expands
6. RSI Momentum & Trend Classifier
A significantly improved RSI with multi-layer smoothing and structure-based classification.
Provides:
Bullish / Bearish / Neutral momentum states
Short-term momentum vs long-term RSI trend
Perfect for early trend shifts, pullback entries, and momentum confirmation
⚙️ How the Strategy Works (Execution Logic)
📌 Multi-Timeframe Supertrend + EMA + Volatility Confirmation
Entries are only triggered when:
Multiple Supertrend timeframes align (e.g., 5m + 15m + 45m)
EMA direction aligns with the trend
Volatility conditions (ATR filter) is not Low allow high-probability moves
This ensures strong directional confluence before every trade.
📌 Guaranteed Single-Entry Logic
The strategy uses a flag + counter system to ensure:
Only one entry is allowed per trend signal
Re-entries do not happen until the entire trend condition resets
The Strategy Tester remains clean, without duplicate overlapping trades
This eliminates revenge trades, repeated fills, and choppy overtrading.
📌 Dynamic Supertrend Trailing Stop
Stop Loss is anchored to current Supertrend value, creating:
Automatic trailing
Tight downside control
Protection against deep pullbacks
High responsiveness during volatility expansions
📌 Precision Take-Profit (4% Run-Up Capture)
A dedicated global exit block ensures:
Take Profit triggers exactly at 4% price run-up
Uses strategy.exit() with limit orders to catch spikes (wicks)
Works consistently on all timeframes & assets
📌 Automated Position Sizing (2% Risk Default)
Position size is dynamically calculated based on:
Account Equity
Distance to trailing stop
Configured risk %
This enforces proper risk management without manual adjustments.
📈 How to Interpret Results
Reliable Exits: All exits are globally managed, so stops and take profits trigger accurately on every bar.
Clean Trade History: Because of single-entry logic, backtests show one trade per valid signal.
Consistency: Multi-timeframe logic ensures only high-quality, structured trades.
Key Features & Logic
Multi-Timeframe Trend Confirmation:
Entries are filtered by confirming bullish/bearish alignment across three distinct Supertrend timeframes (e.g., 5-min, 15-min, 45-min, etc.), combined with an EMA and volatility filter, to ensure high-conviction trades that's a powerful combination! Designing the entire strategy around the 15-minute timeframe (M15) and focusing on high-volatility coins maximizes the strategy's effectiveness .
Guaranteed Single-Entry per Signal:
The strategy uses a powerful manual flag and counter system to ensure trades fire only once when a new signal begins. It absolutely prevents immediate re-entry if the signal remains true, waiting instead for the entire trend condition to reset to false.
Dynamic Trailing Stop Loss:
The Stop Loss is set to a moving Supertrend line (current_supertrend), ensuring tight risk management that trails the price as the trade moves into profit.Guaranteed Take Profit (4% Run-up): Uses a precise Limit Order via strategy.exit() to capture profits instantly at a 4% run-up. This ensures accurate profit capture, even on sudden spikes (wicks).
Automated Risk Management:
Position size is dynamically calculated based on a fixed risk percentage (default 2% of equity) relative to the distance to the trailing stop.
🔥 Core Components
1. Adaptive Multi-Timeframe SuperTrend Dashboard
The backbone of mTrendSight is a fully customizable SuperTrend system, enhanced with a multi-timeframe confirmation table displaying ST direction & value.
This compact “Trend Dashboard” provides instant clarity on higher-timeframe direction, trend strength, and market bias.
2. Dynamic Support & Resistance Channels
Automatically detects the strongest support/resistance zones using pivot clustering.
Key Features:
Clustered S/R Channels instead of thin lines
Adaptive width based on recent swings
Breakout markers (optional) for continuation signals
Helps identify structural zones, retest areas, and liquidity pockets
3. Multi-Timeframe Color-Coded EMAs
Plot up to three EMAs, each optionally pulled from a higher timeframe.
Benefits:
Instant visual trend alignment
Bullish/Bearish dynamic color shifts
Precision EMA value table for trade planning
Works perfectly with ST & RSI for multi-layer confirmation
4. Linear Regression Trend Channel
A statistically driven trend channel that measures the most probable path of price action.
Highlights:
Uses Pearson’s R to determine trend reliability
Provides a Confidence Level to judge whether trend slope is credible
Ideal for determining over-extension and mean-reversion zones
5. ATR Volatility Analyzer
A lightweight but powerful volatility classifier using ATR.
Features:
Detects High, Low, or Normal volatility
Clean table display
Helps filter entries during low-energy markets
Strengthens trend-following filters when volatility expands
6. RSI Momentum & Trend Classifier
A significantly improved RSI with multi-layer smoothing and structure-based classification.
Provides:
Bullish / Bearish / Neutral momentum states
Short-term momentum vs long-term RSI trend
Perfect for early trend shifts, pullback entries, and momentum confirmation
⚙️ How the Strategy Works (Execution Logic)
📌 Multi-Timeframe Supertrend + EMA + Volatility Confirmation
Entries are only triggered when:
Multiple Supertrend timeframes align (e.g., 5m + 15m + 45m)
EMA direction aligns with the trend
Volatility conditions (ATR filter) is not Low allow high-probability moves
This ensures strong directional confluence before every trade.
📌 Guaranteed Single-Entry Logic
The strategy uses a flag + counter system to ensure:
Only one entry is allowed per trend signal
Re-entries do not happen until the entire trend condition resets
The Strategy Tester remains clean, without duplicate overlapping trades
This eliminates revenge trades, repeated fills, and choppy overtrading.
📌 Dynamic Supertrend Trailing Stop
Stop Loss is anchored to current Supertrend value, creating:
Automatic trailing
Tight downside control
Protection against deep pullbacks
High responsiveness during volatility expansions
📌 Precision Take-Profit (4% Run-Up Capture)
A dedicated global exit block ensures:
Take Profit triggers exactly at 4% price run-up
Uses strategy.exit() with limit orders to catch spikes (wicks)
Works consistently on all timeframes & assets
📌 Automated Position Sizing (2% Risk Default)
Position size is dynamically calculated based on:
Account Equity
Distance to trailing stop
Configured risk %
This enforces proper risk management without manual adjustments.
📈 How to Interpret Results
Reliable Exits: All exits are globally managed, so stops and take profits trigger accurately on every bar.
Clean Trade History: Because of single-entry logic, backtests show one trade per valid signal.
Consistency: Multi-timeframe logic ensures only high-quality, structured trades.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.