Statistics
Spot vs. Derivatives BasisThis indicator calculates the basis between average spot and average perpetual futures prices across selected exchanges. It helps identify deviations between spot and perp markets — a key signal for funding pressure, arbitrage, or market dislocation.
Key Features:
Manual Pair Control – Enable or disable specific trading pairs as needed
Flexible Basis Smoothing – Apply SMA, EMA, WMA, or VWMA to filter noise
Anomaly Highlighting – Automatically flags basis deviations beyond ±0.1%
Trading Checklist - DrFXAiTrading Checklist is a customizable indicator designed for traders who want to stay disciplined and stick to their trading rules. Using this indicator, you can easily create and display your own personalized checklist of trading rules directly on your TradingView chart.
The Title and the Body are two different sections, so you can set two different styles.
This indicator allows you to customize:
Text color
Text size
Text alignment
🚀 Join the Pantheon of Profitable Traders
📩 Contact us on Telegram:👉 t.me
BTC Perp-Spot PremiumBTC Perp‑Spot Premium w/ EMA Cross
This indicator measures the premium or discount between BTC spot prices and perpetual futures across major exchanges. It visualizes real-time sentiment in the derivatives market and identifies potential inflection points by comparing the behavior of spot traders (real demand) and perp traders (speculative positioning).
What It Does
Calculates the premium spread
Shows the percentage difference between perp and spot prices as a color-coded histogram. Blue bars indicate perps trading above spot (aggressive longs), while red bars suggest perps below spot (risk-off or bearish positioning).
7-exchange composite data feed
Uses a robust average of six perpetual futures sources and seven spot market sources across Binance, Bybit, OKX, Coinbase, Bitfinex, Kraken, and Bitstamp for a balanced and high-fidelity view.
EMA crossover signals
Includes a customizable EMA and MA of the premium. Crossovers are visualized with subtle circle markers to signal sentiment shifts—blue for EMA crossing above, red for crossing below.
Zero baseline
A horizontal line at zero makes it easy to identify when perps flip from premium to discount territory and vice versa.
Dynamic stats table
Displays live values for the perp average, spot average, and premium % in a neatly formatted corner table.
Why It's Useful
This tool helps traders:
Monitor market sentiment and speculative aggression
Spot inefficiencies between derivatives and spot markets
Identify early reversal or continuation signals
Track potential liquidation zones or trend exhaustion
Confirm breakouts with perp/spot alignment
Whether you're trading short-term momentum or watching for mean-reverting setups, this premium analysis tool brings deeper context to BTC price action directly on your chart.
Market to NAV Premium Arbitrage Alpha IndicatorBitcoin treasury companies such as Microstrategy are known for trading at significant premiums. but how big exactly is the premium? And how can we measure it in real time?
I developed this quantitative tool to identify statistical mispricings between market capitalization and net asset value (NAV), specifically designed for arbitrage strategies and alpha generation in Bitcoin-holding companies, such as MicroStrategy or Sharplink Gaming, or SPACs used primarily to hold cryptocurrencies, Bitcoin ETFs, and other NAV-based instruments. It can probably also be used in certain spin-offs.
KEY FEATURES:
✅ Real-time Premium/Discount Calculation
• Automatically retrieves market cap data from TradingView
• Calculates precise NAV based on underlying asset holdings (for example Bitcoin)
• Formula: (Market Cap - NAV) / NAV × 100
✅ Statistical Analysis
• Historical percentile rankings (customizable lookback period)
• Standard deviation bands (2σ) for extreme value detection (close to these values might be seen as interesting points to short or go long)
• Smoothing period to reduce noise
✅ Multi-Source Market Cap Detection
• You can add the ticker of the NAV asset, but if necessary, you can also put it manually. Priority system: TradingView data → Calculated → Manual override
✅ Advanced NAV Modeling
• Basic NAV: Asset holdings + cash.
• Adjusted NAV: Includes software business value, debt, preferred shares. If the company has a lot of this kind of intrinsic value, put it in the "cash" field
• Support for any underlying asset (BTC, ETH, etc.)
TRADING APPLICATIONS:
🎯 Pairs Trading Signals
• Long/Short opportunities when premium reaches statistical extremes
• Mean reversion strategies based on historical ranges
• Risk-adjusted position sizing using percentile ranks
🎯 Arbitrage Detection
• Identifies when market pricing significantly deviates from fair value
• Quantifies the magnitude of mispricing for profit potential
• Historical context for timing entry/exit points
CONFIGURATION OPTIONS:
• Underlying Asset: Any symbol (default: COINBASE:BTCUSD) NEEDS MANUAL INPUT
• Asset Quantity: Precise holdings amount (for example, how much BTC does the company currently hold). NEEDS MANUAL INPUT
• Cash Holdings: Additional liquid assets. NEEDS MANUAL INPUT
• Market Cap Mode: Auto-detect, calculated, or manual
• Advanced Adjustments: Business value, debt, preferred shares
• Display Settings: Lookback period, smoothing, custom colors
IT CAN BE USED BY:
• Quantitative traders focused on statistical arbitrage
• Institutional investors monitoring NAV-based instruments
• Bitcoin ETF and MSTR traders seeking alpha generation
• Risk managers tracking premium/discount exposures
• Academic researchers studying market efficiency (as you can see, markets are not efficient 😉)
Support/Resistance MTF Merge ZonesIndicator Introduction
Support/Resistance MTF Merge Zones is an advanced technical analysis tool that automatically identifies and merges key support/resistance zones by analyzing highs and lows from multiple timeframes (15M, 1H, 4H, Daily).
Key Features
Multi-Timeframe Analysis: Integrates data from 15M, 1H, 4H, and Daily charts
Smart Zone Merging: Automatically consolidates levels within a specified percentage range into unified zones
Dynamic Color System: Distinguishes support/resistance zones based on position relative to current price
Strength Indication: Highlights zones where multiple levels converge as strong zones
Usage Guide
Configuration Parameters
Lookback Period (10): Period for calculating highs/lows
Adjustable range: 5-30
Higher values detect more long-term levels
Zone Merge % (0.5): Percentage threshold for zone merging
Range: 0.1-2.0%
Higher values merge levels across wider price ranges
Min Levels for Zone (2): Minimum number of levels required to form a zone
Range: 2-5 levels
Higher values display only more confirmed zones
Box Opacity (7): Transparency level of zone boxes
Range: 0-100%
Color Scheme
Red: Resistance zones above current price
Blue: Support zones below current price
Orange: Strong zones (3+ merged levels)
Master Trend Navigator/趋势大师导航仪[4H] by mrlazycat趋势大师导航仪使用说明
⚠ 非常重要,使用指标前请认真阅读这个使用说明
指标核心功能 本指标通过分析比特币的成交量、动能指标(MACD)、相对强弱指数(RSI)、趋势强度和成交量比率,生成在-1到1之间波动的趋势大师导航仪,帮助判断买卖时机。指标最佳适用场为4小时(4H)图表,适合1-2周的中短期交易。该趋势大师导航仪适用于 BTC,ETH, DOGE 等现货成交量大的虚拟货币
趋势曲线解读指南
① 市场状态(曲线颜色)
暗紫色:区间震荡市场 浅红色:弱多头趋势 深红色:强多头趋势 浅绿色:弱空头趋势 深绿色:强空头趋势
② 关键信号区域
红色区域(超买):趋势曲线 ≥ 0.6 时,可能出现回调风险
绿色区域(超卖):趋势曲线 ≤ -0.615 时,可能出现反弹机会
③ 锁定机制
在强多头趋势(深红色)和深绿色(强空头趋势)和部分弱趋势期间:
如果趋势曲线突破红色区域(超买)且市场趋势强度保持在强趋势或较强的弱趋势,趋势曲线会锁定在0.7附近(原始曲线以灰色继续)。
如果趋势曲线跌破绿色区域(超卖)且市场趋势强度保持在强趋势或较强的弱趋势,趋势曲线会锁定在-0.7附近(原始曲线以灰色继续)。 这表示趋势可能继续发展,建议等待锁定期结束后再进行操作。
✅ 极端多头趋势的特殊案例:(如ETH在2025年7月10日到20日,趋势曲线一直维持红色,意味着多头趋势不变。但这段时间ETH的趋势曲线曾跌到超卖区,因此曲线曾在底部锁定3个K线的时间,这意味着是多头右侧追多的机会。)
交易信号
① 超买超卖信号
红色区域(超买):趋势曲线 ≥ 0.6 时,可能出现回调风险
绿色区域(超卖):趋势曲线 ≤ -0.615 时,可能出现反弹机会
② 成交量爆发信号
顶部红色圆圈:代表成交量比率的爆发期,可能在当前或未来1-6根K线内出现阶段性高点。
底部黄色圆圈:代表成交量比率的潜在底部机会,可能在当前或未来1-6根K线内出现阶段性低点。
✅ 注意连续大量的顶部红色圆圈和底部黄色圆圈的出现,这意味着极端行情的出现。
③ 背离信号
顶背离(卖出信号):红色倒三角图标(标记为Bearish divergence\Sell)出现在趋势曲线顶部,当价格创新高但趋势曲线未创新高时触发,预示大幅回调风险。
底背离(买入信号):绿色正三角图标(标记为Bullish divergence\Buy)出现在趋势曲线底部,当价格创新低但趋势曲线未创新低时触发,预示底部反弹机会。
使用注意事项
① 交易所推荐:同时使用币安(Binance)和OKX的BTC/USDT现货数据(不同交易所的量能差异可能影响信号准确性)。
② 特殊行情优化:已针对2024-2025年比特币ETF上市后的低波动行情调整参数,未来将持续根据市场变化优化。
③ 强趋势操作提示:当趋势曲线锁定在超买或超卖区,应减少逆势操作。
④ 首次使用建议:观察历史行情以验证信号特征,震荡市捕捉反转点,趋势市识别延续信号。
最简单操作要诀
✅ 底部抄底组合:强空头趋势转弱空头 + 绿色超卖区 + 底背离绿色三角 + 底部黄色成交量圈
✅ 顶部逃顶组合:强多头趋势转弱多头趋势转换 + 红色超买区 + 顶背离红色三角 + 顶部红色成交量圈
✅ 趋势延续信号:趋势曲线锁定在 ±0.7 时,耐心等待锁定解除
推特联系:Jeffmo0769
Trend Master Navigator User Guide
⚠ Important: Please read this guide carefully before using the indicator
Core Functionality
This indicator analyzes Bitcoin's trading volume, MACD, RSI, trend strength, and volume ratio to generate the Trend Master Navigator, which oscillates between -1 and 1 to assist in buy/sell decisions. The indicator is best suited for 4-hour (4H) charts and is ideal for 1-2 week swing trading.The Trend Master Navigator is suitable for cryptocurrencies with high spot trading volumes, such as BTC , ETH , and DOGE .
Interpreting the Trend Curve
① Market States (Curve Colors)
Dark Purple: Range-bound market
Light Red: Weak bullish trend
Deep Red: Strong bullish trend
Light Green: Weak bearish trend
Deep Green: Strong bearish trend
② Key Signal Zones
Red Zone (Overbought): Trend curve ≥ 0.6 → Potential pullback risk
Green Zone (Oversold): Trend curve ≤ -0.615 → Potential rebound opportunity
③ Locking Mechanism
During strong bullish trends (deep red) and strong bearish trends (deep green), and partial weak trends:
If the trend curve breaks above the red zone (overbought) and market trend strength remains in a strong trend or robust weak trend, the trend curve will lock near 0.7 (original curve continues in gray).
If the trend curve breaks below the green zone (oversold) and market trend strength remains in a strong trend or robust weak trend, the trend curve will lock near -0.7 (original curve continues in gray).
This indicates that the trend may continue, and it is advisable to wait until the lock period ends before taking action.
✅ In the context of extreme bullish trends (e.g., ETH from July 10 to 20, 2025, where the trend curve remained red, indicating a persistent bullish trend), even though ETH's trend curve once dipped into the oversold zone, causing the curve to lock at the bottom for 3 K-line periods, this signifies a right-side buying opportunity during the bullish trend.
Trading Signals
① Overbought/Oversold Signals
Red Zone (Overbought): Trend curve ≥ 0.6 → Potential pullback risk
Green Zone (Oversold): Trend curve ≤ -0.615 → Potential rebound opportunity
② Volume Explosion Signals
Top Red Circle: Represents a volume ratio explosion period, possibly indicating a phase peak within the current or next 1-6 bars.
Bottom Yellow Circle: Represents a potential bottom opportunity in volume ratio, possibly indicating a phase trough within the current or next 1-6 bars.
✅ Pay attention to the continuous appearance of top red circles and bottom yellow circles, as this signals the emergence of extreme market conditions.
③ Divergence Signals
Bearish Divergence (Sell): Red inverted triangle icon (marked as Bearish divergence\Sell) appears at the trend curve top when the price makes a new high, but the trend curve does not; this indicates a significant pullback risk.
Bullish Divergence (Buy): Green upright triangle icon (marked as Bullish divergence\Buy) appears at the trend curve bottom when the price makes a new low, but the trend curve does not; this indicates a potential bottom rebound opportunity.
Other Usage Notes
① Exchange Recommendation: Use Binance and OKX BTC/USDT spot data simultaneously (volume discrepancies across different exchanges may affect signal accuracy).
② Special Market Optimization: Parameters have been adjusted for the low-volatility era following the Bitcoin ETF launch (2024-2025) and will continue to be optimized based on market changes.
③ Strong Trend Operation Tips: When the trend curve is locked in overbought or oversold zones, reduce counter-trend operations.
④ First Use Recommendation: Observe historical market trends to validate signal characteristics. Capture reversal points in range-bound markets and identify continuation signals in trending markets.
Simplest Trading Tactics
✅ Bottom Picking Setup: Transition from strong bearish trend to weak bearish + Green oversold zone + Bullish divergence green triangle + Bottom yellow volume circle
✅ Top Selling Setup: Transition from strong bullish trend to weak bullish trend + Red overbought zone + Bearish divergence red triangle + Top red volume circle
✅ Trend Continuation Signal: Trend curve locked at ±0.7 → Wait patiently for lock release
Contact on X: Jeffmo0769
Custom NY Opening Bell - Today OnlyThis indicator shows NYC ET opening bell.
It will displace a dashed line on it.
This can be very useful for trades journaling their trades with screenshots.
My indicator will let you know when opening bell happened.
It is also very great when doing backtesting.
Nifty Buy/Sell Signals with RSI & Fisheruy Signal when:
RSI crosses above 40 from below.
Fisher Transform crosses above its signal line (bullish crossover).
Sell Signal when:
RSI crosses below 60 from above.
Fisher Transform crosses below its signal line (bearish crossover).
TheEdgeKeeper MM
📉 Still losing in the long run despite using risk management? Stuck at breakeven, or making profits that barely move the needle on your financial freedom?
You're not alone — this is the story of over 90% of traders.
📊 After years of studying setups, market behavior, and risk models, one truth stood out:
Markets run on math and probabilities — and only those who play by those rules can win sustainably.
We built a smarter way to manage capital — one that adapts to any performance phase, maximizes gains in profitable cycles, and protects you in rough patches.
Not just about surviving — but growing.
⚙️ That’s the philosophy behind **The Edgekeeper**, a capital management **indicator** specifically designed for **crypto traders** here on **TradingView**.
✨ Try it once — and watch how math reshapes your trading game.
📲 (t.me)
Hypothesis TF Strategy EvaluationThis script provides a statistical evaluation framework for trend-following strategies by examining whether mean returns (measured here as 1-period Rate of Change, ROC) differ significantly across different price quantile groups.
Specifically, it:
Calculates rolling 25th (Q1) and 75th (Q3) percentile levels of price over a user-defined window.
Classifies returns into three groups based on whether price is above Q3, between Q1 and Q3, or below Q1.
Computes mean returns and sample sizes for each group.
Performs Welch's t-tests (which account for unequal variances) between groups to assess if their mean returns differ significantly.
Displays results in two tables:
Summary Table: Shows mean ROC and number of observations for each group.
Hypothesis Testing Table: Shows pairwise t-statistics with significance stars for 95% and 99% confidence levels.
Key Features
Rolling quantile calculations: Captures local price distributions dynamically.
Robust hypothesis testing: Welch's t-test allows for heteroskedasticity between groups.
Significance indicators: Easy visual interpretation with "*" (95%) and "**" (99%) significance levels.
Visual aids: Plots Q1 and Q3 levels on the price chart for intuitive understanding.
Extensible and transparent: Fully commented code that emphasizes the evaluation process rather than trading signals.
Important Notes
Not a trading strategy: This script is intended as a tool for research and validation, not as a standalone trading system.
Look-ahead bias caution: The calculation carefully avoids look-ahead bias by computing quantiles and ROC values only on past data at each point.
Users must ensure look-ahead bias is removed when applying this or similar methods, as look-ahead bias would artificially inflate performance and statistical significance.
The statistical tests rely on the assumption of independent samples, which might not fully hold in financial time series but still provide useful insights
Usage Suggestions
Use this evaluation framework to validate hypotheses about the behavior of returns under different price regimes.
Integrate with your strategy development workflow to test whether certain market conditions produce statistically distinct return distributions.
Example
In this example, the script was run with a quantile length of 20 bars and a lookback of 500 bars for ROC classification.
We consider a simple hypothetical "strategy":
Go long if the previous bar closed above Q3 the 75th percentile).
Go short if the previous bar closed below Q1 (the 25th percentile).
Stay in cash if the previous close was between Q1 and Q3.
The screenshot below demonstrates the results of this evaluation. Surprisingly, the "long" group shows a negative average return, while the "short" group has a positive average return, indicating mean reversion rather than trend following.
The hypothesis testing table confirms that the only statistically significant difference (at 95% or higher confidence) is between the above Q3 and below Q1 groups, suggesting a meaningful divergence in their return behavior.
This highlights how this framework can help validate or challenge intuitive assumptions about strategy performance through rigorous statistical testing.
BTC Breakout Bot (TP/SL + Alerts) 🚀This strategy targets Bitcoin (BTC/USDT) breakout trades by detecting price moves beyond recent highs and lows, with built-in risk management and alerts.
How it works:
📈 Long Entry: When price breaks above the highest high of the last N candles (default 20)
📉 Short Entry: When price breaks below the lowest low of the last N candles
🎯 Take Profit: Automatically set at a percentage from entry price (default 5%)
⚠️ Stop Loss: Automatically set at a percentage from entry price (default 2%)
🔔 Alerts: Triggered on every long and short breakout trade, compatible with Telegram/webhook notifications
Parameters:
⏳ Breakout Lookback: Number of candles used to identify breakout levels (default 20)
💰 Take Profit (%): Profit target as % from entry (default 5%)
🛑 Stop Loss (%): Maximum allowed loss as % from entry (default 2%)
Simple SMA StrategyThis strategy uses two Simple Moving Averages (SMAs) to spot trend changes and generate trade signals on any market or timeframe.
How it works:
➡️ Long Entry: When the fast SMA (default 14) crosses above the slow SMA (default 28), enter a long position.
⬇️ Short Entry: When the fast SMA crosses below the slow SMA, enter a short position.
🔄 Exit: Positions close when the opposite crossover happens, capturing trend reversals.
Features:
⚙️ Adjustable SMA lengths for different markets or styles
💰 Position sizing as % of equity (default 1%) for risk management
📊 Plots fast (blue) and slow (orange) SMAs on the chart
🔔 Alerts on every long & short entry crossover for automation or notifications
Use Cases:
Perfect for trend-following traders in crypto, stocks, forex, and more — simple and effective.
⚠️ Disclaimer
Backtests and alerts are based on historical data and don’t guarantee future results. Always test carefully and manage your risk!
My strategyThis strategy is designed for BTC/USDT breakout trading on short-to-medium timeframes. It enters positions when price breaks out above recent highs or below recent lows, using automated risk management and alerts.
🔍 Core Logic
Long entry: When price breaks above the highest high of the last N candles (default: 20).
Short entry: When price breaks below the lowest low of the last N candles.
This logic helps detect momentum-driven breakout moves based on recent price consolidation.
⚙️ Strategy Settings
Capital: $10,000
Order size: 1% of equity per trade
Commission: 0.1% per trade (simulating exchange fees)
Slippage: 3 ticks (for realism)
Take Profit: 3% from entry
Stop Loss: 1.5% from entry
These settings aim to provide realistic, risk-conscious backtest results, suitable for individual traders.
📊 Visual Features
Green line = Breakout High
Red line = Breakout Low
Entry/exit markers are plotted on the chart
🔔 Alerts
Alerts are integrated for:
Long Entry
Short Entry
You can create TradingView alerts using this script to automate notifications or connect to external bots (e.g., via webhook for Telegram or Discord).
🧠 How This Strategy Is Different
While many breakout bots use standard Donchian channels, this version allows you to:
Tune the breakout sensitivity (via the adjustable lookback period)
Customize TP/SL without external inputs
Integrate alerts for real-time decision making or automation
The simplicity and flexibility make it useful as both a live tool and a framework for further development.
⚠️ Disclaimer
This script is for educational purposes only. Backtests are based on historical data and do not guarantee future results. Always test thoroughly before using in live trading. Risk only what you can afford to lose.
Markov Chain Trend ProbabilityA Markov Chain is a mathematical model that predicts future states based on the current state, assuming that the future depends only on the present (not the past). Originally developed by Russian mathematician Andrey Markov, this concept is widely used in:
Finance: Risk modeling, portfolio optimization, credit scoring, algorithmic trading
Weather Forecasting: Predicting sunny/rainy days, temperature patterns, storm tracking
Here's an example of a Markov chain: If the weather is sunny, the probability that will be sunny 30 min later is say 90%. However, if the state changes, i.e. it starts raining, how the probability that will be raining 30 min later is say 70% and only 30% sunny.
Similar concept can be applied to markets price action and trends.
Mathematical Foundation
The core principle follows the Markov Property: P(X_{t+1}|X_t, X_{t-1}, ..., X_0) = P(X_{t+1}|X_t)
Transition Matrix :
-------------Next State
Current----
--------P11 P12
-----P21 P22
Probability Calculations:
P(Up→Up) = Count(Up→Up) / Count(Up states)
P(Down→Down) = Count(Down→Down) / Count(Down states)
Steady-state probability: π = πP (where π is the stationary distribution)
State Definition:
State = UPTREND if (Price_t - Price_{t-n})/ATR > threshold
State = DOWNTREND if (Price_t - Price_{t-n})/ATR < -threshold
How It Works in Trading
This indicator applies Markov Chain theory to market trends by:
Defining States: Classifies market conditions as UPTREND or DOWNTREND based on price movement relative to ATR (Average True Range)
Learning Transitions: Analyzes historical data to calculate probabilities of moving from one state to another
Predicting Probabilities: Estimates the likelihood of future trend continuation or reversal
How to Use
Parameters:
Lookback Period: Number of bars to analyze for trend detection (default: 14)
ATR Threshold: Sensitivity multiplier for state changes (default: 0.5)
Historical Periods: Sample size for probability calculations (default: 33)
Trading Applications:
Trend confirmation for entry/exit decisions
Risk assessment through probability analysis
Market regime identification
Early warning system for potential trend reversals
The indicator works on any timeframe and asset class. Enjoy!
Clarix 5m Scalping Breakout StrategyPurpose
A 5-minute scalping breakout strategy designed to capture fast 3-5 pip moves, using premium/discount zone filters and market bias conditions.
How It Works
The script monitors price action in 5-minute intervals, forming a 15-minute high and low range by tracking the highs and lows of the first 3 consecutive 5-minute candles starting from a custom time. In the next 3 candles, it waits for a breakout above the 15m high or below the 15m low while confirming market bias using custom equilibrium zones.
Buy signals trigger when price breaks the 15m high while in a discount zone
Sell signals trigger when price breaks the 15m low while in a premium zone
The strategy simulates trades with fixed 3-5 pip take profit and stop loss values (configurable). All trades are recorded in a backtest table with live trade results and an automatically updated win rate.
Features
Designed exclusively for the 5-minute timeframe
Custom 15-minute high/low breakout logic
Premium, Discount, and Equilibrium zone display
Built-in backtest tracker with live trade results, statistics, and win rate
Customizable start time, take profit, and stop loss settings
Real-time alerts on breakout signals
Visual markers for trade entries and failed trades
Consistent win rate exceeding 90–95% on average when following market conditions
Usage Tips
Use strictly on 5-minute charts for accurate signal performance. Avoid during high-impact news releases.
Important: Once a trade is opened, manually set your take profit at +3 to +5 pips immediately to secure the move, as these quick scalps often hit the target within a single candle. This prevents missed exits during rapid price action.
GLOBEX BOX v1.0All credit to the creator and teacher of this strategy, @RS.
The "GOBEX BOX v1.0" indicator draws customizable horizontal rectangles (with optional midlines and labels) around specific opening candles in the EST timezone ("America/New_York").
It highlights:
The 09:30–09:31 EST 1-minute candle high/low for Monday through Friday.
The 18:00–18:05 EST 5-minute candle high/low for Sunday through Thursday.
Various customizable features are in the indicator settings.
Happy trading!
HTF Current/Average RangeThe "HTF(Higher Timeframe) Current/Average Range" indicator calculates and displays the current and average price ranges across multiple timeframes, including daily, weekly, monthly, 4 hour, and user-defined custom timeframes.
Users can customize the lookback period, table size, timeframe, and font color; with the indicator efficiently updating on the final bar to optimize performance.
When the current range surpasses the average range for a given timeframe, the corresponding table cell is highlighted in green, indicating potential maximum price expansion and signaling the possibility of an impending retracement or consolidation.
For day trading strategies, the daily average range can serve as a guide, allowing traders to hold positions until the current daily range approaches or meets the average range, at which point exiting the trade may be considered.
For scalping strategies, the 15min and 5min average range can be utilized to determine optimal holding periods for fast trades.
Other strategies:
Intraday Trading - 1h and 4h Average Range
Swing Trading - Monthly Average Range
Short-term Trading - Weekly Average Range
Also using these statistics in accordance with Power 3 ICT concepts, will assist in holding trades to their statistical average range of the chosen HTF candle.
CODE
The core functionality lies in the data retrieval and table population sections.
The request.security function (e.g., = request.security(syminfo.tickerid, "D", , lookahead = barmerge.lookahead_off)) retrieves high and low prices from specified timeframes without lookahead bias, ensuring accurate historical data.
These values are used to compute current ranges and average ranges (ta.sma(high - low, avgLength)), which are then displayed in a dynamically generated table starting at (if barstate.islast) using table.new, with conditional green highlighting when the current range is greater than average range, providing a clear visual cue for volatility analysis.
ES Gap Trading Levels# ES Gap Trading Levels
## Overview
A professional gap trading indicator designed specifically for ES Futures traders. This indicator automatically captures the closing price at 3:59 PM ET (NYSE close) and immediately displays key gap levels for the evening trading session starting at 6:00 PM ET.
## Key Features
### ✅ **Automatic Gap Level Detection**
- Captures ES Futures closing price at 3:59-4:00 PM ET
- Instantly displays gap levels for immediate session planning
- Resets daily for fresh gap analysis
### ✅ **Six Critical Gap Levels**
- **±10 Points** (White lines) - Short-term gap targets
- **±20 Points** (Light Blue lines) - Medium gap targets
- **±30 Points** (Red lines) - Extended gap targets
### ✅ **Professional Display**
- Clean horizontal lines with customizable colors
- Clear labels showing point values (+30, +20, +10, -10, -20, -30)
- Gap levels table showing exact price targets
- Optional closing price reference line
### ✅ **Customizable Settings**
- Adjustable line colors, width, and extension
- Toggle labels and reference table on/off
- Manual closing price override for testing
- Debug mode for troubleshooting
### ✅ **Smart Management**
- Automatic cleanup of previous day's levels
- Lines appear immediately after market close
- Optimized for ES1!, MES1!, and other ES futures contracts
## How It Works
1. **Market Close Capture**: At 3:59 PM ET, the indicator captures the ES closing price
2. **Instant Display**: Gap levels immediately appear on your chart
3. **Evening Session Ready**: Lines are positioned for 6:00 PM ET session start
4. **Daily Reset**: Old levels are automatically cleared each new trading day
## Perfect For:
- Gap trading strategies
- Overnight futures trading
- ES futures scalping
- Session transition analysis
- Risk management levels
## Usage Tips:
- Best used on 1-15 minute ES futures charts
- Ensure chart timezone shows ET times
- Use manual mode for backtesting specific dates
- Combine with volume and momentum indicators
## Settings Guide:
- **Display Settings**: Control lines, labels, and table visibility
- **Colors**: Customize each gap level color scheme
- **Manual Settings**: Override closing price for testing
- **Debug**: View time detection and diagnostic information
*Designed by traders, for traders. Clean, professional, and reliable gap level detection for serious ES futures trading.*
6FG Trading Plan Checklist & Setups6FG Trading Plan Checklist & Setups
Trend context (4H & H1)
Candle confirmations on 15M (bull/bear engulfing & pin bar)
Your two A+ setups:
• H1 Break of Structure (BxOxS)
• Trap Break (with last LH/HL break logic)
Alerts for both setups
Waterfall ScreenerHow to Use This to Screen Stocks: A Step-by-Step Guide
Save the Screener Script: Open the Pine Editor, paste the code above, and save it with a clear name like "Waterfall Screener".
Open the Stock Screener: Go to the TradingView homepage or any chart page and click the "Screener" tab at the bottom. Make sure you are on the "Stock" screener.
Set Your Market: Choose the market you want to scan (e.g., NASDAQ, NYSE).
Add Your Custom Filter (The Magic Step):
Click the "Filters" button on the right side of the screener panel.
In the search box that appears, type the name of your new script: "Waterfall Screener".
It will appear as a selectable filter. Click it.
Configure the Filter:
A new filter will appear in your screener list named "Waterfall Screener".
You can now set conditions for the "ScreenerSignal" value we plotted.
To find stocks with a new, actionable trade plan, set the filter to:
Waterfall Screener | Equal | 1
Refine and Scan:
Add other essential filters to reduce noise, such as:
Volume > 1M (to find liquid stocks)
Market Cap > 1B (to find established companies)
The screener will now automatically update and show you a list of all stocks that currently have a "PENDING_ENTRY" setup according to the indicator's logic and your chosen timeframe (e.g., Daily).
Quantized Market Profile (TPO)Quantized Market Profile (QMP)
Advanced TPO-based price distribution built for structural auction clarity. Fully customisable. Built from pure AMT logic.
📊 Core Concept
Quantized Market Profile (QMP) builds out classic TPO structures with modern flexibility. Each row represents a quantized price level (TPO row) derived from auto or manual tick sizing. Profiles develop across timeframes or fixed sessions, showing value development, distribution shape, and key auction levels.
Unlike TradingView’s built-in TPO/MP tools, QMP supports profiles as small as M5 all the way up to Monthly+ , giving you full control over auction resolution.
This tool captures and renders:
• Profile shapes
• POC
• Value Area
• Single Prints
• Session open/close
• Initial Balance
• Midpoint extensions
• Split or Unsplit profiles
⚙️ How It Works
Tick Quantization:
• Auto: Calculates row size from recent high-low range across N bars
• Manual: Fixed row size via user input
TPO Rendering:
• Choose letters, squares, or circles to show price visits per row
• Split mode : Each subperiod (e.g. 30m) is shown as a distinct column
• Unsplit mode : TPOs are stacked into a single distribution
• Toggle open/close markers and initial balance display
Session Logic:
• Use Intraday (e.g. 30m, 90m), Sessions, Daily, Weekly, Monthly, or Fixed ranges
• Supports custom session times and timezones
• Minimum profile window: 5 minutes
• Maximum: Unlimited
POC & Value Area:
• POC = price level with highest TPO count
• Value Area expands around POC to cover the defined percentage
• Optional extensions project levels across the chart
IB, Midpoint, and High/Low Extensions:
• Marks Initial Balance range
• Midpoint by High/Low or TPO-weighted median
• Dotted guide lines for session extremes
📈 Visual Output
Each TPO rendered as a letter or symbol
Profile may be split or stacked depending on context
Open/Close markers and profile annotations supported
Extensions for VAH, VAL, POC, IB, Midpoint, High/Low
🔧 Inputs
Tick Size Mode: Auto or Manual
Profile Timeframe: Intraday (minutes), Sessions, Days, Weeks, Months, Fixed
Split Profile: Toggle between structured (split) and stacked (unsplit) views
Session Time & Timezone: Supports any market type
Rendering Options: Font, TPO character, size, open/close display
Extensions: Enable/disable guides for key auction levels
🧠 Use Cases
Monitor structural shifts in value
Support responsive or initiative trade planning
Compare session distribution shapes
Use extended levels as trade triggers or zones
Pair with histogram/bar tools to complete auction view
Part of the Quantized AMT Suite:
• Quantized Rotation Factor Bars
• Quantized Rotation Factor Histogram
• Quantized Market Profile
Developed by: @luc_crypto
License: Mozilla Public License 2.0