Squeeze Momentum Regression Clouds [SciQua]╭──────────────────────────────────────────────╮
☁️ Squeeze Momentum Regression Clouds
╰──────────────────────────────────────────────╯
🔍 Overview
The Squeeze Momentum Regression Clouds (SMRC) indicator is a powerful visual tool for identifying price compression , trend strength , and slope momentum using multiple layers of linear regression Clouds. Designed to extend the classic squeeze framework, this indicator captures the behavior of price through dynamic slope detection, percentile-based spread analytics, and an optional UI for trend inspection — across up to four customizable regression Clouds .
────────────────────────────────────────────────────────────
╭────────────────╮
⚙️ Core Features
╰────────────────╯
Up to 4 Regression Clouds – Each Cloud is created from a top and bottom linear regression line over a configurable lookback window.
Slope Detection Engine – Identifies whether each band is rising, falling, or flat based on slope-to-ATR thresholds.
Spread Compression Heatmap – Highlights compressed zones using yellow intensity, derived from historical spread analysis.
Composite Trend Scoring – Aggregates directional signals from each Cloud using your chosen weighting model.
Color-Coded Candles – Optional candle coloring reflects the real-time composite score.
UI Table – A toggleable info table shows slopes, compression levels, percentile ranks, and direction scores for each Cloud.
Gradient Cloud Styling – Apply gradient coloring from Cloud 1 to Cloud 4 for visual slope intensity.
Weight Aggregation Options – Use equal weighting, inverse-length weighting, or max pooling across Clouds to determine composite trend strength.
────────────────────────────────────────────────────────────
╭──────────────────────────────────────────╮
🧪 How to Use the Indicator
1. Understand Trend Bias with Cloud Colors
╰──────────────────────────────────────────╯
Each Cloud changes color based on its current slope:
Green indicates a rising trend.
Red indicates a falling trend.
Gray indicates a flat slope — often seen during chop or transitions.
Cloud 1 typically reflects short-term structure, while Cloud 4 represents long-term directional bias. Watch for multi-Cloud alignment — when all Clouds are green or red, the trend is strong. Divergence among Clouds often signals a potential shift.
────────────────────────────────────────────────────────────
╭───────────────────────────────────────────────╮
2. Use Compression Heat to Anticipate Breakouts
╰───────────────────────────────────────────────╯
The space between each Cloud’s top and bottom regression lines is measured, normalized, and analyzed over time. When this spread tightens relative to its history, the script highlights the band with a yellow compression glow .
This visual cue helps identify squeeze zones before volatility expands. If you see compression paired with a changing slope color (e.g., gray to green), this may indicate an impending breakout.
────────────────────────────────────────────────────────────
╭─────────────────────────────────╮
3. Leverage the Optional Table UI
╰─────────────────────────────────╯
The indicator includes a dynamic, floating table that displays real-time metrics per Cloud. These include:
Slope direction and value , with historical Min/Max reference.
Top and Bottom percentile ranks , showing how price sits within the Cloud range.
Current spread width , compared to its historical norms.
Composite score , which blends trend, slope, and compression for that Cloud.
You can customize the table’s position, theme, transparency, and whether to show a combined summary score in the header.
────────────────────────────────────────────────────────────
╭─────────────────────────────────────────────╮
4. Analyze Candle Color for Composite Signals
╰─────────────────────────────────────────────╯
When enabled, the indicator colors candles based on a weighted composite score. This score factors in:
The signed slope of each Cloud (up, down, or flat)
The percentile pressure from the top and bottom bands
The degree of spread compression
Expect green candles in bullish trend phases, red candles during bearish regimes, and gray candles in mixed or low-conviction zones.
Candle coloring provides a visual shorthand for market conditions , useful for intraday scanning or historical backtesting.
────────────────────────────────────────────────────────────
╭────────────────────────╮
🧰 Configuration Guidance
╰────────────────────────╯
To tailor the indicator to your strategy:
Use Cloud lengths like 21, 34, 55, and 89 for a balanced multi-timeframe view.
Adjust the slope threshold (default 0.05) to control how sensitive the trend coloring is.
Set the spread floor (e.g., 0.15) to tune when compression is detected and visualized.
Choose your weighting style : Inverse Length (favor faster bands), Equal, or Max Pooling (most aggressive).
Set composite weights to emphasize trend slope, percentile bias, or compression—depending on your market edge.
────────────────────────────────────────────────────────────
╭────────────────╮
✅ Best Practices
╰────────────────╯
Use aligned Cloud colors across all bands to confirm trend conviction.
Combine slope direction with compression glow for early breakout entry setups.
In choppy markets, watch for Clouds 1 and 2 turning flat while Clouds 3 and 4 remain directional — a sign of potential trend exhaustion or consolidation.
Keep the table enabled during backtesting to manually evaluate how each Cloud behaved during price turns and consolidations.
────────────────────────────────────────────────────────────
╭───────────────────────╮
📌 License & Usage Terms
╰───────────────────────╯
This script is provided under the Creative Commons Attribution-NonCommercial 4.0 International License .
✅ You are allowed to:
Use this script for personal or educational purposes
Study, learn, and adapt it for your own non-commercial strategies
❌ You are not allowed to:
Resell or redistribute the script without permission
Use it inside any paid product or service
Republish without giving clear attribution to the original author
For commercial licensing , private customization, or collaborations, please contact Joshua Danford directly.
Volatility
VWAP-RSI Scalper FINAL v1Description
This script implements a robust, battle-tested intraday scalping strategy designed for prop firm challenges, funded trader programs, and serious futures scalpers.
It combines VWAP, RSI, EMA trend, and ATR-based risk management to capture high-probability mean reversion and momentum moves during the most liquid hours of the trading day.
Core Logic
RSI (Relative Strength Index):
Trades are triggered when the RSI is either oversold or overbought using a short lookback (default: 3). This ensures only the strongest intraday reversals or exhaustion moves are considered.
VWAP Filter:
Longs are only taken above VWAP, shorts only below VWAP, aligning trades with the session’s dominant bias.
EMA Filter:
Additional trend quality filter—longs require price above EMA, shorts below EMA.
Session Control:
Only trades between user-defined session hours (default: US cash session), eliminating overnight/illiquid action.
ATR-based Dynamic Stops & Targets:
Every trade uses a stop loss at 1x ATR and a take profit at 2x ATR for a positive risk/reward ratio.
Max Trades Per Day:
Prevents overtrading and controls risk exposure (default: 3).
Performance (Sample Backtest)
Profit Factor: 1.37+ (prop-firm quality)
Drawdown: <1% (very conservative risk)
Win Rate: 37–48% (RR > 1, so high edge)
Consistency: Smooth, steady equity curve over hundreds of trades.
Best For:
ES/NQ/CL/GC intraday traders
Prop firm evaluation challenges (Tradeify, Topstep, Apex, etc.)
Anyone needing robust, no-nonsense systematic edge for futures or indices.
How to Use & Tune
Apply to 3min, 5min, or 15min charts of liquid futures or indices.
Change parameters in the settings panel to suit your asset, volatility, or session hours.
Use “Strategy Tester” to validate P&L, win rate, and drawdown.
How to Optimize
Raise/lower RSI length or bands to make signals more/less frequent.
Adjust stop/target multiples for your preferred risk/reward profile.
Change session hours to match your broker or market.
Disclaimer
This is not financial advice. Use on a demo or sim account first. Results will vary by market, slippage, and execution speed. Past performance does not guarantee future results.
If you find this useful, please give it a like, follow for more strategies, and comment your results or questions!
Good luck and safe trading!
Target in ATR by G.I.N.e TradingTarget in ATR (Bar View)
🧭 Purpose:
This indicator visualizes the target level for a trade as a percentage of the ATR (Average True Range). It is designed to help traders adapt their profit-taking logic to current market volatility.
Features:
ATR-based dynamic target: Automatically adjusts to market volatility
Color-coded bars to visually represent volatility regimes:
🟢 Green → High volatility (Target > ATR) → Ideal for trailing stops
🟠 Orange → Moderate volatility (Target between 0.5×ATR and ATR) → Good for fixed targets
🔴 Red → Low volatility (Target < 0.5×ATR) → Consider avoiding trades
Optional line plot to show current target value as a continuous line
Bollinger Heatmap [Quantitative]Overview
The Bollinger Heatmap is a composite indicator that synthesizes data derived from 30 Bollinger bands distributed over multiple time horizons, offering a high-dimensional characterization of the underlying asset.
Algorithm
The algorithm quantifies the current price’s relative position within each Bollinger band ensemble, generating a normalized position ratio. This ratio is subsequently transformed into a scalar heat value, which is then rendered on a continuous color gradient from red to blue. Red hues correspond to price proximity to or extension below the lower band, while blue hues denote price proximity to or extension above the upper band.
Using default parameters, the indicator maps bands over timeframes increasing in a pattern approximating exponential growth, constrained to multiples of seven days. The lower region encodes relationships with shorter-term bands spanning between 1 and 14 weeks, whereas the upper region portrays interactions with longer-term bands ranging from 15 to 52 weeks.
Conclusion
By integrating Bollinger bands across a diverse array of time horizons, the heatmap indicator aims to mitigate the model risk inherent in selecting a single band length, capturing exposure across a richer parameter space.
Quantum Range Filter by MRKcoin### Quantum Range Filter by MRKcoin
**Overview**
This indicator is a sophisticated range detection tool designed based on the principles of quantitative multi-factor models. Instead of relying on a single condition, it assesses the market from three different dimensions to provide a more robust and reliable identification of range-bound (sideways) markets.
When the background is highlighted in red, it indicates that the market is likely in a range phase, suggesting that trend-following strategies may be less effective, and mean-reversion (range trading) strategies could be more suitable.
---
**Core Logic: A Multi-Factor Approach**
The filter evaluates the market state using the following three independent factors:
1. **Momentum Volatility (RSI Bollinger Bandwidth):**
* **Question:** Is the momentum of the market contracting?
* **Method:** It measures the width of the Bollinger Bands applied to the RSI. A narrow bandwidth suggests that momentum is consolidating, which is a common characteristic of a range market.
2. **Price Volatility (ATR Ratio):**
* **Question:** Is the actual price movement shrinking?
* **Method:** It calculates the Average True Range (ATR) as a percentage of the closing price. A low ratio indicates that the price volatility itself is low, reinforcing the case for a range environment.
3. **Absence of Trend (ADX):**
* **Question:** Is there a lack of a clear directional trend?
* **Method:** It uses the Average Directional Index (ADX), a standard tool for measuring trend strength. A low ADX value provides active confirmation that the market is not in a trending phase.
---
**How to Use**
1. **Range Detection:** The primary use is to identify ranging markets. The red highlighted background serves as a visual cue.
2. **Strategy Selection:**
* **Inside the Red Zone:** Consider using range-trading strategies (e.g., buying at support, selling at resistance, using oscillators like RSI or Stochastics for overbought/oversold signals). Avoid using trend-following indicators like moving average crossovers, as they are prone to generating false signals in these conditions.
* **Outside the Red Zone:** The market is likely trending. Trend-following strategies are more appropriate.
3. **Parameter Tuning (In Settings):**
* **This is the key to adapting the filter to any market or timeframe.** Different assets (like BTC vs. ETH) and different timeframes have unique volatility characteristics. Don't hesitate to adjust the parameters to fit the specific chart you are analyzing.
* **Range Detection Score:** This is the most important setting. It determines how many of the three factors must agree to classify the market as a range. The default is `2`, which provides a good balance.
* If the filter seems **too sensitive** (highlighting too often), increase the score to `3`.
* If the filter seems **not sensitive enough** (missing obvious ranges), decrease the score to `1`.
* **Factor Thresholds:** For fine-tuning, adjust the thresholds for each factor.
* **`RSI BB Width Threshold`:** If you want to detect even tighter momentum consolidations, *decrease* this value.
* **`ATR Ratio Threshold`:** If you want to be stricter about price volatility, *decrease* this value.
* **`ADX Threshold`:** To be more lenient on what constitutes a "trendless" market, *increase* this value (e.g., to 30). To be stricter, *decrease* it (e.g., to 20).
* **Pro Tip:** Use the Debug Table (uncomment it in the script's code) to see the live values of each factor. This will give you a clear idea of how to set the thresholds for the specific asset you are trading.
**Disclaimer**
This indicator is a tool to assist in market analysis and should not be used as a standalone signal for making financial decisions. Always use it in conjunction with your own trading strategy, risk management, and analysis. Past performance is not indicative of future results.
**Credits**
* **Concept & Vision:** MRKcoin
VRP Zones with Strategy Labels & TooltipsThis script marries the core concept of Volatility Risk Premium—how far implied vol sits above or below realized vol—with practical, on-chart signals that guide you toward specific options trades. By seeing “High VRP” in orange or “Negative VRP” in red right on your price bars (with hover-for-tooltip strategy tips), you get both the quantitative measure and the qualitative trade idea in one glance.
ACR(Average Candle Range) With TargetsWhat is ACR?
The Average Candle Range (ACR) is a custom volatility metric that calculates the mean distance between the high and low of a set number of past candles. ACR focuses only on the actual candle range (high - low) of specific past candles on a chosen timeframe.
This script calculates and visualizes the Average Candle Range (ACR) over a user-defined number of candles on a custom timeframe. It displays a table of recent range values, plots dynamic bullish and bearish target levels, and marks the start of each new candle with a vertical line. All calculations update in real time as price action develops. This script was inspired by the “ICT ADR Levels - Judas x Daily Range Meter°” by toodegrees.
Key Features
Custom Timeframe Selection: Choose any timeframe (e.g., 1D, 4H, 15m) for analysis.
User-Defined Lookback: Calculate the average range across 1 to 10 previous candles.
Dynamic Targets:
Bullish Target: Current candle low + ACR.
Bearish Target: Current candle high – ACR.
Live Updates: Targets adjust intrabar as highs or lows change during the current candle.
Candle Start Markers: Vertical lines denote the open of each new candle on the selected timeframe.
Floating Range Table:
Displays the current ACR value.
Lists individual ranges for the previous five candles.
Extend Target Lines: Choose to extend bullish and bearish target levels fully across the screen.
Global Visibility Controls: Toggle on/off all visual elements (targets, vertical lines, and table) for a cleaner view.
How It Works
At each new candle on the user-selected timeframe, the script:
Draws a vertical line at the candle’s open.
Recalculates the ACR based on the inputted previous number of candles.
Plots target levels using the current candle's developing high and low values.
Limitation
Once the price has already moved a full ACR in the opposite direction from your intended trade, the associated target loses its practical value. For example, if you intended to trade long but the bearish ACR target is hit first, the bullish target is no longer a reliable reference for that session.
Use Case
This tool is designed for traders who:
Want to visualize the average movement range of candles over time.
Use higher or lower timeframe candles as structural anchors.
Require real-time range-based price levels for intraday or swing decision-making.
This script does not generate entry or exit signals. Instead, it supports range awareness and target projection based on historical candle behavior.
Key Difference from Similar Tools
While this script was inspired by “ICT ADR Levels - Judas x Daily Range Meter°” by toodegrees, it introduces a major enhancement: the ability to customize the timeframe used for calculating the range. Most ADR or candle-range tools are locked to a single timeframe (e.g., daily), but this version gives traders full control over the analysis window. This makes it adaptable to a wide range of strategies, including intraday and swing trading, across any market or asset.
EMA Channel with ATR Offset + 2 Custom EMAsJust an alternative channel indicator to Bollinger Bands or Ketner channels that uses ATR offsets as the corridor of possible movements, which I recommend changing to fit various tickers.
Also thrown in is EMA, default is 100 and 50 periods for trend direction and potential confirmation
2-Day ATR% & Smoothed Position Size (EMA)Position sizing based on 2 day atr. Used to vol target 1 position
OPTIONS GREEKS PROFESSIONAL DASHBOARD ANALYZEROPTIONS GREEKS’ PROFESSIONAL DASHBOARD ANALYZER
(Study Material & Script Description)
Overview
The "Professional Options Greeks Analyzer" by aiTrendview.com is a comprehensive analytical tool developed using the Black-Scholes Option Pricing Model. It is designed to help traders, investors, and financial analysts measure and visualize the most important first-order Greeks — Delta, Gamma, Theta, Vega, and Rho — along with key metrics like option pricing, implied volatility (IV), break-even points, moneyness, expected move, and risk level. This dashboard is highly configurable and supports various expiry durations, volatility assumptions, and strike price selection modes, providing a deeply customizable yet intuitive user interface.
________________________________________
Core Logic and Calculation Model
The tool is based on the Black-Scholes model, a well-known pricing method for European-style options. The model computes Call and Put prices using parameters such as current spot price (S), strike price (K), time to expiry (T), implied volatility (σ), and risk-free interest rate (r). The d1 and d2 components — central to Black-Scholes — are derived from logarithmic price ratios and volatility-adjusted time decay.
From these, all major Greeks are calculated:
• Delta: Measures the sensitivity of the option's price to the underlying asset's price.
• Gamma: Indicates the rate of change in Delta relative to changes in the underlying.
• Vega: Captures the sensitivity of the option's price to changes in implied volatility.
• Theta: Reflects the rate at which the option loses value due to time decay.
• Rho: Indicates the sensitivity to interest rate changes.
These values are updated in real time and displayed in a tabular format with visual progress bars to help traders interpret values more effectively.
________________________________________
Customization & User Inputs
The indicator allows users to adjust several key parameters to fit different trading scenarios:
• Implied Volatility (IV) can be manually input (default 25%), allowing traders to model expected outcomes under their assumptions.
• Strike Price Mode offers flexibility with "ATM" (At-the-Money) or "Custom" strike selection.
• Expiry Selection includes 7D, 14D, 30D, 60D, and 90D periods, making the Greeks adaptive to different option durations.
• Risk-Free Rate is configurable (default 4.5%) to reflect current economic conditions.
The tool also computes realized volatility from price action over 30 bars, which is compared with implied volatility to calculate IV Rank, categorized as HIGH, MEDIUM, or LOW. This helps traders decide whether options are relatively expensive or cheap.
________________________________________
Visual Dashboard and Interpretation
The dashboard is structured into five key rows:
1. Market Metrics: Asset name, spot price, selected strike, days to expiry, IV, IV Rank, trend over 1-day period, and moneyness (ITM/ATM/OTM).
2. Option Pricing: Call and Put prices, breakeven levels, time value components, expected move, and realized volatility.
3. Greeks: Displays Delta (with progress bar), Gamma, Vega, Theta (Call and Put), and visual interpretation.
4. Risk & Recommendation: Based on IV Rank and short-term trend, the script generates real-time suggestions (e.g., "BUY STRADDLES", "SELL CALL SPREADS").
5. Visual Encoding: Each data point is color-coded — green for positive, red for negative, and gray for neutral — enhancing visual clarity.
This layout not only provides transparency but also helps both novice and professional traders make quick and informed decisions.
________________________________________
Strategy Suggestions and Interpretation
The script provides a status-based recommendation engine that suggests strategic action based on market conditions:
• High IV & Rising Market: Suggests "SELL CALL SPREADS"
• High IV & Falling Market: Suggests "SELL PUT SPREADS"
• Low IV & Sideways Market: Suggests "BUY STRADDLES"
• Unclear Condition: Suggests "MONITOR"
Additionally, the risk level is determined by the Gamma value, which serves as a proxy for position sensitivity — categorized into HIGH, MEDIUM, or LOW.
________________________________________
Use Case and Trader Benefits
This tool is especially beneficial for:
• Options Traders analyzing multiple Greeks in real-time.
• Volatility Strategists comparing implied and realized volatility.
• Retail Investors evaluating premium pricing and moneyness quickly.
• Portfolio Managers visualizing risk and hedging exposures.
The real-time alert system, progress bars, and recommendation logic make it suitable for both manual trading and integration into automated strategies or alerts via webhook/notifications.
________________________________________
Practical Steps for Use
1. Load the script in TradingView’s Pine Script editor and apply it to your desired chart.
2. Choose your expiry duration and configure IV and strike price based on your trade thesis.
3. Observe the Greeks, pricing, IV Rank, and generated recommendations.
4. Use the dashboard to plan spreads, straddles, directional trades, or hedges accordingly.
5. Optionally, create alerts when IV Rank hits HIGH/LOW or when recommended strategies change.
________________________________________
Disclaimer by aiTrendview
The "Professional Options Greeks Analyzer" and all tools or materials provided by aiTrendview.com are strictly intended for educational and informational purposes only. They are not investment advice, financial recommendations, or trading signals. Options trading involves substantial risk and may not be suitable for all investors. Past performance does not guarantee future returns. Users are solely responsible for their decisions and are advised to test strategies in simulation environments before applying them to live trading. Please consult a certified financial advisor or legal counsel before making any financial decisions.
ATR-Scaled Deviation OscillatorATR-DevOsc is a custom momentum-and-volatility adaptive oscillator that scales N-bar price momentum by its rolling deviation and then reacts dynamically to sudden ATR spikes. By shrinking the deviation window when true volatility surges, it amplifies extreme moves—making medium-term trend shifts and deep drawdowns far more likely to breach your predefined thresholds.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
BTC CME Futures Gaps (BTCGapHunt_CME)BTC CME Futures Gaps Indicator
Overview
This indicator visualises price gaps between the daily close and open of Bitcoin CME futures (CME:BTC1!). These gaps are often revisited ("filled") by market price action and may serve as technical targets.
Thanks
... to Maven and the Blockchain Masons (x.com/Masons_DAO) to push me on this topic.
What Is a CME Gap?
CME Bitcoin Futures do not trade 24/7. Gaps form when the market reopens at a different price than where it last closed.
Gaps are often used as support/resistance or liquidity targets.
This indicator tracks, visualises, and alerts on these gaps.
Key Features
Automatic gap detection using daily open/close on CME:BTC1!
Dynamic gap size threshold based on ATR (Average True Range)
Highlight unfilled gaps and track partial fills visually
Alerts for gap formation and fill events
Parameter overlay showing real-time settings
Supported and Overrideable Parameters
ATR Length: Defines the lookback period for ATR calculation (default: 14)
Gap Size Multiplier: Multiplies the ATR to set the dynamic gap threshold (default: 1.0)
Proximity Threshold: Price distance from gap edge to consider it filled (default: 100 USD)
Max Gaps Tracked: Maximum number of concurrent gaps shown (default: 50)
Alerts Enabled: Toggle alerts for gap formation and gap fill events
How the Gap Size Is Calculated
Minimum Gap Size = ATR(14) * Gap Size Multiplier
ATR Length and Gap Size Multiplier are configurable.
Gap threshold adjusts dynamically with market volatility.
Visual Guide
Red Box: Fully unfilled gap
Lemon Yellow Box: Partially filled gap
Right Margin Boxes: Snapshot of unfilled gaps for quick access
Top-Right Panel: Current ATR, Gap Size, Thresholds, etc.
Alerts
Gap Formed: A new gap is detected.
Gap Filled: The gap is either partially or fully filled.
Recommended Timeframes
1H, 4H, 1D (best resolution)
Designed for BTC spot/perpetual charts (e.g., BTCUSD, BTCUSDT)
How To Use
Add the script to your BTC chart.
Monitor red/yellow boxes for unfilled gaps.
Check config panel for current threshold and settings.
Enable alerts via TradingView for real-time updates.
Notes
Up to 50 gaps are tracked (adjustable).
Data source: CME futures via request.security.
All visuals and alerts are time-synced with your chart.
Disclaimer
This script is for educational purposes only. Trade at your own risk.
Dollar Volume + SD [ZTD]### So, What's the Big Deal with SD Dollar Volume?
TL:DR
What you see:
1. $ Volume = (Price * Volume) / 1M (we divide it by 1M by default so you don't have to look at 12 digits but you can select between 100k/1M/10M)
2. User selected M.A. period with difference sources
3. Up to 4 Standard Deviation from that M.A.
4. Color coded (explained below)
That's it, no fancy useless multi color rainbows. Functional, bringing depth and clarity to your analysis based on reality not optical illusion.
--------------
The Long version
You know how we've always looked at volume? It's a classic, but it's got a blind spot. A million shares traded when a stock is at $10 is a completely different ballgame from a million shares traded when it's at $200. The first is $10M in action; the second is $200M. Traditional volume treats them the same, but they are not the same story.
That's the whole idea behind the **Dollar Volume Standard Deviation (SD $VVOLUME)** indicator. Instead of just counting shares, it tracks the **actual dollar amount** ( also refered as Dollar Volume) changing hands. This gives you a much clearer picture of the real financial power behind a price move. It helps you see when the "big money" is truly stepping in or backing off.
Think about it this way: after a 20% drop on earnings, you might see a 10% volume increase and think, "Wow, buyers are stepping in!" But if you look at the *value traded*, it might actually be lower than the day before because the share price is so much cheaper. This indicator cuts through that noise.
What about that smaller stock you bought that suddenly doubles in prices in a matter of months. Do you really thing the volume you are looking at carries any meaning anymore?
On longer time frame? Think about Volume traded vs Value Traded on NVDA for example. Looking at volume alone on those charts is absolutely meaningless. I even wonder why volume alone ever existed in the first place as an indicator.
### How to Use It in Your Trading
This isn't just theory; here’s how you can actually use it to make better decisions.
#### Reading the Indicator
The indicator is designed to be visual and intuitive. Here’s what you're looking at:
* **The Bars:** Each bar on the indicator represents the total dollar value traded during that period. Bigger bar, more money moved.
* **The White Line:** This is your baseline—the moving average of the value traded. It shows you the normal level of money flow for that stock.
* **Bar Colors (The Important Part):**
* **Direction:** **Green** means the stock closed higher in that period. **Red** means it closed lower. Simple enough.
* **Intensity:** This is the real magic. The brightness or intensity of the color tells you how significant that money flow was. A dull, faded bar means the value traded was pretty average. A **bright, intense bar** means the value was way above normal (usually 1 or 2 standard deviations away from the average). *That's* when you need to pay attention.
#### Actionable Signals for Your Strategy
* **Spotting High-Conviction Moves:** When you see a bright, intense red or green bar that towers over the others, that's a signal of major conviction. Big players are making a decisive move, either buying up everything in sight or dumping their positions. This is your cue that something significant is happening.
* **Confirming a Trend's Strength:** Are you in a strong uptrend? Look for a consistent pattern of bright green bars. This tells you that significant capital is flowing in to support the rising price. It's confirmation that the trend has legs.
* **Catching a Weakening Trend (Divergence):** This is a powerful one. Imagine the stock price is grinding out new highs, but on the SD
V
VOLUME
indicator, the bars are getting smaller and less intense. That's a major red flag. It shows that even though the price is inching up, the real money isn't following. There's no conviction, and the trend could be about to reverse.
* **Gauging Liquidity:** If the bars are consistently low and dull, it's a sign that interest in the stock is drying up. It's a good way to spot illiquid conditions and avoid getting trapped in a stock that's hard to get out of.
Ultimately, SD SEED_YASHALGO_NSE_BREADTH:VOLUME helps you see the market from a different angle. It's not just about the noise of shares being traded; it's about following the money.
Hurst Exponent Adaptive Filter (HEAF) [PhenLabs]📊 PhenLabs - Hurst Exponent Adaptive Filter (HEAF)
Version: PineScript™ v6
📌 Description
The Hurst Exponent Adaptive Filter (HEAF) is an advanced Pine Script indicator designed to dynamically adjust moving average calculations based on real time market regimes detected through the Hurst Exponent. The intention behind the creation of this indicator was not a buy/sell indicator but rather a tool to help sharpen traders ability to distinguish regimes in the market mathematically rather than guessing. By analyzing price persistence, it identifies whether the market is trending, mean-reverting, or exhibiting random walk behavior, automatically adapting the MA length to provide more responsive alerts in volatile conditions and smoother outputs in stable ones. This helps traders avoid false signals in choppy markets and capitalize on strong trends, making it ideal for adaptive trading strategies across various timeframes and assets.
Unlike traditional moving averages, HEAF incorporates fractal dimension analysis via the Hurst Exponent to create a self-tuning filter that evolves with market conditions. Traders benefit from visual cues like color coded regimes, adaptive bands for volatility channels, and an information panel that suggests appropriate strategies, enhancing decision making without constant manual adjustments by the user.
🚀 Points of Innovation
Dynamic MA length adjustment using Hurst Exponent for regime-aware filtering, reducing lag in trends and noise in ranges.
Integrated market regime classification (trending, mean-reverting, random) with visual and alert-based notifications.
Customizable color themes and adaptive bands that incorporate ATR for volatility-adjusted channels.
Built-in information panel providing real-time strategy recommendations based on detected regimes.
Power sensitivity parameter to fine-tune adaptation aggressiveness, allowing personalization for different trading styles.
Support for multiple MA types (EMA, SMA, WMA) within an adaptive framework.
🔧 Core Components
Hurst Exponent Calculation: Computes the fractal dimension of price series over a user-defined lookback to detect market persistence or anti-persistence.
Adaptive Length Mechanism: Maps Hurst values to MA lengths between minimum and maximum bounds, using a power function for sensitivity control.
Moving Average Engine: Applies the chosen MA type (EMA, SMA, or WMA) to the adaptive length for the core filter line.
Adaptive Bands: Creates upper and lower channels using ATR multiplied by a band factor, scaled to the current adaptive length.
Regime Detection: Classifies market state with thresholds (e.g., >0.55 for trending) and triggers alerts on regime changes.
Visualization System: Includes gradient fills, regime-colored MA lines, and an info panel for at-a-glance insights.
🔥 Key Features
Regime-Adaptive Filtering: Automatically shortens MA in mean-reverting markets for quick responses and lengthens it in trends for smoother signals, helping traders stay aligned with market dynamics.
Custom Alerts: Notifies on regime shifts and band breakouts, enabling timely strategy adjustments like switching to trend-following in bullish regimes.
Visual Enhancements: Color-coded MA lines, gradient band fills, and an optional info panel that displays market state and trading tips, improving chart readability.
Flexible Settings: Adjustable lookback, min/max lengths, sensitivity power, MA type, and themes to suit various assets and timeframes.
Band Breakout Signals: Highlights potential overbought/oversold conditions via ATR-based channels, useful for entry/exit timing.
🎨 Visualization
Main Adaptive MA Line: Plotted with regime-based colors (e.g., green for trending) to visually indicate market state and filter position relative to price.
Adaptive Bands: Upper and lower lines with gradient fills between them, showing volatility channels that widen in random regimes and tighten in trends.
Price vs. MA Fills: Color-coded areas between price and MA (e.g., bullish green above MA in trending modes) for quick trend strength assessment.
Information Panel: Top-right table displaying current regime (e.g., "Trending Market") and strategy suggestions like "Follow trends" or "Trade ranges."
📖 Usage Guidelines
Core Settings
Hurst Lookback Period
Default: 100
Range: 20-500
Description: Sets the period for Hurst Exponent calculation; longer values provide more stable regime detection but may lag, while shorter ones are more responsive to recent changes.
Minimum MA Length
Default: 10
Range: 5-50
Description: Defines the shortest possible adaptive MA length, ideal for fast responses in mean-reverting conditions.
Maximum MA Length
Default: 200
Range: 50-500
Description: Sets the longest adaptive MA length for smoothing in strong trends; adjust based on asset volatility.
Sensitivity Power
Default: 2.0
Range: 1.0-5.0
Description: Controls how aggressively the length adapts to Hurst changes; higher values make it more sensitive to regime shifts.
MA Type
Default: EMA
Options: EMA, SMA, WMA
Description: Chooses the moving average calculation method; EMA is more responsive, while SMA/WMA offer different weighting.
🖼️ Visual Settings
Show Adaptive Bands
Default: True
Description: Toggles visibility of upper/lower bands for volatility channels.
Band Multiplier
Default: 1.5
Range: 0.5-3.0
Description: Scales band width using ATR; higher values create wider channels for conservative signals.
Show Information Panel
Default: True
Description: Displays regime info and strategy tips in a top-right panel.
MA Line Width
Default: 2
Range: 1-5
Description: Adjusts thickness of the main MA line for better visibility.
Color Theme
Default: Blue
Options: Blue, Classic, Dark Purple, Vibrant
Description: Selects color scheme for MA, bands, and fills to match user preferences.
🚨 Alert Settings
Enable Alerts
Default: True
Description: Activates notifications for regime changes and band breakouts.
✅ Best Use Cases
Trend-Following Strategies: In detected trending regimes, use the adaptive MA as a trailing stop or entry filter for momentum trades.
Range Trading: During mean-reverting periods, monitor band breakouts for buying dips or selling rallies within channels.
Risk Management in Random Markets: Reduce exposure when random walk is detected, using tight stops suggested in the info panel.
Multi-Timeframe Analysis: Apply on higher timeframes for regime confirmation, then drill down to lower ones for entries.
Volatility-Based Entries: Use upper/lower band crossovers as signals in adaptive channels for overbought/oversold trades.
⚠️ Limitations
Lagging in Transitions: Regime detection may delay during rapid market shifts, requiring confirmation from other tools.
Not a Standalone System: Best used in conjunction with other indicators; random regimes can lead to whipsaws if traded aggressively.
Parameter Sensitivity: Optimal settings vary by asset and timeframe, necessitating backtesting.
💡 What Makes This Unique
Hurst-Driven Adaptation: Unlike static MAs, it uses fractal analysis to self-tune, providing regime-specific filtering that's rare in standard indicators.
Integrated Strategy Guidance: The info panel offers actionable tips tied to regimes, bridging analysis and execution.
Multi-Regime Visualization: Combines adaptive bands, colored fills, and alerts in one tool for comprehensive market state awareness.
🔬 How It Works
Hurst Exponent Computation:
Calculates log returns over the lookback period to derive the rescaled range (R/S) ratio.
Normalizes to a 0-1 value, where >0.55 indicates trending, <0.45 mean-reverting, and in-between random.
Length Adaptation:
Maps normalized Hurst to an MA length via a power function, clamping between min and max.
Applies the selected MA type to close prices using this dynamic length.
Visualization and Signals:
Plots the MA with regime colors, adds ATR-based bands, and fills areas for trend strength.
Triggers alerts on regime changes or band crosses, with the info panel suggesting strategies like momentum riding in trends.
💡 Note:
For optimal results, backtest settings on your preferred assets and combine with volume or momentum indicators. Remember, no indicator guarantees profits—use with proper risk management. Access premium features and support at PhenLabs.
ATR 5 min- FOREX + XAUThis indicator displays the Average True Range (ATR) over the last 20 candles, calculated using the 5-minute timeframe, regardless of the chart timeframe you're currently viewing.
It supports:
All major forex pairs
XAUUSD (Gold), with ATR displayed in full dollars
Key Features
Always reflects 5-minute volatility
Accurate pip scaling:
JPY pairs = 1 pip = 0.01
Other forex pairs = 1 pip = 0.0001
XAUUSD = 1 pip = 1.00 (i.e., full dollar)
Clean and minimal top-right table display
Automatically adapts based on the instrument you're viewing
Helps traders gauge recent market volatility across timeframes
This is an ideal tool for scalpers, intraday traders, or swing traders who want to monitor short-term volatility conditions from any timeframe view.
Options Strategy V2.0📈 Options Strategy V2.0 – Intraday Reversal-Resilient Momentum System
Overview:
This strategy is designed specifically for intraday SPY, TSLA, MSFT, etc. options trading (0DTE or 1DTE), using high-probability signals derived from a confluence of technical indicators: EMA crossovers, RSI thresholds, ATR-based risk control, and volume spikes. The strategy aims to capture strong directional moves while avoiding overtrading, thanks to a built-in cooldown logic and optional time/session filters.
⚙️ Core Concept
The strategy executes trades only in the direction of the prevailing trend, determined by short- and long-term Exponential Moving Averages (EMA). Entry signals are generated when the Relative Strength Index (RSI) confirms momentum in the direction of the trend, and volume spikes suggest institutional activity.
To increase adaptability and user control, it includes a highly customizable parameter set for both long and short entries independently.
📌 Key Features
✅ Trend-Following Logic
Long entries are only allowed when EMA(short) > EMA(long)
Short entries are only allowed when EMA(short) < EMA(long)
✅ RSI Confirmation
Long: Requires RSI crossover above a configurable threshold
Short: Requires RSI crossunder below a configurable threshold
Optional rejection filters: Entry blocked above/below specific RSI extremes
✅ Volume Spike Filter
Confirms institutional participation by comparing current volume to an average multiplied by a user-defined factor.
✅ ATR-Based Risk Management
Both Stop Loss (SL) and Take Profit (TP) are dynamically calculated using ATR × a multiplier.
TP/SL ratio is fully configurable.
✅ Cooldown Control
After every trade, the system waits for a set number of bars before allowing new entries.
This prevents overtrading and increases signal quality.
Optionally, cooldown is ignored for reversal trades, ensuring the system can react immediately to a confirmed trend change.
✅ Candle Body Filter (Noise Control)
Avoids trades on candles with too small bodies relative to wicks (often noise or indecision candles).
✅ VWAP Confirmation (Optional)
Ensures price is trading above VWAP for long entries, or below for short entries.
✅ Time & Session Filters
Trades only during regular market hours (09:30–16:00 EST).
No-trade zone (e.g., 14:15–15:45 EST) to avoid low-liquidity traps or late-day whipsaws.
✅ End-of-Day Auto Close
All open positions are force-closed at 15:55 EST, protecting against overnight risk (especially relevant for 0DTE options).
📊 Visual Aids
EMA plots show trend direction
VWAP line provides real-time mean-reversion context
Stop Loss and Take Profit lines appear dynamically with each trade
Alerts notify of entry signals and exit triggers
🔧 Customization Panel
Nearly every element of the strategy can be tailored:
EMA lengths (short and long, for both sides)
RSI thresholds and length
ATR length, SL multiplier, and TP/SL ratio
Volume spike sensitivity
Minimum EMA distance filter
Candle body ratio filter
Session restrictions
Cooldown logic (duration + reversal exception)
This makes the strategy extremely versatile, allowing both conservative and aggressive configurations depending on the trader’s profile and the market context.
📌 Example Use Case: SPY Options (0DTE or 1DTE)
This system was designed and tested specifically for SPY and other intraday options trading, where:
Delta is around 0.50 or higher
Trades are short-lived (often 1–5 candles)
You aim to trade 1–3 signals per day, filtering out weak entries
🚫 Important Notes
It is not a scalping strategy; it relies on confirmed breakouts with trend support
No pyramiding or re-entries without cooldown to preserve risk integrity
Should be used with real-time alerts and manual broker execution
📈 Alerts Included
📈 Long Entry Signal
📉 Short Entry Signal
⚠️ Auto-closed all positions at 15:55 EST
✅ Proven Settings – Real Trades + Backtest Results
The current version of the strategy includes the optimal settings I’ve arrived at through extensive backtesting, as well as 3 months of real trading with consistent profitability. These results reflect real-world execution under live market conditions using 0DTE SPY options, with disciplined trade management and risk control.
🧠 Final Thoughts
Options Strategy V2.0 is a robust, highly tunable intraday strategy that blends momentum, trend-following, and volume confirmation. It is ideal for disciplined traders focused on SPY or other 0DTE/1DTE options, and it includes guardrails to reduce false signals and improve execution timing.
Perfect for those who seek precision, flexibility, and risk-defined setups—not blind automation.
%ATR + ΔClose HighlightScript Overview
This indicator displays on your chart:
Table of the last N bars that passed the ATR-based range filter:
Columns: Bar #, High, Range (High–Low), Low
Summary row: ATR(N), suggested Stop-Loss (SL = X % of ATR), and the current bar’s range as a percentage of ATR
Red badge on the most recent bar showing ΔClose% (the absolute difference between today’s and yesterday’s close, expressed as % of ATR)
Background highlights:
Blue fill under the most recent bar that met the filter
Yellow fill under bars that failed the filter
Hidden plots of ATR, %ATR, and ΔClose% (for use in strategies or alerts)
All table elements, fills, and plots can be toggled off with a single switch so that only the red ΔClose% badge remains visible.
Inputs
Setting Description Default
Length (bars) Lookback period for ATR and range filter (bars) 5
Upper deviation (%) Upper filter threshold (% of average ATR) 150%
Lower deviation (%) Lower filter threshold (% of average ATR) 50%
SL as % of ATR Stop-loss distance (% of ATR) 10%
Label position Table position relative to bar (“above” or “below”) above
Vertical offset (×ATR) Vertical spacing from the bar in ATR units 2.0
Show table & ATR plots Show or hide table, background highlights, and plots true
How It Works
ATR Calculation & Filtering
Computes average True Range over the last N bars.
Marks bars whose daily range falls within the specified upper/lower deviation band.
Table Construction
Gathers up to N most recent bars that passed the filter (or backfills from the most recent pass).
Formats each bar’s High, Low, and Range into fixed-width columns for neat alignment.
Stop-Loss & Percent Metrics
Calculates a recommended SL distance as a percentage of ATR.
Computes today’s bar range and ΔClose (absolute change in close) as % of ATR.
Chart Display
Table: Shows detailed per-bar data and summary metrics.
Background fills: Blue for the latest valid bar, yellow for invalid bars.
Hidden plots: ATR, %ATR, and ΔClose% (useful for backtesting).
Red badge: Always visible on the right side of the last bar, displaying ΔClose%.
Tips
Disable the table & ATR plots to reduce chart clutter—leave only the red ΔClose% badge for a minimalist volatility alert.
Use the hidden ATR fields (plot outputs) in TradingView Strategies or Alerts to automate volatility-based entries/exits.
Adjust the deviation band to capture “normal” intraday moves vs. outsized volatility spikes.
Load this script on any US market chart (stocks, futures, crypto, etc.) to instantly visualize recent volatility structure, set dynamic SL levels, and highlight today’s price change relative to average true range.
3/2 Stochastic Volatility ProxyThis indicator, "3/2 Stochastic Volatility Proxy", implements a realized volatility model that incorporates advanced digital signal processing techniques, such as Butterworth filtering, super smoothing, RMS normalization, and optionally Z-Score transformation, to capture and visualize shifts in market volatility.
🔍 Indicator Overview: "3/2 Stochastic Volatility Proxy"
🎯 Purpose
To act as a momentum-based volatility proxy, estimating realized volatility and applying a 3/2 power transformation—a known mathematical volatility model—to better detect volatility regimes and potential price explosions or contractions.
📐 Core Mathematical Model: The 3/2 Stochastic Volatility Model
The 3/2 stochastic volatility model is defined in continuous time as:
🔑 Key Idea:
The variance follows a mean-reverting process, but the diffusion term has scaling. This makes the volatility more reactive to spikes, creating more realistic behavior for modeling risk, especially under high-volatility periods (tail events).
🧠 Indicator Components Explained
1. 🧮 Realized Variance Estimation
pinescript
Copy
Edit
ret = math.log(close / close ) // Log returns
vari = ta.sma(ret * ret, length) // Realized variance
volatility_proxy = math.pow(vari, 1.5) // Raise to 3/2 power
This transforms log returns into variance using a simple moving average.
The variance is then raised to the 3/2 power, per the 3/2 volatility model.
2. 🧹 Smoothing Options
Two smoothing techniques are available:
✅ Option 1: Z-Score Smoothing (Ehlers Loop logic)
pinescript
Copy
Edit
f_zscore(volatility_proxy, smoothing)
Normalizes the series to its statistical deviation from the mean.
Useful for spotting regime changes (e.g., +2σ or -2σ extremes).
✅ Option 2: RMS Scaled Filtering
pinescript
Copy
Edit
scaledFilt(volatility_proxy, ..., ..., ...)
This applies three steps:
Butterworth Highpass Filter → Removes slow drift, isolates cycles.
Super Smoother Filter → Reduces aliasing and short-term noise.
Fast RMS Normalization → Stabilizes the scale across varying regimes.
🛠 Filters and Utilities (Detailed)
🔸 butterworthHP()
A 2-pole high-pass filter that removes low-frequency trends to highlight cyclic components of volatility.
🔸 superSmoother()
Ehlers’ 2-pole smoother that attenuates high-frequency noise more effectively than EMA or SMA.
🔸 fastRMS()
An efficient way to estimate root mean square, normalizing the filtered signal to control amplitude.
📈 Plot and Alerts
🔸 plot(smoothed_vol)
Plots the smoothed, normalized volatility proxy:
Above 0 → Rising volatility.
Below 0 → Falling volatility.
Above +2σ / Below -2σ → Extreme volatility alerts.
🔸 Alert Conditions:
🔔 Cross Above 0 → Bullish volatility expansion.
🔔 Cross Below 0 → Bearish contraction or mean reversion.
🔔 Crossing ±2σ → Overheated or overcooled volatility zones.
🧪 Practical Use Cases
Volatility Momentum Proxy
Use this as a signal that volatility is accelerating (breakout environment).
Risk-on / Risk-off Filter
High values may warn of regime shifts; low values indicate calm markets.
Pair with Trend or Mean-Reverting Strategies
Helps determine if the current volatility favors breakouts or reversions.
DeltaTrace ForecastDeltaTrace Forecast is a forward-looking projection tool that visualizes the probable directional path of price using a multi-timeframe momentum model rooted in volatility-adjusted nonlinear dynamics. Rather than relying on traditional indicators that react to price after the fact, DeltaTrace estimates future price motion by tracing the progression of momentum changes across expanding timeframes—then scaling those deltas using adaptive volatility to forecast a plausible path forward.
At its core, DeltaTrace constructs a momentum vector from a series of smoothed z-scores derived from increasing multiples of the current chart's timeframe. These z-scores are normalized using a hyperbolic tangent function (tanh), which compresses extreme values and emphasizes meaningful deviations without being overly sensitive to outliers. This nonlinear normalization ensures that explosive moves are weighted with less distortion, while still preserving the shape and direction of the underlying trend.
Once the z-scores are calculated for a range of 12 timeframes (from 1× the current timeframe up to 12×), the indicator computes the first difference between each adjacent pair. These differences—or deltas—represent the change in momentum from one timeframe to the next. In this structure, a strong positive delta implies momentum is strengthening as we look into higher timeframes, while a negative delta reflects waning or reversing strength.
However, not all deltas are treated equally. To make the projection adaptive to market volatility and temporally meaningful, each delta is scaled by the square root of its corresponding timeframe multiple, weighted by the ATR (Average True Range) of the base timeframe. This square-root volatility scaling mirrors the behavior of Brownian motion and reflects the natural geometric diffusion of price over time. By applying this scaling, the model tempers its forecast according to recent volatility while maintaining proportional distance over longer time horizons.
The result is a chain of projected price steps—11 in total—starting from the current closing price. These steps are cumulative, meaning each one builds upon the previous, forming a continuously adjusted polyline that represents the most recent forecast path of price. Each point in the forecast line is directional: if the next projected point is above the last, the segment is colored green (upward momentum); if below, it is colored red (downward momentum). This color coding gives immediate visual feedback on the nature of the projected path and allows for intuitive at-a-glance interpretation.
What makes DeltaTrace unique is its combination of ideas from signal processing, time-series momentum analysis, and volatility theory. Instead of relying on static support/resistance levels or lagging moving averages, it dynamically adapts to both momentum curvature and volatility structure. This allows it to be used not just for trend confirmation, but also for top-down bias fading, reversal anticipation, and path-following strategies.
Traders can use DeltaTrace in a variety of ways depending on their style:
For trend traders, a consistent upward or downward curve in the forecast suggests directional continuation and can be used for position sizing or confirmation of bias.
For mean-reversion traders, exaggerated divergence between the current price and the first few forecast points may indicate temporary exhaustion or overextension.
For scalpers or intraday traders, the short-term bend or flattening of the initial segments can reveal early signs of weakening momentum or build-up before breakout.
For swing traders, the full shape of the polyline gives an evolving map of market rhythm across time compression, allowing for context-aware decision-making.
It’s important to understand that this is a path projection tool, not a precise price target predictor. The forecast does not attempt to predict exact price levels at exact bars, but rather illustrates how the market might evolve if the current multi-timeframe momentum structure persists. Like all models, it should be interpreted probabilistically and used in conjunction with other confirmation signals, risk management tools, or strategy frameworks.
Inputs allow customization of the z-score calculation length and ATR window to tune the sensitivity of the model. The color scheme for up/down forecast segments can also be adjusted for personal preference. Additionally, users can toggle the polyline forecast on or off, which may be useful for pairing this indicator with others in a crowded chart layout.
Because the forecast path is calculated only on the last bar, it does not repaint or shift once the candle closes—preserving historical accuracy for visual inspection and backtesting reference. However, it is also sensitive to changes in volatility and momentum structure, meaning it updates each bar as conditions evolve, making it most effective in real-time decision support.
DeltaTrace Forecast is particularly well-suited for traders who want a deeper understanding of hidden momentum shifts across timeframes without relying on traditional trend-following tools. It reveals the shape of future possibility based on present dynamics, offering a compact yet powerful visualization of directional bias, transition risk, and path strength.
To maximize its utility, consider pairing DeltaTrace with volume profiles, order flow tools, higher timeframe zones, or market structure indicators. Used in context, it becomes a powerful companion to both systematic and discretionary trading styles—especially for those who appreciate a blend of mathematics and intuition in their market analysis.
This indicator is not based on magic or black-box logic; every component—from the z-score standardization to the volatility-adjusted deltas—is fully transparent and grounded in simple, interpretable mechanics. If you're looking for a reliable way to visualize multi-timeframe bias and momentum diffusion, DeltaTrace provides a unique lens through which to interpret future potential in an ever-shifting market landscape.
Multi-Ticker TableMulti-Ticker Table
A customizable TradingView indicator that displays a clean, organized table of up to 10 user-defined ticker symbols with their current daily price, daily dollar change, and daily percentage change.
Key features include:
Enable/disable individual tickers with custom symbols
Customizable font sizes and colors for header and body rows
Customizable table background colors for header and data rows
Flexible table positioning anywhere on the chart (top/middle/bottom × left/center/right)
Highlights positive changes in green and negative changes in red for quick visual analysis
Hides chart candles to display the table as a standalone dashboard
Ideal for traders who want a quick, at-a-glance summary of multiple markets or instruments without cluttering the chart.
SuperTrend Strategy with Trend-Based Exits🟩 SuperTrend Strategy with Trend-Based Exits
This is a fully automated trend-following strategy based on the popular SuperTrend indicator, enhanced with a position sizing algorithm tied to stop-loss distance and dynamic entry/exit rules. The strategy is designed for futures trading with an emphasis on sustainable risk, realistic backtesting, and transparent logic.
🧠 Concept and Methodology
The strategy uses the SuperTrend indicator, which is derived from ATR (Average True Range) and is widely used to capture medium- to long-term market trends.
Key features:
✅ Entries are triggered only when the SuperTrend direction changes (trend reversal).
✅ Exits are performed using a dynamic stop-loss placed at the SuperTrend line.
✅ Position size is automatically calculated based on the trader’s fixed dollar risk per trade and the current distance to the stop-loss.
✅ Rounding logic is included to ensure quantity is valid for the exchange’s lot size.
This strategy does not use any take-profit or classic trailing stop — the position is only closed when the trend reverses or the stop is hit by touching the SuperTrend line.
⚙️ Default Parameters
ATR Length: 300
Factor: 7.5
Risk per trade: $90 (3% of the default $3,000 capital)
Lot step: 10
Commission: 0.05%
These default parameters are not universal. They were optimized specifically for STXUSDT swap at 15M timeframe at Bybit and may not produce viable results on other pairs and timeframes.
Users are encouraged to customize the settings according to specific asset’s volatility, timeframe and other characteristics.
❗ These default settings yield meaningful backtesting results on STXUSDT with a reasonable number of trades (105+) over 7-month period. If applied to other assets, results may vary significantly.
📈 Position Sizing Logic
The strategy uses a dynamic position sizing formula:
Pine Script®
position_size = floor((risk_per_trade / stop_loss_distance) / lot_step) * lot_step
This ensures the trader always risks a fixed dollar amount per trade and never exceeds a sustainable equity exposure (recommended 2% or less).
✅ Realism in Backtesting
To ensure realistic and non-misleading backtest results, this strategy includes:
— Slippage and commission settings matching average exchange conditions (commission = 0.05%, slippage 5 ticks).
— Position sizing based on stop-loss distance (not fixed contract quantity).*
— A fixed risk-per-trade model that adheres to responsible capital management principles.
— This is in compliance with TradingView's Script publishing rules and House Rules.
📌 How to Use
Apply the strategy to a clean chart (preferably 15M for STXUSDT by default).
If using another asset, adjust:
- ATR Length
- Factor
- Risk per trade
- Qty step (lot precision for the symbol)
Avoid using with other indicators unless you understand their purpose.
Use the Strategy Tester to evaluate performance and optimize parameters.
⚠️ Disclaimer
This is not financial advice. Always perform forward testing and assess risk before deploying any strategy on live capital. The strategy is designed for educational and experimental use.
Game Theory Trading StrategyGame Theory Trading Strategy: Explanation and Working Logic
This Pine Script (version 5) code implements a trading strategy named "Game Theory Trading Strategy" in TradingView. Unlike the previous indicator, this is a full-fledged strategy with automated entry/exit rules, risk management, and backtesting capabilities. It uses Game Theory principles to analyze market behavior, focusing on herd behavior, institutional flows, liquidity traps, and Nash equilibrium to generate buy (long) and sell (short) signals. Below, I'll explain the strategy's purpose, working logic, key components, and usage tips in detail.
1. General Description
Purpose: The strategy identifies high-probability trading opportunities by combining Game Theory concepts (herd behavior, contrarian signals, Nash equilibrium) with technical analysis (RSI, volume, momentum). It aims to exploit market inefficiencies caused by retail herd behavior, institutional flows, and liquidity traps. The strategy is designed for automated trading with defined risk management (stop-loss/take-profit) and position sizing based on market conditions.
Key Features:
Herd Behavior Detection: Identifies retail panic buying/selling using RSI and volume spikes.
Liquidity Traps: Detects stop-loss hunting zones where price breaks recent highs/lows but reverses.
Institutional Flow Analysis: Tracks high-volume institutional activity via Accumulation/Distribution and volume spikes.
Nash Equilibrium: Uses statistical price bands to assess whether the market is in equilibrium or deviated (overbought/oversold).
Risk Management: Configurable stop-loss (SL) and take-profit (TP) percentages, dynamic position sizing based on Game Theory (minimax principle).
Visualization: Displays Nash bands, signals, background colors, and two tables (Game Theory status and backtest results).
Backtesting: Tracks performance metrics like win rate, profit factor, max drawdown, and Sharpe ratio.
Strategy Settings:
Initial capital: $10,000.
Pyramiding: Up to 3 positions.
Position size: 10% of equity (default_qty_value=10).
Configurable inputs for RSI, volume, liquidity, institutional flow, Nash equilibrium, and risk management.
Warning: This is a strategy, not just an indicator. It executes trades automatically in TradingView's Strategy Tester. Always backtest thoroughly and use proper risk management before live trading.
2. Working Logic (Step by Step)
The strategy processes each bar (candle) to generate signals, manage positions, and update performance metrics. Here's how it works:
a. Input Parameters
The inputs are grouped for clarity:
Herd Behavior (🐑):
RSI Period (14): For overbought/oversold detection.
Volume MA Period (20): To calculate average volume for spike detection.
Herd Threshold (2.0): Volume multiplier for detecting herd activity.
Liquidity Analysis (💧):
Liquidity Lookback (50): Bars to check for recent highs/lows.
Liquidity Sensitivity (1.5): Volume multiplier for trap detection.
Institutional Flow (🏦):
Institutional Volume Multiplier (2.5): For detecting large volume spikes.
Institutional MA Period (21): For Accumulation/Distribution smoothing.
Nash Equilibrium (⚖️):
Nash Period (100): For calculating price mean and standard deviation.
Nash Deviation (0.02): Multiplier for equilibrium bands.
Risk Management (🛡️):
Use Stop-Loss (true): Enables SL at 2% below/above entry price.
Use Take-Profit (true): Enables TP at 5% above/below entry price.
b. Herd Behavior Detection
RSI (14): Checks for extreme conditions:
Overbought: RSI > 70 (potential herd buying).
Oversold: RSI < 30 (potential herd selling).
Volume Spike: Volume > SMA(20) x 2.0 (herd_threshold).
Momentum: Price change over 10 bars (close - close ) compared to its SMA(20).
Herd Signals:
Herd Buying: RSI > 70 + volume spike + positive momentum = Retail buying frenzy (red background).
Herd Selling: RSI < 30 + volume spike + negative momentum = Retail selling panic (green background).
c. Liquidity Trap Detection
Recent Highs/Lows: Calculated over 50 bars (liquidity_lookback).
Psychological Levels: Nearest round numbers (e.g., $100, $110) as potential stop-loss zones.
Trap Conditions:
Up Trap: Price breaks recent high, closes below it, with a volume spike (volume > SMA x 1.5).
Down Trap: Price breaks recent low, closes above it, with a volume spike.
Visualization: Traps are marked with small red/green crosses above/below bars.
d. Institutional Flow Analysis
Volume Check: Volume > SMA(20) x 2.5 (inst_volume_mult) = Institutional activity.
Accumulation/Distribution (AD):
Formula: ((close - low) - (high - close)) / (high - low) * volume, cumulated over time.
Smoothed with SMA(21) (inst_ma_length).
Accumulation: AD > MA + high volume = Institutions buying.
Distribution: AD < MA + high volume = Institutions selling.
Smart Money Index: (close - open) / (high - low) * volume, smoothed with SMA(20). Positive = Smart money buying.
e. Nash Equilibrium
Calculation:
Price mean: SMA(100) (nash_period).
Standard deviation: stdev(100).
Upper Nash: Mean + StdDev x 0.02 (nash_deviation).
Lower Nash: Mean - StdDev x 0.02.
Conditions:
Near Equilibrium: Price between upper and lower Nash bands (stable market).
Above Nash: Price > upper band (overbought, sell potential).
Below Nash: Price < lower band (oversold, buy potential).
Visualization: Orange line (mean), red/green lines (upper/lower bands).
f. Game Theory Signals
The strategy generates three types of signals, combined into long/short triggers:
Contrarian Signals:
Buy: Herd selling + (accumulation or down trap) = Go against retail panic.
Sell: Herd buying + (distribution or up trap).
Momentum Signals:
Buy: Below Nash + positive smart money + no herd buying.
Sell: Above Nash + negative smart money + no herd selling.
Nash Reversion Signals:
Buy: Below Nash + rising close (close > close ) + volume > MA.
Sell: Above Nash + falling close + volume > MA.
Final Signals:
Long Signal: Contrarian buy OR momentum buy OR Nash reversion buy.
Short Signal: Contrarian sell OR momentum sell OR Nash reversion sell.
g. Position Management
Position Sizing (Minimax Principle):
Default: 1.0 (10% of equity).
In Nash equilibrium: Reduced to 0.5 (conservative).
During institutional volume: Increased to 1.5 (aggressive).
Entries:
Long: If long_signal is true and no existing long position (strategy.position_size <= 0).
Short: If short_signal is true and no existing short position (strategy.position_size >= 0).
Exits:
Stop-Loss: If use_sl=true, set at 2% below/above entry price.
Take-Profit: If use_tp=true, set at 5% above/below entry price.
Pyramiding: Up to 3 concurrent positions allowed.
h. Visualization
Nash Bands: Orange (mean), red (upper), green (lower).
Background Colors:
Herd buying: Red (90% transparency).
Herd selling: Green.
Institutional volume: Blue.
Signals:
Contrarian buy/sell: Green/red triangles below/above bars.
Liquidity traps: Red/green crosses above/below bars.
Tables:
Game Theory Table (Top-Right):
Herd Behavior: Buying frenzy, selling panic, or normal.
Institutional Flow: Accumulation, distribution, or neutral.
Nash Equilibrium: In equilibrium, above, or below.
Liquidity Status: Trap detected or safe.
Position Suggestion: Long (green), Short (red), or Wait (gray).
Backtest Table (Bottom-Right):
Total Trades: Number of closed trades.
Win Rate: Percentage of winning trades.
Net Profit/Loss: In USD, colored green/red.
Profit Factor: Gross profit / gross loss.
Max Drawdown: Peak-to-trough equity drop (%).
Win/Loss Trades: Number of winning/losing trades.
Risk/Reward Ratio: Simplified Sharpe ratio (returns / drawdown).
Avg Win/Loss Ratio: Average win per trade / average loss per trade.
Last Update: Current time.
i. Backtesting Metrics
Tracks:
Total trades, winning/losing trades.
Win rate (%).
Net profit ($).
Profit factor (gross profit / gross loss).
Max drawdown (%).
Simplified Sharpe ratio (returns / drawdown).
Average win/loss ratio.
Updates metrics on each closed trade.
Displays a label on the last bar with backtest period, total trades, win rate, and net profit.
j. Alerts
No explicit alertconditions defined, but you can add them for long_signal and short_signal (e.g., alertcondition(long_signal, "GT Long Entry", "Long Signal Detected!")).
Use TradingView's alert system with Strategy Tester outputs.
3. Usage Tips
Timeframe: Best for H1-D1 timeframes. Shorter frames (M1-M15) may produce noisy signals.
Settings:
Risk Management: Adjust sl_percent (e.g., 1% for volatile markets) and tp_percent (e.g., 3% for scalping).
Herd Threshold: Increase to 2.5 for stricter herd detection in choppy markets.
Liquidity Lookback: Reduce to 20 for faster markets (e.g., crypto).
Nash Period: Increase to 200 for longer-term analysis.
Backtesting:
Use TradingView's Strategy Tester to evaluate performance.
Check win rate (>50%), profit factor (>1.5), and max drawdown (<20%) for viability.
Test on different assets/timeframes to ensure robustness.
Live Trading:
Start with a demo account.
Combine with other indicators (e.g., EMAs, support/resistance) for confirmation.
Monitor liquidity traps and institutional flow for context.
Risk Management:
Always use SL/TP to limit losses.
Adjust position_size for risk tolerance (e.g., 5% of equity for conservative trading).
Avoid over-leveraging (pyramiding=3 can amplify risk).
Troubleshooting:
If no trades are executed, check signal conditions (e.g., lower herd_threshold or liquidity_sensitivity).
Ensure sufficient historical data for Nash and liquidity calculations.
If tables overlap, adjust position.top_right/bottom_right coordinates.
4. Key Differences from the Previous Indicator
Indicator vs. Strategy: The previous code was an indicator (VP + Game Theory Integrated Strategy) focused on visualization and alerts. This is a strategy with automated entries/exits and backtesting.
Volume Profile: Absent in this strategy, making it lighter but less focused on high-volume zones.
Wick Analysis: Not included here, unlike the previous indicator's heavy reliance on wick patterns.
Backtesting: This strategy includes detailed performance metrics and a backtest table, absent in the indicator.
Simpler Signals: Focuses on Game Theory signals (contrarian, momentum, Nash reversion) without the "Power/Ultra Power" hierarchy.
Risk Management: Explicit SL/TP and dynamic position sizing, not present in the indicator.
5. Conclusion
The "Game Theory Trading Strategy" is a sophisticated system leveraging herd behavior, institutional flows, liquidity traps, and Nash equilibrium to trade market inefficiencies. It’s designed for traders who understand Game Theory principles and want automated execution with robust risk management. However, it requires thorough backtesting and parameter optimization for specific markets (e.g., forex, crypto, stocks). The backtest table and visual aids make it easy to monitor performance, but always combine with other analysis tools and proper capital management.
If you need help with backtesting, adding alerts, or optimizing parameters, let me know!
Mig Trade Model - Kill Zones
Key features:
Liquidity Hunt Detection: Spots aggressive moves that "hunt" stops beyond recent swing highs/lows.
Consolidation Filter: Requires 1-3 small-range candles after a hunt before confirming with a strong candle.
Bias Application: Uses daily open/close to auto-detect bias or allows manual override.
Kill Zone Restriction: Limits signals to London (default: 7-10 AM UTC) and NY (default: 12-3 PM UTC) sessions for better relevance in active markets.
This strategy is inspired by smart money concepts (SMC) and ICT (Inner Circle Trader) methodologies, aiming to capture venom-like "stings" in price action where liquidity is grabbed before reversals.
How It Works
ATR Calculation: Uses a user-defined ATR length (default: 14) to measure volatility, which scales candle body and range thresholds.
Bias Determination:
Auto: Compares daily close to open (bullish if close > open).
Manual: User selects "Bullish" or "Bearish."
Strong Candles:
Bullish: Green candle with body > 2x ATR (configurable).
Bearish: Red candle with body > 2x ATR.
Small Range Candles:
Candles where high-low < 0.5x ATR (configurable).
Liquidity Hunt:
Bullish Hunt: Strong bearish candle making a new low below the past swing low (default: 10 bars).
Bearish Hunt: Strong bullish candle making a new high above the past swing high.
Signal Generation:
After a hunt, counts 1-3 small-range candles.
Confirms with a strong candle in the opposite direction (e.g., strong bullish after bearish hunt).
Resets if >3 small candles or an opposing strong candle appears.
Kill Zone Filter:
Checks if the current bar's time (in UTC) falls within London or NY Kill Zones.
Only allows final "Buy" (bullish entry) or "Sell" (bearish entry) if bias matches and in Kill Zone.
Plots:
Yellow circle (below): Bullish liquidity hunt.
Orange circle (above): Bearish liquidity hunt.
Blue diamond (below): Raw bullish signal.
Purple diamond (above): Raw bearish signal.
Green triangle up ("Buy"): Filtered bullish entry.
Red triangle down ("Sell"): Filtered bearish entry.
Inputs
Bias: "Auto" (default), "Bullish", or "Bearish" – Controls signal direction based on daily trend.
ATR Length: 14 (default) – Period for ATR calculation.
Swing Length for Liquidity Hunt: 10 (default) – Bars to look back for swing highs/lows.
Strong Candle Body Multiplier (x ATR): 2.0 (default) – Threshold for strong candle bodies.
Small Range Multiplier (x ATR): 0.5 (default) – Threshold for small-range candles.
London Kill Zone Start/End Hour (UTC): 7/10 (default) – Customize London session hours.
NY Kill Zone Start/End Hour (UTC): 12/15 (default) – Customize New York session hours.
Usage Tips
Timeframe: Best on lower timeframes (e.g., 5-15 min) for intraday trading, especially forex pairs like EURUSD or GBPUSD.
Timezone Adjustment: Inputs are in UTC. If your chart is in a different timezone (e.g., EST = UTC-5), adjust hours accordingly (e.g., London: 2-5 AM EST → 7-10 UTC).
Risk Management: Use with stop-loss (e.g., beyond the hunt low/high) and take-profit based on ATR multiples. Not financial advice—backtest thoroughly.
Customization: Tweak multipliers for different assets; higher for volatile cryptos, lower for stocks.
Limitations: Relies on historical data; may generate false signals in ranging markets. Combine with other indicators like volume or support/resistance.
This indicator is for educational purposes. Always use discretion and proper risk management in live trading. If you find it useful, feel free to share feedback or suggestions!