DG Market Structure (Inspired By Deadcat)MS Indicator taken from Deadcat and enhanced a little bit
I added CHoCH and BOS to better tell the story of why price is moving a certain way. Also made a lot more of the values Input based for testing.
I tried to add in retracement values on the MTF chart but I don't think the math is right, maybe someone can figure out the math.
Multitimeframe
Average Daily Range [Blaz]Version 1.0 – Published October 2025: Initial release
1. Overview & Purpose
The Average Daily Range is an advanced volatility assessment tool designed to give traders a clear, real-time view of the market's expected daily movement. It calculates the average range between daily highs and lows over a user-defined historical period and projects this average onto the current trading session.
By visualising the potential high and low boundaries for the day, this indicator assists in setting realistic profit targets, managing risk effectively, and identifying when price action is becoming overextended relative to its recent volatility profile. It is an essential tool for day traders and swing traders across all markets, including Forex, Stocks, Crypto, Futures, and Commodities.
2. Core Functionality & Key Features
The indicator provides a dynamic, multi-faceted analysis of daily volatility:
Historical ADR Calculation: Automatically computes the Average Daily Range based on the specified number of previous trading days (configurable from 1 to 20).
Real-Time Range Tracking: Monitors and displays the current day's live price range as it develops.
Percentage Used Metric: Shows the percentage of the historical ADR that the current day's range has already consumed, providing an immediate gauge of remaining volatility potential.
Remaining Range Projection: Visually highlights the potential upward and downward movement remaining to meet the average range, displayed as semi-transparent areas on the chart.
Daily Open Reference: Plots customisable vertical separation lines and horizontal price lines at the daily open to clearly anchor the current session's price action.
3. Visual Components & Analytical Insights
A fully configured Average Daily Range setup displays several key analytical components that work together to provide a comprehensive volatility overview.
3.1. Information Table
A highly customizable data table provides a concise summary of all critical metrics at a glance:
Historical Ranges: Displays the individual daily ranges for the selected lookback period.
ADR Value: The calculated average range.
Today's Range: The live, developing range for the current session.
% Used: A colour-coded percentage (turning orange upon exceeding 100% and red upon exceeding 150%) showing how much of the average volatility has been consumed.
3.2. Visual Range Projections
Remaining Range Zones: When the current day's range is below the historical average, semi-transparent zones extend from the current day's extreme high and low, illustrating the additional movement required to reach the ADR. This provides an instant visual cue for potential target zones.
Daily Open Markers: Clean, customisable lines mark the start of each trading day (vertical line) and the daily open price (horizontal line), helping to contextualise intraday price moves.
4. Input Parameters and Settings
4.1. General Settings
Lookback: Set the number of days used to calculate the Average Daily Range (1-20).
Set Alert: Configure alerts to be notified when the current day's range consumes a significant portion (e.g., 100% or more) of the historical ADR.
4.2. Table Customization
Visibility & Style: Toggle the table and historical data on/off. Fully customise the header and body colours, text colours, border style, and font sizes.
Placement & Orientation: Precisely position the table anywhere on the chart (Top/Bottom/Centre, Left/Right) and choose between Horizontal or Vertical layout to best suit your chart layout.
4.3. Visual Style Controls
Remaining Range: Toggle the projection zones on/off and customise their colour and transparency.
Daily Open Markers: Independently control the visibility, colour, style, and width of the daily separation line and the open price line.
5. Protected Logic & Original Design
The Average Daily Range indicator incorporates proprietary logic for efficiently tracking intraday extremes, managing historical data arrays, and dynamically rendering visual elements. The closed-source nature of this tool protects the author's original code structure and optimisation techniques, particularly the real-time area fill projection logic for the remaining daily range and the dynamic table management system. This ensures the indicator remains performant and reliable while being freely accessible to the entire TradingView community.
6. Disclaimer & Terms of Use
This indicator, titled Average Daily Range , has been independently developed by the author. The code and its structural logic are original and were written entirely from scratch to reflect a unique and efficient approach to volatility analysis. The internal mechanics were written from scratch and are not based on any publicly available script or third-party code.
This tool is provided solely for educational and informational purposes. It is not intended as financial advice, investment guidance, or a specific recommendation to buy or sell any financial instrument. The indicator is designed to assist with technical analysis based on volatility but does not guarantee accuracy or profitability.
Trading financial markets involves significant risk, including the possibility of loss of capital. By using this indicator, you acknowledge and accept that you are solely responsible for any decisions you make and for all trading outcomes. No part of this script should be considered a signal or assurance of success in the market.
HTF Supply & Demand Zones 📊 Overview
Advanced supply and demand zone indicator that automatically detects institutional-level price zones on higher timeframes and dynamically adapts zone colors based on price position. Zones below price act as demand (support) and zones above price act as supply (resistance).
✨ Key Features
🎯 Dynamic Zone Recognition
- Smart Color Adaptation: Zones automatically change from demand (green) to supply (red) when price crosses them
- Higher Timeframe Analysis: Detect zones from any timeframe while trading on lower timeframes
- Base/Blast Pattern Detection**: Identifies strong institutional zones using base-blast candle methodology
- Automatic Zone Flipping: Broken demand zones become supply and vice versa
📈 Zone Detection Method
Uses the proven Base & Blast candle pattern:
- Base Candle: Small consolidation candle with minimal wick
- Blast Candle: Strong momentum candle breaking from the base
- Customizable Ratio: Adjust base/blast body size ratio (default 8:1)
- Wick Filter: Ensures clean base candles for higher probability zones
🎨 Visual Features
- Clean Zone Boxes: Extended zones with customizable colors and transparency
- Smart Labels: Display zone type and touch count
- Touch Counter: Track how many times price has tested each zone
- Info Dashboard: Real-time statistics in top-right corner
⚙️ Zone Management
- Auto-Delete After X Touches**: Remove zones after specified number of tests (default: 5)
- Optional Break Deletion**: Choose whether to delete zones when price breaks through
- Maximum Zone Limit**: Control chart cleanliness by limiting displayed zones
- Extended Zones**: All zones extend to the right for forward visibility
🔧 Settings
Detection Parameters
- Higher Timeframe: Select any timeframe for zone detection (empty = current timeframe)
- Base/Blast Ratio: 4.0 to 30.0 (default: 8.0) - Higher = stronger zones, fewer signals
- Wick Threshold: 0.1 to 0.5 (default: 0.3) - Maximum base candle wick size
Display Options
- Toggle demand/supply zones independently
- Maximum zones to display (1-50)
- Show/hide zone labels
- Customizable colors for demand and supply zones
- Adjustable border width
Zone Management
- Delete after X touches (1-30 touches)
- Delete on break option
- Touch counter displays current/max touches
💡 How to Use
For Swing Trading
1. Set timeframe to Daily or Weekly
2. Use 8:1 ratio for high-quality zones
3. Enable auto-delete after 3-5 touches
4. Trade pullbacks to green zones (demand) for longs
5. Trade rallies to red zones (supply) for shorts
For Day Trading
1. Set timeframe to 1H or 4H
2. Use 6:1 ratio for more zones
3. Watch for zone color changes as confirmation
4. Enter when price retests zones in the direction of the higher timeframe trend
For Scalping
1. Set timeframe to 15m or 1H
2. Use 5:1 ratio for frequent signals
3. Focus on first touch of fresh zones
4. Use lower timeframes for precise entries
📋 Best Practices
✅ DO:
- Use zones from higher timeframes for better reliability
- Wait for zone color change as confirmation of flip
- Focus on first 2-3 touches of a zone
- Combine with trend analysis
- Use zones as targets and entry levels
❌ DON'T:
- Trade every zone - quality over quantity
- Ignore the touch counter
- Use on very low timeframes without HTF context
- Trade zones that have been tested many times
🎓 Understanding Dynamic Colors
Green Zones (Demand) = Below current price = Support = Look for bounces
Red Zones (Supply) = Above current price = Resistance = Look for rejections
When price breaks a green zone downward, it flips to red (former support becomes resistance)
When price breaks a red zone upward, it flips to green (former resistance becomes support)
📊 Info Dashboard
The top-right table displays:
- Active timeframe
- Current demand zones count (below price)
- Current supply zones count (above price)
- Active base/blast ratio
- Maximum touches setting
🔔 Trading Signals
High Probability Setups:
- Fresh zones (0-1 touches) on higher timeframes
- Zones that align with major support/resistance
- First test after a zone color flip
- Multiple timeframe confluence
Avoid:
- Zones with 4+ touches
- Zones in choppy/ranging markets
- Counter-trend zones during strong momentum
⚡ Performance Notes
- Maximum 500 boxes and lines supported
- Optimized for real-time scanning
- Minimal resource usage
- No repainting - all zones are confirmed
🎯 Recommended Settings by Trading Style
Conservative (Higher Quality)
- Ratio: 10:1
- Wick Threshold: 0.2
- Delete After: 3 touches
Balanced (Default)
- Ratio: 8:1
- Wick Threshold: 0.3
- Delete After: 5 touches
Aggressive (More Signals)
- Ratio: 6:1
- Wick Threshold: 0.4
- Delete After: 7 touches
---
📖 Additional Resources
For more information on supply and demand trading:
- Study institutional order flow
- Learn base and blast candle patterns
- Understand market structure and liquidity zones
- Practice on demo before live trading
Risk Warning: This indicator is a tool for technical analysis. Always use proper risk management and combine with your trading strategy. Past performance does not guarantee future results.
---
Compatible with all markets: Forex, Stocks, Crypto, Futures, and Indices
Version: 1.0 | Language: Pine Script v5
Previous Period High/Low LevelsThis indicator plots the previous day, week, and month high and low levels to highlight key liquidity levels.
Perfect for traders using market structure, liquidity, or SMC concepts.
Features:
Auto-plots PDH/PDL, PWH/PWL, and PMH/PML
Adjustable line styles, widths, and label sizes
Toggle price display on or off
Accurate UTC offset handling
TRI - RSI & StochRSI Multi-TimeframeThis indicator displays RSI and Stochastic RSI values across multiple timeframes
in a clear, color-coded table format.
FEATURES:
Monitors 7 timeframes: 1m, 5m, 15m, 1h, 4h, 1D, 1W
Color-coded cells: Green (oversold), Red (overbought), Orange/Blue (neutral)
Direction indicators for RSI trend
StochRSI K/D comparison indicators
Customizable oversold/overbought levels
Configurable table position and size
ALERTS:
RSI entering oversold/overbought zones
StochRSI entering oversold/overbought zones
StochRSI K/D crossovers (bullish and bearish)
MTF Supertrend Heatmap (D / 4H / 1H / 15m / 5m)MTF Supertrend Heatmap (D / 4H / 1H / 15m / 5m)
A clean dashboard that tells you whether the same Supertrend (ATR Length, Multiplier) is BUY or SELL across five timeframes—all on one chart. Higher-TF values are fetched with request.security() and, when Confirm HTF bar close is ON, they do not repaint after that bar closes.
Optional toggles let you plot the current-TF Supertrend line and show bar-anchored flip markers (BUY/SELL) for each timeframe. Includes alerts for ALL-TF alignment and MAJORITY (≥3/5) agreement. Timeframes and Supertrend parameters are fully configurable. Use the heatmap for quick confirmation, reduce noise by keeping markers off unless needed.
ema200 plus Description:
This advanced indicator displays Exponential Moving Averages (EMA) across multiple timeframes to help traders identify trend direction and strength across different market perspectives.
Key Features:
Multi-Timeframe EMA Analysis:
Plots 200-period EMA on four different timeframes: 30-minute, 1-hour, 4-hour, and Daily
Each timeframe is displayed with distinct colors for easy visual identification
Visual Elements:
Chart Lines: Four colored EMA lines plotted directly on the price chart
Price Labels: Clear labels showing each EMA's current value at the latest bar
Color-coded Table: Comprehensive data table showing price position relative to each EMA
Trend Identification:
Bullish Signal: When price closes above an EMA (green background in table)
Bearish Signal: When price closes below an EMA (dark background in table)
Helps identify confluence when multiple timeframes align in direction
Customizable Settings:
Adjustable EMA length (default: 200 periods)
Customizable line width and offset
Flexible table positioning (top/middle/bottom, left/center/right)
Configurable table cell size and text appearance
Swing traders analyzing multiple timeframes
Position traders looking for trend confirmation
Technical analysts seeking confluence across time horizons
This indicator provides a comprehensive view of market trends across different time perspectives, helping traders make more informed decisions based on multi-timeframe analysis.
This indicator does not provide trading advice. It is for educational and informational purposes only.
**指标名称:多时间框架200 EMA**
**描述:**
这款高级指标在多个时间框架上显示指数移动平均线(EMA),帮助交易者识别不同市场视角下的趋势方向和强度。
**主要特点:**
1. **多时间框架EMA分析:**
- 在四个不同时间框架上绘制200周期EMA:30分钟、1小时、4小时和日线
- 每个时间框架使用独特颜色显示,便于视觉识别
2. **视觉元素:**
- **图表线:** 在价格图表上直接绘制四条彩色EMA线
- **价格标签:** 清晰显示最新K线处各EMA的当前值
- **颜色编码表格:** 综合数据表格显示价格相对于各EMA的位置
3. **趋势识别:**
- **看涨信号:** 当价格收于EMA上方时(表格中显示绿色背景)
- **看跌信号:** 当价格收于EMA下方时(表格中显示深色背景)
- 帮助识别多个时间框架方向一致时的共振信号
4. **可自定义设置:**
- 可调整EMA长度(默认:200周期)
- 可自定义线宽和偏移量
- 灵活的表格定位(上/中/下,左/中/右)
- 可配置表格单元格大小和文本外观
**适合人群:**
- 分析多时间框架的摆动交易者
- 寻求趋势确认的头寸交易者
- 寻找不同时间维度共振信号的技术分析师
Multi-Tool Signal (Buy/Add/Hold/Sell) v6Multi-Tool Signal (Buy/Add/Hold/Sell) v6- technical analysis of stocks
Condition Indicator – Session VWAP - Simulated BUY and SELL 🧩 Short Description (Summary):
A dual-purpose trading indicator that combines moving-average-based simulated trade zones with session VWAP structure analysis to visualize short-term market bias and potential turning points.
📘 **Full Description (for the "About" section):
Condition Indicator – Session VWAP and Simulated MA Structure
This indicator blends simulated trade logic with session-based VWAP analysis to help traders visualize when short-term and long-term market conditions align or diverge.
🧠 Key Features
Simulated Trades:
The script uses two simple moving averages (short and long) to simulate theoretical long and short trade averages over time.
It accumulates “positions” periodically (based on a user-defined minute interval) to illustrate how simulated positions would behave during trend shifts.
Session VWAP & Structure Analysis:
Calculates a dynamic VWAP and standard deviation bands for each session (daily, weekly, monthly, or hourly).
Compares price action against VWAP zones to detect whether trading volume is concentrated inside or outside equilibrium.
Support & Resistance Visualization:
Automatically identifies potential support/resistance zones based on previous session highs/lows and relative bullish or bearish volume distribution.
Market Bias Highlight:
Background color changes dynamically to represent bullish or bearish simulated conditions.
⚙️ Inputs
Long MA length / Short MA length: control the sensitivity of trend detection.
Simulated Trade Frequency: how often simulated positions are updated (in minutes).
Session Type: define the timeframe for VWAP and structure analysis (D, W, M, 60, etc.).
📈 Visualization
Red and green lines indicate simulated short/long trade averages.
VWAP line and deviation zones show session equilibrium shifts.
Background shading represents the active simulated market condition.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice, a trading signal, or a guaranteed strategy.
Always do your own research and consult a qualified financial professional before making trading decisions.
VWAP Composites📊 VWAP Composite - Advanced Multi-Period Volume Weighted Average Price Indicator
═══════════════════════════════════════════════════════════════════
🎯 OVERVIEW
VWAP Composite is an advanced volume-weighted average price (VWAP) indicator that goes beyond traditional single-period VWAP calculations by offering composite multi-period analysis and unprecedented customization. This indicator solves a common problem traders face: traditional VWAP resets at arbitrary intervals (session start, day, week), but significant price action and volume accumulation often spans multiple periods. VWAP Composite allows you to anchor VWAP calculations to any timeframe—or combine multiple periods into a single composite VWAP—giving you a true representation of average price weighted by volume across the exact periods that matter to your analysis.
═══════════════════════════════════════════════════════════════════
⚙️ HOW IT WORKS - CALCULATION METHODOLOGY
📌 CORE VWAP CALCULATION
The indicator calculates VWAP using the standard volume-weighted formula:
• Typical Price = (High + Low + Close) / 3
• VWAP = Σ(Typical Price × Volume) / Σ(Volume)
This calculation is performed across user-defined time periods, ensuring each bar's contribution to the average is proportional to its trading volume.
📌 STANDARD DEVIATION BANDS
The indicator calculates volume-weighted standard deviation to measure price dispersion around the VWAP:
• Variance = Σ / Σ(Volume)
• Standard Deviation = √Variance
• Upper Band = VWAP + (StdDev × Multiplier)
• Lower Band = VWAP - (StdDev × Multiplier)
These bands help identify overbought/oversold conditions relative to the volume-weighted mean, with high-volume price excursions having greater impact on band width than low-volume moves.
📌 COMPOSITE PERIOD METHODOLOGY (Auto Mode)
Unlike traditional VWAP that resets at fixed intervals, Auto Mode creates composite VWAPs by combining the current period with N previous periods:
• Period Span = 1: Current period only (standard VWAP behavior)
• Period Span = 2: Current period + 1 previous period combined
• Period Span = 3: Current period + 2 previous periods combined
• And so on...
Example: A 3-period Weekly composite VWAP calculates from the start of 2 weeks ago through the current week's end, creating a single VWAP that represents 21 days of continuous price and volume data. This provides context about where price stands relative to the volume-weighted average over multiple weeks, not just the current week.
═══════════════════════════════════════════════════════════════════
🔧 KEY FEATURES & ORIGINALITY
✅ DUAL OPERATING MODES
1️⃣ MANUAL MODE (5 Independent VWAPs)
Define up to 5 separate VWAP calculations with custom start/end times:
• Perfect for anchoring VWAP to specific events (earnings, Fed announcements, major reversals)
• Each VWAP has independent color settings for lines and deviation band backgrounds
• Individual control over calculation extension and visual extension (explained below)
• Useful for tracking multiple institutional accumulation/distribution zones simultaneously
2️⃣ AUTO MODE (Composite Period VWAP)
Automatically calculates VWAP across combined time periods:
• Supported periods: Daily, Weekly, Monthly, Quarterly, Yearly
• Configurable period span (1-20 periods)
• Always up-to-date, recalculates on each new bar
• Ideal for systematic analysis across consistent timeframes
✅ DUAL EXTENSION SYSTEM (Manual Mode Innovation)
Most VWAP indicators only offer "on/off" for extending calculations. This indicator provides two distinct extension options:
🔹 EXTEND CALCULATION TO CURRENT BAR
When enabled, continues including new bars in the VWAP calculation after the defined end time. The VWAP value updates dynamically as new volume enters the market.
Use case: You anchored VWAP to a major low 3 weeks ago. You want the VWAP to continue evolving with new volume data to track ongoing institutional positioning.
🔹 EXTEND VISUAL LINE ONLY
When enabled (and calculation extension is disabled), projects the "frozen" VWAP value forward as a reference line. The VWAP value remains fixed at what it was at the end time, but the line and deviation bands visually extend to current price.
Use case: You want to see how price is behaving relative to the VWAP that existed at a specific point in time (e.g., "Where is price now vs. the 5-day VWAP that existed at last Friday's close?").
This dual system gives you unprecedented control over whether you're tracking a "living" VWAP that incorporates new data or using historical VWAP levels as static reference points.
✅ CUSTOMIZABLE STANDARD DEVIATION BANDS
• Adjustable multiplier (0.1 to 5.0)
• Independent background colors with opacity control for each VWAP
• Dashed band lines for easy visual distinction from main VWAP
• Bands extend when visual extension is enabled, maintaining zone visibility
✅ COMPREHENSIVE LABELING SYSTEM
Each VWAP displays:
• Current VWAP value
• Upper deviation band value (High)
• Lower deviation band value (Low)
• Extension status indicator (Calc Extended / Visual Extended)
• Color-coded for quick identification
═══════════════════════════════════════════════════════════════════
📖 HOW TO USE THIS INDICATOR
🎯 SCENARIO 1: EVENT-ANCHORED VWAP (Manual Mode)
Use case: A stock gaps down 15% on earnings and you want to track where institutions are positioning during the recovery.
Setup:
1. Switch to Manual Mode
2. Enable VWAP 1
3. Set Start Time to the earnings gap bar
4. Set End Time to current time (or leave far in future)
5. Enable "Extend Calculation to Current Bar"
6. Watch how price respects the VWAP as a dynamic support/resistance
Interpretation:
• Price above VWAP = buyers in control since the event
• Price testing VWAP from above = potential support
• Volume-weighted standard deviation bands show normal price range
• Price outside bands = potential exhaustion/mean reversion setup
🎯 SCENARIO 2: MULTI-WEEK INSTITUTIONAL ACCUMULATION ZONE (Auto Mode)
Use case: You trade swing setups and want to identify where institutions have been accumulating over the past 3 weeks.
Setup:
1. Switch to Auto Mode
2. Select "Weekly" period type
3. Set Period Span to 3
4. Enable standard deviation bands
Interpretation:
• 3-week composite VWAP shows the true average institutional entry
• Price bouncing off VWAP repeatedly = strong support (institutions defending their average)
• Price breaking below VWAP on high volume = potential distribution
• Deviation bands contracting = consolidation; expanding = volatility increase
🎯 SCENARIO 3: COMPARING MULTIPLE TIME HORIZONS (Manual Mode)
Use case: You want to see short-term vs medium-term vs long-term VWAP alignments.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Last 5 trading days (blue)
3. VWAP 2: Last 10 trading days (orange)
4. VWAP 3: Last 20 trading days (purple)
5. Enable "Extend Calculation" for all
6. Set different background colors for visual separation
Interpretation:
• All VWAPs aligned upward = strong trend across all timeframes
• Price between VWAPs = finding equilibrium between different trader timeframes
• Short-term VWAP crossing long-term VWAP = momentum shift
• Price rejecting at higher-timeframe VWAP = that timeframe's traders defending their average
🎯 SCENARIO 4: HISTORICAL VWAP REFERENCE LEVELS (Manual Mode)
Use case: You want to see where the 1-month VWAP was at each month-end as static reference levels.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Set to last month's start/end dates
3. VWAP 2: Set to 2 months ago start/end dates
4. VWAP 3: Set to 3 months ago start/end dates
5. Disable "Extend Calculation"
6. Enable "Extend Visual Line Only"
Interpretation:
• Each VWAP represents the volume-weighted average for that complete month
• These become static support/resistance levels
• Price returning to old monthly VWAPs = institutional memory/gap fill behavior
• Useful for identifying longer-term value areas
═══════════════════════════════════════════════════════════════════
🎨 CUSTOMIZATION OPTIONS
GENERAL SETTINGS
• Show/hide labels
• Line style: Solid, Dashed, or Dotted
• Standard deviation multiplier (impacts band width)
• Toggle standard deviation bands on/off
MANUAL MODE (Per VWAP)
• Custom start and end times
• Line color picker
• Background color picker (with transparency control)
• Extend calculation option
• Extend visual option
• Show/hide individual VWAPs
AUTO MODE
• Period type selection (Daily/Weekly/Monthly/Quarterly/Yearly)
• Period span (1-20 periods)
• Line color
• Background color (with transparency control)
═══════════════════════════════════════════════════════════════════
💡 TRADING APPLICATIONS
✓ Mean Reversion: Use deviation bands to identify stretched prices likely to return to VWAP
✓ Trend Confirmation: Price sustained above VWAP = bullish bias; below = bearish bias
✓ Support/Resistance: VWAP often acts as dynamic S/R, especially on higher volume periods
✓ Institutional Positioning: Multi-day/week VWAPs show where large players have established positions
✓ Entry Timing: Wait for pullbacks to VWAP in trending markets
✓ Stop Placement: Use VWAP ± standard deviation as volatility-adjusted stop levels
✓ Breakout Confirmation: Breakouts from consolidation with price reclaiming VWAP = stronger signal
✓ Multi-Timeframe Analysis: Compare short vs long-period VWAPs to gauge momentum alignment
═══════════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• The indicator redraws on each bar to maintain accurate visual representation (uses `barstate.islast`)
• Maximum lookback is limited to 5000 bars for performance optimization
• Time range calculations work across all timeframes but are most effective on intraday to daily charts
• Standard deviation bands assume volume-weighted distribution; extreme events may violate assumptions
• Auto mode always calculates to current bar; use Manual mode for fixed historical periods
═══════════════════════════════════════════════════════════════════
This indicator is open-source. Feel free to examine the code, learn from it, and adapt it to your needs.
Trappin Previous Timeframe LevelsTrappin Previous Timeframe Levels (Trappin PTL)
Overview
Trappin PTL is a comprehensive multi-timeframe support and resistance indicator that displays key price levels from multiple timeframes on a single chart. This indicator helps traders identify critical price zones where reversals or breakouts are likely to occur, making it ideal for both intraday and swing trading strategies.
💡 Origin Story
I got tired of manually drawing these lines that I learned from watching Wallstreet Trapper on Trappin Tuesdays YouTube live streams. After repeatedly marking the same previous timeframe levels on every chart, I decided to automate the process. Hope it helps you as much as it helps me!
Key Features
📊 Multiple Timeframe Levels
The indicator tracks and displays high/low levels from:
Previous Hour (PHH/PHL) - Purple lines
Previous Day (PDH/PDL) - Green lines
Previous Week (PWH/PWL) - Yellow lines
Previous Month (PMH/PML) - Blue lines
All-Time High (ATH) - Red line
52-Week High - Orange line
🎨 Fully Customizable
Colors - Change the color of each timeframe independently
Line Styles - Choose between Solid, Dashed, or Dotted lines
Line Widths - Adjust thickness from 1-4 pixels
All settings organized in intuitive groups for easy access
📍 Smart Line Extension
Lines extend back to show when the level was established
Lines project forward to show current relevance
Historical context helps identify key support/resistance zones
🏷️ Clear Price Labels
Each level displays its exact price value (no currency symbols)
Labels positioned horizontally to avoid overlap
Adaptive text color for visibility on any chart theme (dark or light mode)
Why "Trappin"?
The name is a tribute to Wallstreet Trapper and his Trappin Tuesdays YouTube live streams, where I learned the importance of marking previous timeframe levels. The name also reflects the indicator's purpose: identifying price levels where traders often get "trapped" - whether it's bulls getting trapped below resistance or bears getting trapped above support. These levels represent zones where significant order flow and liquidity exist, making them prime areas for reversals or breakouts.
Credits
Created by resoh
Inspired by Wallstreet Trapper and Trappin Tuesdays YouTube live streams
This indicator is provided for educational and informational purposes. Always practice proper risk management and conduct your own analysis before making trading decisions.
Version History
v1.0 - Initial Release
Multi-timeframe high/low levels
All-time high tracking
52-week high tracking
Fully customizable colors, styles, and widths
Adaptive labels with price display
Smart line extension showing historical context
Market Profile based Support/ResistanceBrought to you by Stock Kaka - Your trading sidekick 🦜📈 - pay your visit at stockkaka.my.canva.site or find us on X #StockKaka
📊 What This Indicator Does
Ever wish the market would just tell you where the important levels are? Well, buckle up, because this indicator is like having a market whisperer on your chart!
Based on cutting-edge hierarchical market structure analysis (fancy words for "smart support and resistance"), this bad boy uses ATR-based Directional Change to identify turning points that actually matter. No more guessing where price might bounce or break—let the algorithm do the heavy lifting while you sip your coffee ☕
🎯 The Five Levels Explained (From Noisy to Mighty)
Think of these levels like a pyramid of importance. Level 0 is your chatty friend who notices everything, while Level 4 is the wise oracle who only speaks when it really matters.
Level 0: The Hyperactive Scout 🐿️
What it does: Catches every little zigzag in price using ATR confirmation
Significance: Very short-term, intraday noise
Best for: Scalpers who love action every few minutes
Trader Type: "I refresh my chart 100 times an hour"
Reliability: ⭐⭐ (It's enthusiastic but easily excitable)
Level 1: The Day Trader's Buddy 🎯
What it does: Filters Level 0 to show minor swing highs/lows
Significance: Intraday support/resistance, hourly structure
Best for: Day traders, scalpers looking for better entries
Trader Type: "I close all positions before dinner"
Reliability: ⭐⭐⭐ (Solid for quick moves)
Level 2: The Swing Trader's Sweet Spot 🎪
What it does: Identifies multi-day to weekly structure points
Significance: Intermediate support/resistance where battles happen
Best for: Swing traders, position traders
Trader Type: "I hold for days, not minutes"
Reliability: ⭐⭐⭐⭐ (Now we're talking real structure!)
Level 3: The Big Money Magnet 💰
What it does: Shows major market structure—where the whales play
Significance: Weekly to monthly levels, institutional zones
Best for: Position traders, trend followers
Trader Type: "I think in weeks and months, not hours"
Reliability: ⭐⭐⭐⭐⭐ (These levels have gravitational pull!)
Level 4: The Market Prophet 🔮
What it does: Reveals ultra-major turning points (think: quarterly/yearly pivots)
Significance: Long-term macro structure, investment-grade levels
Best for: Investors, long-term position traders
Trader Type: "Warren Buffett is my spirit animal"
Reliability: ⭐⭐⭐⭐⭐⭐ (When these break, market's rewrite the story)
⚙️ Parameter Setup Guide (The Secret Sauce)
The magic ingredient is the ATR Lookback Period—think of it as teaching the indicator your timeframe's "dialect." Here's your cheat sheet:
2-Minute Chart ⚡
ATR Lookback: 720 (24 hours of 2-min bars)
Who uses this: Crypto degens, futures scalpers, adrenaline junkies
Show Levels: L0, L1, L2 (L3+ won't budge much)
Pro Tip: Enable only L1 and L2 or your chart will look like spaghetti
5-Minute Chart 🏃
ATR Lookback: 288 (24 hours of 5-min bars)
Who uses this: Active day traders, news traders
Show Levels: L1, L2, L3
Pro Tip: L2 is your best friend here—perfect for intraday swings
15-Minute Chart 📈
ATR Lookback: 96 (24 hours of 15-min bars)
Who uses this: Swing traders, patient day traders
Show Levels: L1, L2, L3
Pro Tip: This is the "Goldilocks zone"—not too fast, not too slow
1-Hour Chart ⏰
ATR Lookback: 168 (1 week of hourly bars)
Who uses this: Swing traders, position traders
Show Levels: L2, L3, L4
Pro Tip: L3 levels here are like magnets for price action
Daily Chart 📅
ATR Lookback: 30 to 50 (1-2 months)
Who uses this: Investors, long-term traders, people with patience
Show Levels: L2, L3, L4
Pro Tip: L4 on dailies = "Don't fight this level, respect it"
🎨 How to Use This Thing
Add to Chart - Duh! 😄
Set Your ATR Lookback - Use the guide above (don't wing it!)
Enable Relevant Levels - Less is more! Turn off levels that just clutter
Watch the Magic - See horizontal lines appear at key S/R zones
Check the Table - Top-right corner shows current levels (fancy!)
Set Alerts - Get notified when price approaches or breaks levels
Trading Strategies 🎲
The Bounce Play:
Price approaches Level 2 or 3 support → Look for bullish reversal signals
Take profit at the next level resistance
Stop loss just below the support level
The Breakout Play:
Price breaks through Level 2/3 resistance with volume → Go long
Next level becomes your target
Failed breakout? Level becomes resistance again (classic fake-out)
The Confluence Play:
When Level 3 aligns with your favorite indicator (RSI oversold, moving average, Fibonacci) → Chef's kiss! 👨🍳💋
These multi-confirmation setups are where the money lives
🚨 Important Notes (Read This or Blame Yourself Later)
⚠️ This indicator REPAINTS on the current bar until an extreme is confirmed. That's not a bug, it's how directional change works. The past levels are solid as a rock, but the pending one is still... pending.
⚠️ More levels ≠ Better results. Showing all 5 levels is like having 5 GPS apps shouting directions at once. Pick 2-3 levels max.
⚠️ ATR Lookback matters! Wrong setting = garbage results. Use the guide above or experiment carefully.
⚠️ Volatile markets (crypto, meme stocks) work GREAT with this. Choppy, range-bound markets? Meh.
⚠️ Combine with other tools! This shows you WHERE, not WHEN. Use momentum indicators, volume, or your favorite chicken entrails for timing 🐔
🦜 Final Word from Stock Kaka
Remember: Indicators don't make money, traders do. This tool shows you where the market has historically respected structure. What you do with that info? That's on you, champ!
Use proper risk management, don't YOLO your rent money, and may your stops never get hunted 🎯
Trade smart, trade safe, and let Stock Kaka be your guide!
📝 Credits
Algorithm: neurotrader888 (Python implementation)
Pine Script Conversion: Your friendly neighborhood Stock Kaka team!!
Inspiration: Ginger chai, market inefficiencies, and a dash of chaos
📌 Tags
support-and-resistance market-structure atr directional-change multi-timeframe swing-trading day-trading levels hierarchical-analysis algo-trading
Opening Range + Daily LevelsA comprehensive multi-timeframe indicator designed for intraday traders who need critical support/resistance levels and EMAs all in one clean display.
Features:
📊 EMAs
9 EMA (default: white)
21 EMA (default: orange)
📅 Previous Day Levels
Yesterday's High, Low, Open, and Close
Lines extend progressively through the current session
Clean visual separation between trading days
📈 Previous Week Levels
Last Week's High, Low, Open, and Close
Dotted lines that extend through the current week
Perfect for identifying major support/resistance zones
🌙 Pre-Market Session (12:00 AM - 7:30 AM)
Pre-Market High and Low
Tracks overnight price action
Extends through the trading day
⏰ 15-Minute Opening Range (7:30 AM - 7:45 AM)
Opening Range High and Low with shaded box
Fibonacci retracement levels (0.382, 0.5, 0.618)
Golden ratio levels (0.382 & 0.618) in gold, midpoint (0.5) in dotted gray
Customization:
Adjustable timezone settings
Fully customizable colors for all levels
Adjustable line widths
Toggle Fibonacci levels on/off
Perfect For:
Day traders who need key levels at a glance
Price action traders using previous session data
Opening range breakout strategies
Multi-timeframe analysis
All levels update automatically and extend progressively as the day progresses, with labels staying visible at the current bar edge.
DayFlow VWAP Relay Forex Majors StrategySummary in one paragraph
DayFlow VWAP Relay is a day-trading strategy for major FX pairs on intraday timeframes, demonstrated on EURUSD 15 minutes. It waits for alignment between a daily anchored VWAP regime check, residual percentiles, and lower-timeframe micro flow before suggesting trades. The originality is the fusion of daily VWAP residual percentiles with a live micro-flow score from 1 minute data to switch between fade and breakout behavior inside the same session. Add it to a clean chart and use the markers and alerts.
Scope and intent
• Markets: Major FX pairs such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCHF, USDCAD
• Timeframes: One minute to one hour
• Default demo in this publication: EURUSD on 15 minutes
• Purpose: Reduce false starts by acting only when context, location and micro flow agree
• Limits: This is a strategy. Orders are simulated on standard candles only
Originality and usefulness
• Core novelty: Residual percentiles to daily anchored VWAP decide “balanced versus expanding day”. A separate 1 minute micro-flow score confirms direction, so the same model fades extremes in balance and rides range breaks in expansion
• Failure modes addressed: Chop fakeouts and unconfirmed breakouts are filtered by the expansion gate and micro-flow threshold
• Testability: Every input is exposed. Bands, background regime color, and markers show why a suggestion appears
• Portable yardstick: Stops and targets are ATR multiples converted to ticks, which transfer across symbols
• Open source status: No reused third-party code that requires attribution
Method overview in plain language
The day is anchored with a VWAP that updates from the daily session start. Price minus VWAP is the residual. Percentiles of that residual measured over a rolling window define location extremes for the current day. A regime score compares residual volatility to price volatility. When expansion is low, the day is treated as balanced and the model fades residual extremes if 1 minute micro flow points back to VWAP. When expansion is high, the model trades breakouts outside the VWAP bands if slope and micro flow agree with the move.
Base measures
• Range basis: True Range smoothed by ATR for stops and targets, length 14
• Return basis: Not required for signals; residuals are absolute price distance to VWAP
Components
• Daily Anchor VWAP Bands. VWAP with standard-deviation bands. Slope sign is used for trend confirmation on breakouts
• Residual Percentiles. Rolling percentiles of close minus VWAP over Signal length. Identify location extremes inside the day
• Expansion Ratio. Standard deviation of residuals divided by standard deviation of price over Signal length. Classifies balanced versus expanding day
• Micro Flow. Net up minus down closes from 1 minute data across a short span, normalized to −1..+1. Confirms direction and avoids fades against pressure
• Session Window optional. Restricts trading to your configured hours to avoid thin periods
• Cooldown optional. Bars to wait after a position closes to prevent immediate re-entry
Fusion rule
Gating rather than weighting. First choose regime by Expansion Ratio versus the Expansion gate. Inside each regime all listed conditions must be true: location test plus micro-flow threshold plus session window plus cooldown. Breakouts also require VWAP slope alignment.
Signal rule
• Long suggestion on balanced day: residual at or below the lower percentile and micro flow positive above the gate while inside session and cooldown is satisfied
• Short suggestion on balanced day: residual at or above the upper percentile and micro flow negative below the gate while inside session and cooldown is satisfied
• Long suggestion on expanding day: close above the upper VWAP band, VWAP slope positive, micro flow positive, session and cooldown satisfied
• Short suggestion on expanding day: close below the lower VWAP band, VWAP slope negative, micro flow negative, session and cooldown satisfied
• Positions flip on opposite suggestions or exit by brackets
What you will see on the chart
• Markers on suggestion bars: L for long, S for short
• Exit occurs on reverse signal or when a bracket order is filled
• Reference lines: daily anchored VWAP with upper and lower bands
• Optional background: teal for balanced day, orange for expanding day
Inputs with guidance
Setup
• Signal length. Residual and regime window. Typical 40 to 100. Higher smooths, lower reacts faster
Micro Flow
• Micro TF. Lower timeframe used for micro flow, default 1 minute
• Micro span bars. Count of lower-TF bars. Typical 5 to 20
• Micro flow gate 0..1. Minimum absolute flow. Raising it demands stronger confirmation and reduces trade count
VWAP Bands
• VWAP stdev multiplier. Band width. Typical 0.8 to 1.6. Wider bands reduce breakout frequency and increase fade distance
• Expansion gate 0..3. Threshold to switch from fades to breakouts. Raising it favors fades, lowering it favors breakouts
Sessions
• Use session filter. Enable to trade only inside your window
• Trade window UTC. Default 07:00 to 17:00
Risk
• ATR length. Stop and target basis. Typical 10 to 21
• Stop ATR x. Initial stop distance in ATR multiples
• Target ATR x. Profit target distance in ATR multiples
• Cooldown bars after close. Wait bars before a new entry
• Side. Both, long only, or short only
View
• Show VWAP and bands
• Color bars by residual regime
Properties visible in this publication
• Initial capital 10000
• Base currency Default
• request.security uses lookahead off everywhere
• Strategy: Percent of equity with value 3. Pyramiding 0. Commission cash per order 0.0001 USD. Slippage 3 ticks. Process orders on close ON. Bar magnifier ON. Recalculate after order is filled OFF. Calc on every tick OFF. Using standard OHLC fills ON.
Realism and responsible publication
No performance claims. Past results never guarantee future outcomes. Fills and slippage vary by venue. Shapes can move while a bar forms and settle on close. Strategies must run on standard candles for signals and orders.
Honest limitations and failure modes
High impact news, session opens, and thin liquidity can invalidate assumptions. Very quiet days can reduce contrast between residuals and price volatility. Session windows use the chart exchange time. If both stop and target are touched within a single bar, TradingView’s standard OHLC price-movement model decides the outcome.
Expect different behavior on illiquid pairs or during holidays. The model is sensitive to session definitions and feed time. Past results never guarantee future outcomes.
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs.
Demand Supply Zones with MTFDemand Supply Zones with Multi-Timeframe Analysis
Overview:
Advanced institutional demand/supply zone detector with multi-timeframe analysis, proximity alerts, and trend dashboards. Identifies high-probability reversal areas using intelligent base detection and breakout validation across 4 simultaneous timeframes.
Core Unique Features:
• 💎 Elite Base Factor: Auto-detects institutional base patterns using pre-breakout candle body ratio analysis (adjustable 0.1-2.0).
• 🌐 4-Timeframe Zone Detection: Simultaneous MTF zones with individual "👁️ Tested" toggles for granular control - unprecedented in demand/supply indicators.
• 🚨 Proximity Dashboard: Real-time distance tracking to nearest zones (current + all MTF). Visual "APPROACHING!" alerts when price within threshold %.
• 📊 Zone Analytics Dashboard: Live counters for active/tested zones per timeframe with date range display and MTF status tracking.
• 📈 Multi-Timeframe Trend Analysis: 4-TF trend direction
• 🎯 Advanced EMA System: 10 multi-timeframe EMA-20 lines + Golden/Death Cross alerts with customizable styling.
• 📅 Date Range Filter: Performance optimization with calendar-based zone limits (10-500 zones).
• 🧩 Gap Filling: Optional gap bridging between base and leg-out candles for continuous zones.
• 🔐 No Repainting: MTF zones created only on confirmed bars with lookahead bias disabled.
How It Works:
1. Base Detection: Identifies consolidation candles (1-4 consecutive) with customizable body % threshold. Elite mode auto-detects when pre-breakout candle is significantly smaller.
2. Leg-Out Validation: Confirms breakout strength of legout
3. Zone Extension: Projects zones forward (10-500 bars).Fresh zones (green/red) turn gray when tested.
4. MTF Integration: Detects zones from 4 higher timeframes with independent parameters. Each MTF has individual tested zone toggle.
5. Analytics: Proximity dashboard calculates real-time distance to nearest zones. Trend dashboard shows direction across 4 TFs.
Important Notes:
• Educational Purpose: This indicator is for analysis and learning only. Does not guarantee future results.
• Risk Management Required: Always use stop losses and proper position sizing.
• Chart Type: Use standard Candlestick charts. Non-standard charts (Heikin Ashi/Renko) not recommended for accurate zone detection.
• Timeframe Requirements: MTF zones appear only when viewing lower timeframe than selected MTF (e.g., view 1H chart to see Daily MTF zones).
• Performance: Enable Date Range Filter when using multiple MTF timeframes to reduce computational load.
• Past Performance Disclaimer: Historical accuracy does not guarantee future trading results.
⭐ If you find this indicator valuable, please like and share!
Hidden BreakerHidden Breaker
DESCRIPTION
The Hidden Breaker identifies Order Blocks and tracks their transformation when they interact with Fair Value Gaps. It displays both standard Order Blocks and those modified by FVG (Breaker Blocks) across multiple timeframes within a single chart view.
METHODOLOGY ORIGIN
This indicator is based on concepts from the MoneyTaur trading methodology, which focuses on identifying Order Blocks hidden behind Fair Value Gaps from the multi-timeframe perspective.
WHAT MAKES THIS UNIQUE
- Box Management System: User-controlled box allocation through dynamic filters, ensuring all detected blocks remain visible within Pine Script's 500 box limit. Users can manage which blocks to display through price range and filter adjustments.
- Creates unified columnar visualization
- Processes 70+ timeframes (incl custom)
- Tracks each block's complete lifecycle
KEY FEATURES
Order Blocks (OB): Detects engulfing candle patterns between candle bodies with customizable deviation tolerance.
Breaker Blocks (BB): Order Blocks (candle body) that crossed Fair Value Gaps by 100% without being touched by wicks.
Partial Breaker Blocks (PBB): Candle bodies that didn't fit 100% within an FVG or were partially mitigated by wicks. Min BB size in % after passing FVG is adjustable within filter.
Multi-Timeframe Analysis: Processes 70+ timeframes without repainting
Visual Organization: Displays blocks in columns by timeframe for easy comparison. Spacing is adjustable within menu.
FVG Counter: Shows interaction count (1-5) for each block
Statistics Table: Real-time monitoring of detected blocks
Price Range Filter: Manages Pine Script's 500 box limit effectively
HOW IT WORKS
The indicator uses a three-stage detection process:
Stage 1 - Order Block Detection:
Identifies engulfing patterns where one candle body fully engulfs the body of the previous opposite candle. The system allows for small price deviations. The detected zone spans from the open to close of the engulfed candle.
Stage 2 - FVG Interaction:
Monitors for Fair Value Gaps that occur when the candle's low is above the high from two candles ago (bullish gap) or when the high is below the low from two candles ago (bearish gap). When such a gap overlaps an existing Order Block, the system evaluates:
Checks whether the OB’s body is fully contained within the FVG range (passed 100% through it without wick contact) — shown as 1H | 1, where 1H is the timeframe and 1 the FVG count.
The percentage of the OB body retained within the FVG after zone adjustment is filter-controlled.
Directional bias is inherited from the FVG.
Blocks with multiple FVG interactions (counted 1–5+) allow filtering of BBs based on their FVG overlap frequency.
Stage 3 - Single or Multi-Timeframe Processing:
Collects data from multiple timeframes simultaneously, processes it without repainting, and displays horizontal boxes with timeframe labels arranged in vertical columns, where each timeframe occupies its own designated horizontal space for clear visual separation.
DETECTION CRITERIA
Order Block: Engulfing with body-to-body alignment within adjustable deviation tolerance
Breaker Block: OB that intersects with subsequent FVG. When filter is set to 100%, shows only BBs where the body fully passed through FVG without wick touches.
Partial Breaker Block (PBB): An Order Block partially intersected by an FVG or partially mitigated by a subsequent candle, narrowing the original Breaker Block range.
FVG validation: Gap between candles 1 and 3
VISUAL GUIDE
Green: Bullish Order Blocks
Red: Bearish Order Blocks
Blue: Bullish Breaker Blocks
Orange: Bearish Breaker Blocks
Teal: Bullish Partial Breaker Blocks
Purple: Bearish Partial Breaker Blocks
Numbers: FVG interaction count (1-5)
Percentages: Remaining unmitigated area
SETTINGS
Block Type Selection: Choose to display OB only, BB/PBB only
Deviation (%): Tolerance for engulfing pattern detection
Min Engulfing Impulse (%): Minimum required price movement for valid engulfing
FVG Filter: Set minimum FVG count required (1-5)
Min BB Size after FVG (%): Minimum remaining size of an BB after passing an FVG
Hide if Mitigated More Than (%): Visibility threshold for partially mitigated blocks
Price Range Filter (%): Limit Block detection to specific price ranges from current price
Price Range Axis (%): Offset reference point for price range
Timeframe Groups: Select from 6 predefined groups or custom timeframes
Max Bars to Scan: Historical lookback period (100-10000)
Replay Mode: used for historical backtesting and visual analysis for higher TF data.
TIMEFRAME GROUPS
Group 1: Minutes & Short Hours (5m-4H)
Group 2: Extended Hours (5H-23H)
Group 3: Days (1D-19D)
Group 4: Weeks (1W-12W)
Group 5: Months (1M-12M)
Group 6: 19 Custom timeframes
USAGE NOTES
Select appropriate timeframe groups for your analysis style
Adjust deviation and impulse settings based on market volatility
Use FVG filter to focus on blocks with multiple gap interactions
Monitor the statistics table to ensure box count stays under 500. If approaching limit, narrow the price range filter
Each box shows its description aligned vertically by timeframe
TECHNICAL SPECIFICATIONS
Pine Script Version 6
Default scan range: 5000 historical bars
Maximum 500 boxes per chart (Pine Script limitation)
Non-repainting calculations
Compatible with all markets and timeframes
Optimized memory management for multi-timeframe processing
TERMS AND CONDITIONS
This indicator and its documentation do not constitute financial or investment advice.
Users should make independent trading decisions and accept full responsibility for their outcomes.
Use of this tool implies that you understand the risks of financial markets and agree that the author is not liable for any loss or damage arising from its use.
This indicator is designed solely as a visualisation tool to assist with chart analysis.
It does not teach, promote, or automate any specific trading strategy, concept, or methodology.
All visual elements — such as OBs, BBs, PBBs, FVGs, and related interactions — are intended to support manual study and backtesting, not to generate trading signals.
Past performance does not guarantee future results. By using this tool, users agree to these terms.
Multitime TrendThis indicator combines 3 of the most powerful components:
Component Timeframe Purpose
EMA Fast & Slow Current chart timeframe Defines the dynamic trend (faster reaction to trend shifts)
Tchimoku (Tenkan / Kijun) Current chart timeframe Identifies the current price equilibrium zone (mean reversion)
Multi-Timeframe Ichimoku H5 (5 minutes) & H1 (1 hour) Confirms higher timeframe trend to filter noise & avoid trading against major trend.
EMA Trend (Primary Direction)
ema_fast = EMA 34
ema_slow = EMA 72
If EMA 34 crosses above EMA 72 → Bullish Trend
If EMA 34 crosses below EMA 72 → Bearish Trend
EMA color changes automatically (lime = buy, red = sell).
Tchimoku Tenkan-Kijun (Mean Reversion Logic)
Not using full Ichimoku — only Tenkan + Kijun, enhanced with ATR
If Tenkan > Kijun → short-term momentum is bullish
If Tenkan < Kijun → short-term momentum is bearish
Both lines are plotted and color-filled to visualize which side has control
→ More sensitive than EMA → reacts faster to real-time market flow.
Higher Timeframe Confirmation (H5 + H1)
Using the same Tenkan/Kijun algorithm, but calculated from:
H5 (5-minute timeframe)
H1 (1-hour timeframe)
If both H5 & H1 show the same fill color (teal = bullish, red = bearish):
→ Higher timeframe MTF confluence is confirmed
→ Helps avoid entering against dominant macro trend even if current chart shows minor reversal.
Role of This Indicator
Acts as a trend filter & smart bias detector, helping you decide BEFORE entering a trade.
It does not auto-execute trades, but instantly tells you:
✅ Should I BUY?
✅ Should I SELL?
❌ Should I STAY OUT because higher timeframe is against me?
ZEN MTF Price ProjectionZEN MTF Price Projection
A lightweight, multi‑timeframe price projection that extends a ZigZag‑style path into the future. It chains six timeframes (1m → 5m → 15m → 1H → 4H → 1D) where each segment continues the previous one, creating a continuous forward path of arrows. The engine blends expected move and volatility to estimate the next leg for each TF. Calculations are proprietary and optimized for real‑time updates.
Caution
Treat the projection as a guide, not a guarantee. Avoid trading directly against higher‑TF segment direction.
Key features
MTF chained path: each TF continues the previous, producing a continuous forward “ZigZag‑style” projection.
Real‑time or timed updates: redraws every bar (Realtime) or every N minutes.
Visual arrows every N bars for readability; configurable segment length per TF.
Resource‑safe rendering with automatic cleanup.
Inputs (quick guide)
Bars per timeframe: number of bars each TF projects forward.
Arrow every N bars: density of arrows along each segment.
Update mode: Realtime or Every N minutes (default 1).
Colors: up/down palette for projected segments.
Alerts and workflow tips
Use Trading Panel alerts on color changes of the active segment (manual rule).
Combine with your execution playbook (e.g., candle confirmation, volume burst, or LTF pullback).
Best with liquid markets and regular sessions; widen SL on high‑volatility assets.
What this indicator is not
Not a crystal ball; it’s a probabilistic forward path based on proprietary MTF expectations and volatility scaling.
Not a replacement for risk management or market context.
Disclaimer
For educational purposes only. Past performance is not indicative of future results. Trade at your own risk.
Multi-TF Bias Dashboard + Smart Entry V8Multi-TF Bias Dashboard + Smart Entry provides a complete top-down bias and entry confirmation system for professional traders.
It evaluates Weekly, Daily, and Custom HTF (e.g. 4H) candle structures to define directional bias, then synchronizes entry triggers from a lower timeframe using a reference–entry lock and optional cooldown filter to prevent overtrading.
A unified dashboard panel displays:
✅ Weekly / Daily / HTF leg PASS-FAIL logic
✅ Auto-locked entries only after reference bar close
✅ Bias banner (Bullish / Bearish / Neutral)
✅ Cooldown timer (Bars or Minutes) to space entries
✅ Real-time alerts + on-chart entry markers
Choppiness Index | CipherDecodedThe Choppiness Index is a multi-timeframe regime indicator that measures whether price action is trending or consolidating.
This recreation was inspired by the Choppiness Index chart from Checkonchain, with full credit to their team for the idea.
🔹 How It Works
CI = 100 * log10( SUM(ATR(1), n) / (highest(high, n) – lowest(low, n)) ) / log10(n)
Where:
n – lookback length (e.g. 14 days / 10 weeks / 10 months)
ATR(1) – true-range of each bar
SUM(ATR(1), n) – total true-range over n bars
highest(high, n) and lowest(low, n) – price range over n bars
Low values → strong trend
High values → sideways consolidation
Below is a simplified function used in the script for computing CI on any timeframe:
f_ci(_n) =>
_tr = ta.tr(true)
_sum = math.sum(_tr, _n)
_hh = ta.highest(high, _n)
_ll = ta.lowest(low, _n)
_rng = _hh - _ll
_rng > 0 ? 100 * math.log10(_sum / _rng) / math.log10(_n) : na
Consolidation Threshold — 50.0
Trend Threshold — 38.2
When Weekly CI < Trend Threshold, a trending zone (yellow) appears.
When Weekly CI > Consolidation Threshold, a consolidation zone (purple) appears.
Users can toggle either background independently.
🔹 Example Background Logic
bgcolor(isTrend and Trend ? color.new(#f3e459, 50) : na, title = "Trending", force_overlay = true)
bgcolor(isConsol and Cons ? color.new(#974aa5, 50) : na, title = "Consolidation", force_overlay = true)
🔹 Usage Tips
Observe the Weekly CI for regime context.
Combine with price structure or trend filters for signal confirmation.
Low CI values (< 38) indicate strong trend activity — the market may soon consolidate to reset.
High CI values (> 60) reflect sideways or range-bound conditions — the market is recharging before a potential new trend.
🔹 Disclaimer
This indicator is provided for educational purposes.
No trading outcomes are guaranteed.
This tool does not guarantee market turns or performance; it should be used as part of a broader system.
Use responsibly and perform your own testing.
🔹 Credits
Concept origin — Checkonchain Choppiness Index
Overnight Gap Detector - 4H Body to BodyThis TradingView indicator automatically detects and tracks overnight price gaps based on 4-hour candle bodies, displaying them as colored rectangles on your chart.
Key Features:
Gap Detection:
Identifies true wick-to-wick gaps that occur at the start of each new trading day
Gap Up: Detected when previous candle's high is below current candle's low
Gap Down: Detected when previous candle's low is above current candle's high
Rectangles are drawn from candle body to body (not wicks), providing clean gap zones
Gap Tracking:
Gaps are marked as "GAP HOLE" when first detected
Automatically tracks when gaps get filled
Changes to "FILLED" label and color when price closes through the gap zone
Gaps extend horizontally until filled or chart end
Customizable Display:
Label Position: Choose between "Inside" (centered in box) or "Outside" the gap rectangle
Label Offset: Adjust how far from the right edge labels appear (0-50 bars)
Minimum Gap Size: Filter out small gaps by setting minimum percentage threshold (default 0.05%)
Max Stored Gaps: Control how many gaps are kept on chart (default 200)
Visual Options:
Optional midline showing the 50% fill level of each gap
Fully customizable colors for Gap Up, Gap Down, and Filled gaps
Separate transparency controls for box backgrounds and label backgrounds
Adjustable border and midline widths
Toggle labels and midlines on/off
Color Coding:
Green: Gap Up (default)
Red: Gap Down (default)
Yellow: Filled gaps (default)
Perfect for traders who use gap-fill strategies or want to track key price levels where gaps occurred






















