OBV + WaveTrend Volume Scalper [GratefulFutures]This script is a combination script of three different strategies that provides buy and sell signals based on the change of volume with momentum confirmations.
Sources used:
This script relies on the outstanding scripts of the great script writer LazyBear: LazyBear
The following scripts were used in this publication:
1. A modified "On-Balance Volume Oscillator" modified from LazyBear's original script:
2. Wavetrend Oscillator with crosses, Author: LazyBear
3. Squeeze Momentum Oscillator, Author: LazyBear
This script functions based on the following criteria being true:
1. On balance volume oscillator turning from negative to positive (buy) or positive to negative (sell)
2. Squeeze Momentum value is increasing (buy) or decreasing (sell)
3. Wavetrend 1 (wt1) is greater than wavetrend 2 (wt2) (buy)/ Wavetrend 1 (wt1) is less than wavetrend 2 (wt2) (sell)
By combining these factors the indicator is able to signal exactly when net buying turns to net selling (OBV) and when this change is most advantageous to continue based on the momentum and price action of the underlying asset (SQMOMO and Wavetrend).
This allows you to pair volume and price action for a powerful tool to identify where price will reverse or continue providing exceptional entries for short term trades, especially when combined with other aspects such as support and resistance, or volume profile.
How to use:
Simply adjust the settings to your preference and read the given signals as generated.
Settings
There are multiple ways to tune the signals generated. It is set standard for my preferred use on a 1 minute chart.
OBV Oscillator Settings
The first 4 dropdowns in the Inputs section tune the On Balance Volume Oscillator (OBVO) portion of the indicator. You can choose if you want it to calculate based on close, open, high, low, or other value.
The most impactful in the entire settings is going to be the length and smoothing of the OBVO EMA. Making this number lower increasing the sensitivity to changes in volume, making the signals come quicker but is more susceptible to quick fluctuations. A value of between (5-20) is reasonable for the OBVO EMA length. There is a separate smoothing factor titled OBV Smoothing Length and below that, OBV Smoothing Type , a value of (2) is standard with "SMA" for smoothing type with a value of between 2-10 being reasonable. You may also play with these values to see what you like for your trading style.
Wavetrend Settings
The next 3 options are to modify the wavetrend portion of the indicator. I do not modify these from standard, and feel that they work appropriately on all time frames at the following values: n1 length (10), n2 length (20), Wavetrend Signal SMA length (4)
Squeeze Momentum Settings
The following 5 options through the end modify the Squeeze momentum portion of the indicator. The only one that modifies the signals generated is the KC Length , Making this number lower increasing the sensitivity to changes in price action, making the signals come quicker but is more susceptible to quick fluctuations. A value of between (18-25) is reasonable for KC Length .
Style Setting
You may select if you want to see the buy and sell signals. The following 5 options Raw OBV Osc through Squeeze Momentum allow you to see where each specific requirement was met, posted as a vertical line, but for live use it is recommended to turn all of these vertical lines off and only use the buy and sell signals.
Time Frames:
While this script is most effective on shorter time frames (1 minute for scalping and daytrading) it is also viable to use it on longer timeframes, due to the nature of its components being independent of time frame.
Examples of use - (Green and red vertical lines are for visualization purpose and are not part of the script)
SPY 1 Minute (Factory Settings):
SPX 15 minutes (Factory Settings):
Considerations
This script is meant primarily for short term trading, trades on the basis of seconds to minutes primarily. While they can be a good indication of volume lining up with momentum, it is always wise to use them in combination with other factors such as support, resistance, market structure, volume levels, or the many other techniques out there...
As Always... Happy Trading.
-Not_A_Mad_Scientist (GreatfulFutures Trade University)
지표 및 전략
Quantrader📊 Overview
This custom indicator combines intraday session analysis with multi-timeframe trend confirmation to identify high-probability trading opportunities. It features:
Custom intraday session tracking (GMT+7 timezone)
Multi-level moving average confluence (SMA 20, 100, 200)
Bollinger Bands mean reversion signals
Key intraday reference levels
⚙️ Core Components
1. Custom Intraday Session Tracking
Session Start: 7:00 AM GMT+7 (Vietnamese market open)
Calculates per session:
Intraday High/Low (resets at 7:00 AM daily)
Intraday Midline = (Session High + Session Low) / 2
Pre-Day Center = Previous day's midline (carried forward)
Open Day = First 15-minute candle's open price
2. Trend Analysis Framework
SMA 20 (Short-term momentum)
SMA 100 (Medium-term trend)
SMA 200 (Long-term trend direction)
Bollinger Bands (20-period, 2 standard deviations)
3. Signal Detection Logic
Bullish Mean Reversion Setup:
javascript
Condition 1: Green candle closes ABOVE Upper Bollinger Band
Condition 2: Following candle is ALSO green
→ Triggers: Green highlight + Triangle below bar
Bearish Mean Reversion Setup:
javascript
Condition 1: Red candle closes BELOW Lower Bollinger Band
Condition 2: Following candle is ALSO red
→ Triggers: Red highlight + Triangle above bar
🎯 Visual Elements
Element Color Description
Intraday Midline Blue Real-time session midpoint
Pre-Day Center Yellow Yesterday's midline (reference)
Open Day Purple (dashed) Day's opening price
SMA 20 Red Short-term trend
SMA 100 Green Medium-term trend
SMA 200 Orange Long-term trend
Bollinger Bands Red/Green/Blue Volatility boundaries
Bull Signal Green triangle ↓ Oversold bounce potential
Bear Signal Red triangle ↑ Overbought rejection potential
📈 Trading Applications
1. Trend Confirmation
Bullish Alignment: Price > All SMAs + Above Intraday Midline
Bearish Alignment: Price < All SMAs + Below Intraday Midline
2. Mean Reversion Opportunities
Overbought Scenario: Consecutive green candles above Upper BB → Potential reversal
Oversold Scenario: Consecutive red candles below Lower BB → Potential bounce
3. Intraday Level Trading
Intraday Midline: Dynamic support/resistance
Pre-Day Center: Psychological reference level
Open Day: Key opening price level
⚡ Key Features
Automatic Session Reset: Daily at 7:00 AM GMT+7
Multi-Timeframe Confluence: Combines intraday, daily, and trend analysis
Clean Visual Design: Non-cluttered, focused on key levels
Real-Time Calculation: All levels update with each new candle
🛠️ Recommended Settings
Timeframe: 15-minute to 1-hour charts
Markets: Forex, Indices, Commodities
Best Pairs: EURUSD, XAUUSD, VN30, USDJPY
Trading Style: Swing trading, Day trading
📖 Usage Tips
Trend Trading: Enter in direction of SMA alignment (20 > 100 > 200 for bullish)
Mean Reversion: Use BB signals at key intraday levels (Midline, Pre-Day Center)
Confirmation: Wait for candle close above/below key levels
Risk Management: Place stops beyond opposite intraday extreme
🎨 Customization Options
Users can modify:
Session start time (line 6)
Bollinger Band parameters (length, multiplier)
SMA periods
Color schemes
MTF Bollinger Swing Table (TF bg light grey)Indicator colour Meaning :
State rules & color mapping (priority order applies):
* If upper is challenged → Light Red.
* Else if upper not challenged AND upper curved down → Dark Red.
* If lower is challenged → Light Green.
* Else if lower not challenged AND lower curved up → Dark Green.
* Otherwise → Neutral (gray).
Industry Group Strength (Custom ETFs)This script is a modified version of the 'Industry Group Strength' indicator. It enhances the 'Investment Trusts/Mutual Funds' category by incorporating a curated list of key Sector and Thematic ETFs (e.g., SMH, XBI, BLOK) for top-down market analysis. This allows traders to track broad sector rotation while retaining the original functionality of ranking individual stocks within their specific industries based on Relative Strength.
MA CrossMA Cross indicator is a multi-MA indicator that saves indicator quota when you need several MAs.
SUPER TREND + RSI FILTER PRO@version=5
indicator("SUPER TREND + RSI FILTER PRO", overlay=true, timeframe="", timeframe_gaps=true)
//---------------------------
// INPUTS
//---------------------------
factor = input.float(3.0, "SuperTrend Factor")
atr_len = input.int(10, "ATR Length")
rsi_len = input.int(14, "RSI Length")
rsi_buy = input.int(50, "RSI Buy Level")
rsi_sell = input.int(50, "RSI Sell Level")
//---------------------------
// SUPERTREND CALCULATION
//---------------------------
atr = ta.atr(atr_len)
upperBand = close + factor * atr
lowerBand = close - factor * atr
trend = 0.0
trend := close > nz(trend ) ? math.max(lowerBand, nz(trend )) : math.min(upperBand, nz(trend ))
// Coloration
bull = close > trend
bear = close < trend
//---------------------------
// RSI FILTER
//---------------------------
rsi = ta.rsi(close, rsi_len)
//---------------------------
// BUY & SELL SIGNALS
//---------------------------
buySignal = bull and rsi > rsi_buy and close > trend
sellSignal = bear and rsi < rsi_sell and close < trend
//---------------------------
// PLOT SUPERTREND
//---------------------------
plot(trend, color=bull ? color.green : color.red, linewidth=2, title="SuperTrend")
//---------------------------
// BUY / SELL MARKERS
//---------------------------
plotshape(buySignal, title="Buy", style=shape.labelup, color=color.green, size=size.small, text="BUY")
plotshape(sellSignal, title="Sell", style=shape.labeldown, color=color.red, size=size.small, text="SELL")
//---------------------------
// ALERTS
//---------------------------
alertcondition(buySignal, title="Buy Signal", message="BUY Signal - SuperTrend + RSI Filter")
alertcondition(sellSignal, title="Sell Signal", message="SELL Signal - SuperTrend + RSI Filter")
Session important reference linesThis indicator automatically plots crucial price reference points for the Regular Trading Hours (RTH) session, including Yesterday's High/Low/Close, Session Open, Midpoint, and the Initial Balance (IB) range with its 2x extension .
In the example above the lines are:
Dotted green - Today's open price
Dashed yellow - Today's mid line
Solid yellow - Initial Balance high/low
Dotted yellow - Initial Balance extension
Dotted dark green - Previous session high
Dotted dark red - Previous session low
Dotted orange - Previous session close
EMA CrossEMA Cross indicator is a multi-EMA indicator that saves indicator quota when you need several EMAs.
ADX_RDADX_RD - Average Directional Index (Ryan DeBraal)
This script plots a refined version of the **ADX (Average Directional Index)**,
used to measure trend strength regardless of trend direction. It includes
custom smoothing, modified DM (Directional Movement) logic, dynamic coloring,
and a built-in 20-level threshold.
FEATURES
- Calculates +DI, –DI, and ADX using standard Wilder smoothing (RMA).
- Signal color turns **white** when ADX < 20 (low-trend or choppy conditions).
- Signal color turns **blue** when ADX >= 20 (trend strengthening).
- Horizontal dotted reference line at **20**, a widely used threshold:
ADX < 20 → weak or ranging market
ADX > 20 → strengthening trend
- Works on all timeframes, supports custom smoothing lengths.
PURPOSE
This indicator helps identify when a market is trending vs when it is flat.
It does not indicate direction by itself — only the strength of the move —
making it ideal for confirming breakout setups, trend-following entries,
and filtering out low-probability trades during chop.
,,,//@version=5
indicator(title='Moving Average Exponential', shorttitle='EMA', overlay=true, timeframe='')
len = input.int(6, minval=1, title='Length')
len1 = input.int(13, minval=1, title='Length')
len2 = input.int(24, minval=1, title='Length')
len3 = input.int(55, minval=1, title='Length')
src = input(close, title='Source')
offset = input.int(title='Offset', defval=0, minval=-500, maxval=500)
out = ta.ema(src, len)
out1 = ta.ema(src, len1)
out2 = ta.ema(src, len2)
out3 = ta.ema(src, len3)
plot(out, title='EMA', color=color.new(color.yellow, 0), offset=offset)
plot(out1, title='EMA1', color=color.new(color.blue, 0), offset=offset)
plot(out2, title='EMA2', color=color.new(color.red, 0), offset=offset)
plot(out3, title='EMA2', color=color.new(#19e82a, 0), offset=offset)
Market Regime & Bias Assistant [Prototype v1.1]
Market Regime & Bias Assistant
### **Overview**
The **Market Regime & Bias Assistant** is an all-in-one trend filtration and trading system designed to keep traders on the right side of the market. Instead of relying on a single moving average, this indicator combines **ADX (Trend Strength)**, **Multi-Timeframe EMAs**, **RSI**, and **Volume Spread Analysis (VSA)** concepts to generate a quantitative "Confidence Score" for the current market bias.
It automatically adapts its settings based on your timeframe (Intraday vs. Swing) and provides clear visual cues via background shading, candle coloring, and a data panel.
---
### **Key Features**
* **Auto-Adaptive Modes:** Automatically switches between "Intraday" and "Swing" settings based on your timeframe.
* *Intraday:* Uses faster EMAs (Aggressive 9/30 or Conservative 20/50) and VWAP.
* *Swing:* Uses standard 20/50 EMAs with 200/800 long-term context moving averages.
* **Market Regime Detection:** Identifies if the market is in a **Trend (Bull/Bear)** or a **Range (Neutral)** using a combination of ADX thresholds and EMA alignment.
* **Confidence Scoring (0-100):** A proprietary algorithm that scores the quality of the trend based on RSI alignment, Volume confirmation, and Long-term EMA context.
* **Vector Volume Candles:** Color-coded candles to highlight institutional activity (High Volume) vs. Climactic Volume (Exhaustion).
* **Pullback Signals:** "L" and "S" markers indicating high-probability entries after a pullback into the EMA value zone.
* **Data Dashboard:** A bottom-right panel displaying the current Mode, Regime, Bias, and quantitative Confidence Score.
---
### **How to Read the Visuals**
#### **1. Background Colors (The Regime)**
* **Green Background:** Confirmed **Bullish Trend**. Only look for Longs.
* **Red Background:** Confirmed **Bearish Trend**. Only look for Shorts.
* **Gray Background:** **Neutral / Range**. The market is chopping or consolidating. Stand aside or trade strictly mean-reversion.
#### **2. Candle Colors (Vector Volume)**
* **Green/Red Borders:** Normal volume.
* **Blue / Fuchsia:** **High Volume (1.2x Average)**. Indicates institutional interest or a breakout.
* **Lime / Bright Red:** **Climactic Volume (1.8x Average)**. Indicates potential exhaustion or a stopping volume event.
#### **3. The EMAs**
* **Fast/Slow Lines:** Show the immediate trend direction.
* **Gray/White Lines:** The 200 and 800 EMAs. These act as major support/resistance levels and define the "Big Picture" bias.
* **Lime Line (Intraday Only):** The VWAP (Volume Weighted Average Price).
---
### **How to Use This Indicator**
**Step 1: Check the Regime**
Look at the background color and the Dashboard panel. Is the Trend Strength "Strong" or "Very Strong"?
* *Rule:* Do not take trend-following trades if the Regime is "Range/Neutral."
**Step 2: Check the Confidence**
The dashboard calculates a score from 0 to 100.
* **High Confidence (>67):** All systems go. Alignment of RSI, Volume, and Trend.
* **Medium Confidence (34-66):** Caution warranted. Usually implies divergence in RSI or low volume.
* **Low Confidence (<34):** The trend is weak or failing.
**Step 3: Wait for the Setup (The Arrows)**
The indicator looks for pullbacks into the "Value Zone" (the space between the Fast and Slow EMA).
* **Triangle Up (L):** Appears when price pulls back into the zone during a Bull trend, then bounces out with volume confirmation.
* **Triangle Down (S):** Appears when price rallies into the zone during a Bear trend, then rejects lower.
---
### **Settings & Customization**
* **Mode:** Default is "Auto," but you can force "Intraday" or "Swing" manually.
* **Intraday Style:** Choose between "Aggressive" (9 EMA / 30 EMA) for scalping or "Conservative" (20 EMA / 50 EMA) for day trading.
* **ADX Threshold:** Adjusts how strict the trend filter is (Default: 20).
* **Visual Toggles:** Turn off/on the Panel, Background shading, or Vector candles to clean up your chart.
### **Alerts**
This script comes with built-in alert conditions for:
1. **Bullish Regime Start**
2. **Bearish Regime Start**
3. **High-Confidence Setup Detected**
BTC Price Prediction Model [Global PMI]🇨🇳 中文说明 (Chinese Version)
1. 简介
本指标由 GW Capital 使用 Gemini Vibe Coding 技术制作。利用先进的 AI 编程能力,将复杂的宏观经济模型重构为可执行的交易工具。
2. 致谢
特别感谢模型原作者 Marty Kendall。他对这一算法的研究奠定了基础,揭示了比特币价格与宏观经济因素之间的深层联系。
3. 模型原理与公式
该模型基于四大宏观经济支柱计算比特币的“公允价值”。它假设比特币的价格是全球流动性、网络安全性、风险偏好和经济周期的函数。
模型公式
$$\ln(BTC) = \alpha + (1 + \beta \cdot PMI_{z}) \times $$
全球流动性 (M2): 美、中、欧、日四大经济体的 M2 总量(折算为美元)。代表可流入资产的法币资金池。
网络安全性 (Hashrate): 比特币全网算力,代表网络的物理安全性和实用价值。
风险偏好 (S&P 500): 作为全球风险情绪的代理指标。
经济周期 (PMI Z-Score): 美国制造业 PMI 用于根据商业周期(扩张 vs 收缩)来放大或抑制估值。
4. 指标用法
指标会在图表上绘制 公允价值 (白线) 以及基于统计偏差 (Z-Score) 的四条情绪带。
情绪区间
🚨 极度贪婪 (红色区域): 价格 > +0.3 标准差。历史上通常预示市场顶部或情绪过热。
⚠️ 一般贪婪 (橙色区域): 价格 > +0.15 标准差。多头动能强劲,但需谨慎。
⚖️ 公允价值 (白线): 基于宏观数据的理论“正确”价格。
😨 一般恐惧 (青色区域): 价格 < -0.15 标准差。进入低估区域。
💎 极度恐惧 (绿色区域): 价格 < -0.3 标准差。历史上通常是代际级别的买入机会。
情绪评分 (0-100)
100: 极度贪婪 (顶部)
50: 公允价值
0: 极度恐惧 (底部)
5. 使用建议
周期: 仅限日线 (1D) 或周线 (1W)。
原因: 底层数据源(M2, PMI)是月度更新的。标普500和算力是日度更新的。在日内图表(如15分钟、1小时、4小时)上使用此指标没有任何意义,因为基本面数据不会变化得那么快。
长期视角: 这是一个宏观周期指标,旨在识别数月甚至数年的周期顶部和底部,而非用于日内交易。
6. 免责声明
本指标仅供教育和参考使用,不构成任何财务建议。该模型依赖于历史相关性,未来可能不再适用。所有交易均涉及风险。GW Capital 及制作者不对任何交易损失承担责任。
🇺🇸 English Guide (英文说明)
1. Introduction
This indicator was created by GW Capital using Gemini Vibe Coding technology. It leverages advanced AI coding capabilities to reconstruct complex macroeconomic models into actionable trading tools.
2. Credits
Special thanks to the original model author, Marty Kendall. His research into the correlation between Bitcoin's price and macroeconomic factors lays the foundation for this algorithm.
3. Model Principles & Formula
This model calculates the "Fair Value" of Bitcoin based on four key macroeconomic pillars. It assumes that Bitcoin's price is a function of Global Liquidity, Network Security, Risk Appetite, and the Economic Cycle.
The Formula
$$\ln(BTC) = \alpha + (1 + \beta \cdot PMI_{z}) \times $$
Global Liquidity (M2): Sum of M2 supply from US, China, Eurozone, and Japan (converted to USD). Represents the pool of fiat money available to flow into assets.
Network Security (Hashrate): Bitcoin's hashrate, representing the physical security and utility of the network.
Risk Appetite (S&P 500): Used as a proxy for global risk sentiment.
Economic Cycle (PMI Z-Score): US Manufacturing PMI is used to amplify or dampen the valuation based on where we are in the business cycle (Expansion vs. Contraction).
4. How to Use
The indicator plots the Fair Value (White Line) and four sentiment bands based on statistical deviation (Z-Score).
Sentiment Zones
🚨 Extreme Greed (Red Zone): Price > +0.3 StdDev. Historically indicates a market top or overheated sentiment.
⚠️ Greed (Orange Zone): Price > +0.15 StdDev. Bullish momentum is strong but caution is advised.
⚖️ Fair Value (White Line): The theoretical "correct" price based on macro data.
😨 Fear (Teal Zone): Price < -0.15 StdDev. Undervalued territory.
💎 Extreme Fear (Green Zone): Price < -0.3 StdDev. Historically a generational buying opportunity.
Sentiment Score (0-100)
100: Maximum Greed (Top)
50: Fair Value
0: Maximum Fear (Bottom)
5. Usage Recommendations
Timeframe: Daily (1D) or Weekly (1W) ONLY.
Reason: The underlying data sources (M2, PMI) are updated monthly. The S&P 500 and Hashrate are daily. Using this indicator on intraday charts (e.g., 15m, 1h, 4h) adds no value because the fundamental data does not change that fast.
Long-Term View: This is a macro-cycle indicator designed for identifying cycle tops and bottoms over months and years, not for day trading.
6. Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. The model relies on historical correlations which may not hold true in the future. All trading involves risk. GW Capital and the creators assume no responsibility for any trading losses.
S&P Options Patterns Detector (6-20 Candles)Pattern detector for S&P options. Detects alerts for bullish or bearish signals for any stock in S&P 500
Trendslingers CVDTrendslingers Version of CVD.
Im only adding it more words because tradingview is asking me too.
DCA Ladder CalculatorThis script is a DCA (Dollar-Cost Averaging) Ladder Calculator with Risk & Leverage Management baked in.
It’s designed for both LONG and SHORT positions, and helps you:
🎯 Strategically scale into positions across multiple entry points
🔐 Control risk exposure via defined capital allocation
⚖️ Utilize leverage responsibly — for efficiency, not destruction
🧮 Visualize risk, stop loss level, and entry distribution
🔁 Adapt to trend reversals or key zones, especially when combined with reversal indicators or higher timeframe signals
🧠 How It Works
This tool takes a capital allocation approach to building a ladder of positions:
1. You define:
- Portfolio value
- Risk per trade (as %)
- Leverage
- Number of DCA levels
- Entry multiplier (e.g. 1x, 2x, 4x...)
2. The script then:
- Calculates total margin to risk = Portfolio × Risk %
- Calculates total leveraged position size = Margin × Leverage
- Distributes entries according to exponential weights (1x, 2x, 4x...), totaling 7 for 3 levels
- Calculates per-entry:
- Entry price (based on price zone spacing)
- Multiplier
- Exact margin per entry
- Leverage per entry (margin × leverage)
- Computes:
- Average entry price (margin-weighted)
- Approximate stop loss level based on recent ATR and price structure
- % drawdown to SL
- Total margin and position size
3. Displays all this in a clean on-chart table.
📈 How to Use It
1. Apply the indicator to a chart (default: 1D — ideal for clean zones).
2. Configure your:
- Portfolio Value (total trading capital)
- Risk per Trade (%) (your acceptable loss)
- Leverage (exchange or strategy-based)
- DCA Levels (e.g. 3 = anchor + 2 entries)
- Multiplier (typically 2.0 for doubling)
3. Choose LONG or SHORT mode depending on direction.
4. The table will show:
- Entry price ladder
- Margin used per entry
- Total position size
- Approx. stop loss (where your full risk is defined)
Use in conjunction with price action, S/R zones, trendline breaks, volume divergence, or reversal indicators.
✅ Best Practices for Using This Tool
- Leverage is a tool, not a weapon. Use it to scale smartly — not recklessly.
- Use fewer, higher-conviction entries. Don’t blindly ladder; combine with price structure and signals.
- Stick to your risk percent. Never risk more than you can afford to lose. Let this calculator enforce discipline.
- Combine with other confirmation tools, like RSI divergence, momentum shifts, OB zones, etc.
- Avoid martingale-style over-exposure. This is not a gambling tool — it’s for capital efficiency.
🛡️ What This Tool Does NOT Do
- This is not a trade signal indicator.
- It does not place trades or auto-manage positions.
- It does not replace personal responsibility or strategy — it's a tool to help apply structure.
⚠️ Disclaimer
This script is for educational and informational purposes only.
It does not constitute financial advice, nor is it a recommendation to buy or sell any financial instrument.
Always consult a licensed financial advisor before making investment decisions.
Use of leverage involves high risk and can lead to substantial losses.
The author and publisher assume no liability for any trading losses resulting from use of this script.
UM VIX30/VIX Regime & Volatility Roll Yield
SUMMARY
A front-of-the-curve volatility indicator that compares spot VIX to a synthetic 30-day VIX (VIX30) built from VX1/VX2 futures, revealing early volatility pressure, regime shifts, and roll-yield transitions. Ideal for timing long/short volatility trades in VXX, UVXY, SVIX, and VIX futures.
DESCRIPTION
This indicator compares spot VIX to a synthetic 30-day constant-maturity volatility estimate (“VIX30”) built from VX1 and VX2 futures. The VIX30/VIX Ratio reveals short-term volatility pressure and regime shifts that traditional VX1/VX2 roll-yield alone often misses.
VIX30 is constructed using true calendar-day interpolation between VX1 and VX2, with VX1% and VX2% showing the real-time weights behind the 30-day volatility anchor. The table displays the volatility regime, the VX1/VX2 weights, spot-term roll yield (VIX30/VIX), and futures-term roll yield (VX2/VX1), giving a complete, front-of-the-curve perspective on volatility dynamics.
Use this to spot early volatility expansions, collapsing contango, and regime transitions that influence VXX, UVXY, SVIX, VX options, and VIX futures.
HOW IT WORKS
The script calculates the exact calendar days to expiration for the front two VIX futures. It then applies linear interpolation to blend VX1 and VX2 into a 30-day constant-maturity synthetic volatility measure (“VIX30”). Comparing VIX30 to spot VIX produces the VIX30/VIX Ratio, which highlights short-term volatility pressure and regime direction. A full term-structure table summarizes regime, VX1%/VX2% weights, and both spot-term and futures-term roll yields.
DEFAULT SETTINGS
VX1! and VX2! are used by default for front-month and second-month futures. These may be manually overridden if TradingView rolls contracts early. The default timeframe is 30 minutes, and the VIX30/VIX Ratio uses a 21-period EMA for regime smoothing. The historical threshold is set to 1.08, reflecting the long-run average relationship between VIX30 and VIX.
SUGGESTED USES
• Identify early volatility expansions before they appear in VX1/VX2 roll yield.
• Confirm contango/backwardation shifts with front-of-curve context.
• Time long/short volatility trades in VXX, UVXY, SVIX, and VX options.
• Monitor regime transitions (Low → Cautionary → High) to anticipate trend inflections.
• Combine with price action, Nadaraya-Watson trends, or MA color-flip systems for higher-confidence entries.
• MA red → green flips may signal opportunities to short volatility or increase equity exposure.
• MA green → red flips may signal opportunities to go long volatility, reduce equity exposure, or take short-equity positions.
ALERTS
Alerts trigger when the ratio crosses above or below the historical threshold or when the moving-average slope flips direction. A green flip signals rising volatility pressure; a red flip signals fading or collapsing volatility. These alert conditions can be used to automate long/short volatility bias shifts or trade-entry notifications.
FURTHER HINTS
• Increasing orange/red in the table suggests an emerging higher-volatility environment.
• SVIX (inverse volatility ETF) can trend strongly when volatility decays; on a 6-hour chart, MA green flips often align with attractive short-volatility opportunities.
• For long-volatility trades, consider shrinking to a 30-minute chart and watching for MA green → red flips as early entry cues.
• Experiment with different timeframes and smoothing lengths to match your trading style.
• Higher VIX30/VIX and VX2/VX1 roll yields generally imply faster decay in VXX, UVXY, and UVIX — or stronger upside momentum in SVIX.
• The author likes the 6-hour chart for short vol, and the 30-minute chart for long vol. Long vol trades are fast and furious so you want to be quick.
Altcoin Relative Macro StrengthAltcoin Relative Macro Strength
Overview
The Altcoin Relative Macro Strength indicator measures the altcoin market's price performance relative to global macroeconomic conditions. By comparing TOTAL3ES (total altcoin market capitalization excluding Bitcoin, Ethereum and stable coins) against a composite macro trend, the indicator identifies periods of relative overvaluation and undervaluation.
Methodology
Global Macro Trend Calculation:
The macro trend synthesizes three primary components:
- ISM PMI – A proxy for the business cycle phase
- Global Liquidity – An aggregate measure of major central bank balance sheets and broad money supply
- IWM (Russell 2000) – Small-cap equity exposure, reflecting risk-on/risk-off market sentiment
Global Liquidity is calculated as:
Fed Balance Sheet - Reverse Repo - Treasury General Account + U.S. M2 + China M2
The final Global Macro Trend is:
ISM PMI × Global Liquidity × IWM
Theoretical Framework:
The global macro trend integrates liquidity expansion/contraction with business cycle dynamics and small-cap equity performance. The inclusion of IWM reflects altcoins' tendency to behave as high-beta risk assets, exhibiting sensitivity similar to small-cap equities. This composite exhibits strong directional correlation with altcoin market movements, capturing the risk-on/risk-off dynamics that drive altcoin performance.
Interpretation
Primary Signal:
The histogram displays the rolling percentage change of TOTAL3ES relative to the global macro trend (default: 21-period average). Positive divergence indicates altcoins are outperforming macro conditions; negative divergence suggests underperformance relative to the underlying economic and risk environment.
Data Tables:
Alts/Macro Change – Percentage deviation of the altcoin market's average value from the Global Macro Trend's average over the specified period
Macro Trend – Directional assessment of the macro trend based on slope and trend agreement:
🔵 BULLISH ▲ – Positive slope with upward trend
⚪ NEUTRAL → – Slope and trend direction disagree
🟣 BEARISH ▼ – Negative slope with downward trend
Macro Slope – Percentage rate of change in the global macro trend
Altcoin Valuation – Relative valuation category based on TOTAL3/Macro deviation:
🟢 Extreme Discount / Deep Discount / Discount
🟡 Fair Value
🔴 Premium / Large Premium / Extreme Premium
TOTAL3ES Mcap – Current total altcoin market capitalization (in billions)
Visual Components:
📊 Histogram: Alts/Macro Change
🟢 Green = Positive deviation (altcoins outperforming)
🔴 Red = Negative deviation (altcoins underperforming)
📈 Macro Slope Line
Color-coded to match trend assessment
Scaled for visibility (adjustable in settings)
Application
This indicator is designed to identify mean reversion opportunities by highlighting periods when the altcoin market materially diverges from fundamental macro and risk conditions. Extreme positive values may indicate overvaluation; extreme negative values may signal undervaluation relative to the prevailing economic and risk appetite backdrop.
Strategy Considerations:
- Identify extremes: Look for periods when the histogram reaches elevated positive or negative levels
- Assess valuation: Use the Altcoin Valuation reading to gauge relative over/undervaluation
Confirm with risk sentiment: Check whether macro conditions and risk appetite support or contradict current price levels
- Mean reversion: Consider that significant deviations from trend historically tend to revert
Note: This indicator identifies relative valuation based on macro conditions and risk sentiment—it does not predict price direction or timing.
Settings
Lookback Period – 21 bars (default) – Number of bars for calculating rolling averages
Macro Slope Scale – 3.0 (default) – Multiplier for macro slope line visibility
Daily Pivots (17:00 OHLC)These pivots are based on OHLC of previous 17:00 CT day (Futures reopen). If it doesn't look right try to click three dots on indicator and select "pin to right scale".
Daily Settlement High LowThis script extends a line from the high and low of the 14:59:30 CT Candle which is the CME daily settlement window for the SP500 and Emini500. Only works on the 30 second chart.
Historical SimilaritiesHappy trading! This tool provides short-term trend estimations. It is a further evolution of my earlier ANN Trend Prediction indicator, but it uses a completely new feature-vector composition and a different type of neural network.
1. Concept
The underlying idea is that history tends to repeat—not exactly, but with recognizable similarities. When recent market conditions resemble past situations, it is reasonable to assume that price may behave similarly again. That is the foundation of this indicator.
In the image below, you can see the general setup. The most recent bar (the “now” point) separates the past from the future. A sequence of recent bars is interpreted as a pattern and fed into a pre-trained LSTM network, which then produces the prediction for the current bar.
The focus of this tool is to deliver predictions as early as possible—ideally just before a trend reversal—to support short-term trades lasting approximately 5 to 20 bars. While perfect early detection is not reached here, this indicator often identifies reversals within one bar after they occur, which is usually early enough to capture meaningful moves.
There are other indicators capable of signaling trend reversals within a single bar—such as Shooting Star or Hammer candle patterns, or certain indicator setups. They were effective when they were new, but widespread use has reduced their reliability, and sometimes those patterns simply do not appear or appear without trend reversal.
This tool, by contrast, is new and it successfully identifies many trend reversals, as demonstrated in the image below:
2. Experimental Part
Furthermore, because this approach offers multiple settings that influence its behavior, you can configure it to focus on larger trends and ignore smaller fluctuations. The following images show several examples:
The default settings
with only-Body Smoothing enabled
with Generalized Trends enabled
with both Smoothing enabled
However, as you may notice, when targeting larger trends, a number of false-negative predictions may also appear. These still need to be filtered out. Please keep in mind that this version is experimental, requiring further investigation and research, and I would appreciate any feedback or suggestions.
3. Results
The prediction output is shown through a label and background colors as shown in the following image. It provides probabilities for three market directions:
Up - green
Sideways - blue
Down - red
When the model cannot confidently classify the current market conditions, it deliberately withholds a prediction and leaves the background uncolored. In most cases, however, it displays a label with all three probabilities whenever a new dominant prediction emerges, and it remains visible until the next dominant signal appears.
4. Conclusion
In its default settings, this indicator is quite capable when short-term trends last at least five or more bars. A support-and-resistance indicator can be helpful for setting take-profit and stop-loss levels.
5. Settings Menu
The script is delivered with its default settings, all turned off. However, several configuration options are available:
Input Preparation
Smoothing – Using Heikin Ashi or using only Bar Body are two methods that help remove outliers from the incoming bars.
Generalize Trends – Merges nearby trends together and removes smaller, insignificant trends.
Generalize Patterns – Checks the incoming pattern for artifacts and reduces it when possible. This is a trade-off between removing noise and keeping meaningful features.
Shifting – Examines the incoming pattern for consistency and adjusts it when reasonable.
Speed – Determines how quickly a prediction is calculated. A longer calculation time can improve accuracy, but may also risk the script timing out.
Filters
Intrabar – Off by default, allowing new dominant predictions only at bar close. When enabled, predictions may also be updated intrabar, but this introduces repainting on the current open bar.
Start of Classification – Sets the date from which classifications may begin.
Minimum Gains After Pattern – Defines how much price must rise or fall for a pattern to be considered an up, down, or sideways pattern.
Minimum Classification Probability – If the highest probability is below this threshold, no prediction is selected and the background stays translucent. If one probability exceeds the threshold, the largest one is chosen as the prediction.
Minimum Pattern Strength – Removes patterns whose strength is below this threshold.
6. Alert Signals Available
Trend Signal
2 = possible High
1 = Uptrend
0 = Ranging
-1 = Downtrend
-2 = possible Low
na = no prediction
Signal Age - counts the number of bars since last change
7. Declaration for TradingView House Rules on Script Publishing
The unique feature of the Historical Similarities Indicator is it's nearby real-time detection capability for up trends, down trends and side way price action in most cases.
This script is closed-source and invite-only, to support and compensate for years of development work.
8. Disclaimer
Trading involves risk, and losses can and do occur. This script is intended for informational and educational purposes only. All examples are hypothetical and not financial advice.
Decisions to buy, sell, hold, or trade securities, commodities, or other assets should be based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Use this script at your own risk. It may contain bugs, and I cannot be held responsible for any financial losses resulting from its use.
Cheers!





















