OPEN-SOURCE SCRIPT

Multi-Timeframe Trend Indicator with Signals

350
═══════════════════════════════════════════════════════════════
Multi-Timeframe Trend Indicator with Signals
by Zakaria Safri
═══════════════════════════════════════════════════════════════

⚠️ IMPORTANT DISCLAIMERS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• This indicator may REPAINT on unconfirmed bars
• Signals appear in real-time but may change or disappear
• FOR EDUCATIONAL PURPOSES ONLY - NOT FINANCIAL ADVICE
• Past performance does not guarantee future results
• Always do your own research and use proper risk management
• The Risk Management feature is VISUAL ONLY - does not execute trades
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━


📊 OVERVIEW:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator combines multiple technical analysis tools to help identify
potential trend directions and entry/exit points across different timeframes.
It uses SuperTrend, EMAs, ADX, RSI, and Keltner Channels to generate signals.


🎯 KEY FEATURES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📍 SIGNAL TYPES:
• All Signals: Shows all SuperTrend crossovers
• Filtered Signals: Additional EMA filter for potentially higher quality signals
• Signals use barstate.isconfirmed to reduce (but not eliminate) repainting

📈 TREND ANALYSIS:
• Trend Ribbon: 8 EMAs creating a visual trend direction indicator
• Trend Cloud: EMA 150/250 cloud for long-term trend context
• Chaos Trend Line: Dynamic support/resistance trend line
• Multi-timeframe dashboard showing trend across 8 timeframes (3m to Daily)

📊 TECHNICAL INDICATORS:
• Keltner Channels: Dynamic price channels
• RSI Background: Visual overbought/oversold zones
• Candlestick Coloring: Three modes (CleanScalper/Trend Ribbon/Moving Average)
• ADX-based trend strength analysis for MTF dashboard

🎯 VISUAL TOOLS:
• Order Blocks: Supply/demand zones (optional)
• Channel Breakouts: Pivot-based support/resistance levels
• Reversal Signals: RSI-based potential reversal indicators
• Visual TP/SL Lines: For reference only - does NOT execute trades

📊 DASHBOARD:
• Real-time multi-timeframe trend analysis
• Volatility indicator (Very Low to Very High)
• Current RSI value with color coding
• Customizable position and size


⚙️ SETTINGS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

MAIN SETTINGS:
• Sensitivity: Controls signal frequency (lower = more signals)
• Signal Type: Choose between All Signals or Filtered Signals
• Factor: ATR multiplier for SuperTrend calculation

TREND SETTINGS:
• Toggle Trend Ribbon, Trend Cloud, Chaos Trend, Order Blocks
• Moving Average: Customizable EMA (default 200)

ADVANCED SETTINGS:
• Candlestick coloring with 3 different modes
• Overbought/Oversold background coloring
• Channel breakout levels
• Show/hide signals

RISK MANAGEMENT (VISUAL ONLY):
• ⚠️ Does NOT execute trades automatically
• Shows potential Take Profit levels (TP1, TP2, TP3)
• Shows potential Stop Loss level
• Adjustable TP strength multiplier
• For educational reference only


📖 HOW TO USE:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

1. SIGNAL INTERPRETATION:
• "Buy" signals appear below candles when conditions are met
• "Sell" signals appear above candles when conditions are met
• Wait for bar close confirmation to avoid repainting
• Use multiple timeframes for confluence

2. TREND CONFIRMATION:
• Check the multi-timeframe dashboard for trend alignment
• Use Trend Ribbon for visual trend direction
• Trend Cloud shows longer-term market bias
• Green candles = potential uptrend, Red = potential downtrend

3. ENTRY/EXIT STRATEGY:
• Combine signals with other analysis tools
• Check volatility status before entering trades
• Use support/resistance levels for confirmation
• The visual TP/SL lines are for planning only

4. RISK MANAGEMENT:
• Always use stop losses (indicator shows suggested levels only)
• Position size according to your risk tolerance
• Never risk more than you can afford to lose
• The indicator does NOT manage trades automatically


⚠️ LIMITATIONS & RISKS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

REPAINTING:
• Signals may appear and disappear on unconfirmed bars
• Always wait for bar close before taking action
• Historical performance may look better than real-time results

FALSE SIGNALS:
• No indicator is 100% accurate
• Signals can fail in ranging/choppy markets
• Use additional confirmation methods
• Consider market context and fundamentals

VISUAL TP/SL:
• Lines are for reference/planning only
• Does NOT place or manage actual trades
• You must manually set your own stop losses
• TP levels are calculated estimates, not guarantees


🔧 TECHNICAL DETAILS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

• Version: Pine Script v5
• Overlay: Yes (displays on main chart)
• Anti-repaint measures: Uses barstate.isconfirmed on signals
• Security function: Uses lookahead protection for higher timeframes
• Dynamic requests: Enabled for MTF analysis
• Max labels: 500


📚 COMPONENTS EXPLAINED:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

SUPERTREND:
• Core signal generator using ATR-based bands
• Crossovers indicate potential trend changes
• Adjustable via Sensitivity and Factor inputs

EMA FILTER:
• Uses 200 EMA as trend filter (customizable)
• Filtered signals require price above/below EMA
• Helps reduce false signals in ranging markets

ADX TREND QUALITY:
• Measures trend strength across timeframes
• Used in multi-timeframe dashboard
• Shows Bullish/Bearish/Neutral states

KELTNER CHANNELS:
• Multiple bands showing volatility zones
• Color-coded based on RSI levels
• Helps identify overbought/oversold conditions

ORDER BLOCKS:
• Identifies supply/demand zones
• Based on price structure and pivots
• Can extend to the right for projection


💡 BEST PRACTICES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✓ Use multiple timeframe confirmation
✓ Wait for bar close before acting on signals
✓ Combine with support/resistance analysis
✓ Check overall market conditions
✓ Use proper risk management (1-2% per trade)
✓ Backtest on your specific market/timeframe
✓ Paper trade before using real money
✓ Keep a trading journal
✓ Adjust settings to your trading style

✗ Don't rely solely on this indicator
✗ Don't ignore risk management
✗ Don't trade on unconfirmed signals
✗ Don't overtrade every signal
✗ Don't use without understanding how it works
✗ Don't expect the TP/SL feature to trade for you


📞 SUPPORT & UPDATES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Creator: Zakaria Safri
Version: 4.3 (Compliance Update)

For questions or feedback, please use TradingView's comment section.


⚖️ FINAL DISCLAIMER:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This indicator is provided for EDUCATIONAL and INFORMATIONAL purposes only.
It is NOT financial advice, investment advice, or a recommendation to buy/sell.

Trading involves substantial risk of loss. Past performance, whether actual or
indicated by historical tests of strategies, is not indicative of future results.

The creator assumes NO responsibility for your trading results. You are solely
responsible for your own investment decisions and due diligence.

Always consult with a qualified financial advisor before making investment decisions.

By using this indicator, you acknowledge and accept these risks and limitations.

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.