The Composite Predictive Index (CPI-IG v5)The Composite Predictive Index (CPI-IG v5) is the creation of Alcides Davila (Alcides0265), Daily Trader. This indicator, which I call "The Predictor Index" and is also known as "The Composite Predictive Index (CPI-IG v5)", is an overlay indicator designed for institutional-grade market analysis and trading signals. Daily traders could also take advantage of this indicator by making the necessary adjustments for the trading sessions, whether for short (scalping), medium, or long-term investments. It synthesizes multiple technical factors (e.g., RSI, MACD, Bollinger Bands, VWAP, EMAs/SMAs, volume pressure, delta volume, manual sentiment/news inputs) into a weighted Z-score-based probability model (probUp) for forecasting price direction—generating buy/sell gates, strong/ultra signals, and short-term projections. It supports multi-timeframe alignment (HTF/LTF), breakout/breakdown detection with retests, internal backtesting, and alerts, while displaying dashboards for probabilities, stats, oscillators (bull/bear/neutral), major indexes (S&P, DJIA, Nasdaq), and ETFs (SPY, QQQ, etc.).
In terms of structure, it's highly reliable and productive: modular code with error-handling (safe divisions, approximations for tanh/erf), customizable modes (scalp to long-term), efficient resource use (max_bars_back=500), and cooldowns to prevent alert spam. Quality is strong, with transparent math, visual flexibility, and no apparent logic bugs—though real-world performance depends on market conditions and user tuning.
Investors can benefit significantly by using it for data-driven decisions, reducing bias through probability scores (e.g., >68% for buys), timing entries/exits with cross-confirmations, and monitoring broader market context via indexes/ETFs. It's especially useful for trend-following or reversal strategies, potentially improving win rates in volatile markets, but, like all indicators, it's not foolproof—use it in combination with risk management.
Strongest feature: The probability engine, which normalizes diverse signals into a robust, Z-scaled probUp metric (via the normal CDF or a logistic), enabling a quantifiable edge over traditional oscillators.
指标和策略
LiquidityPulse Higher Timeframe Consecutive Candle Run LevelsLiquidityPulse Higher Timeframe Consecutive Candle Run Levels
Research suggests that financial markets can alternate between trend-persistence and mean-reversion regimes, particularly at short (intraday) or very long timeframes. Extended directional moves, whether prolonged intraday rallies or sell-offs, also carry a statistically higher chance of retracing or reversing (Safari & Schmidhuber, 2025). In addition, studies examining support and resistance behaviour show that swing highs or lows formed after strong directional moves may act as structurally and psychologically important price levels, where subsequent price interactions have an increased likelihood of stalling or bouncing rather than passing through directly (Chung & Bellotti, 2021). By highlighting higher-timeframe candle runs and marking their extremal levels, this indicator aims to display areas where directional momentum previously stopped, providing contextual "watch levels" that traders may incorporate into their broader analysis.
How this information is used in the indicator:
When a sequence of consecutive higher-timeframe candles prints in the same direction, the indicator highlights the lower-timeframe chart with a green or red background, depending on whether the higher-timeframe run was bullish or bearish. The highest high (for a bull run) or lowest low (for a bear run) of that sequence forms a recent extremum, and this value is plotted as a swing-high or swing-low level. These levels appear only after the required number of consecutive higher-timeframe candles (set by the user) have closed, and they continue updating as long as the higher-timeframe streak remains intact. A level "freezes" and stops updating only when an opposite-colour higher-timeframe candle closes (e.g., a red candle ending a bull run, or a green candle ending a bear run). Once frozen, the level remains fixed to preserve that structural information for future analysis or retests. The number of past bull/bear levels displayed on the chart is also adjustable in the settings.
Why capture a level after a long directional run:
When price moves in one direction for several consecutive candles (e.g. 4, 5, or more), it reflects strong directional bias, often associated with momentum, liquidity imbalance, or liquidity grabs. Once that sequence breaks, the final level reached marks a point of exhaustion or structural resistance/support, where that bias failed to continue. These inflection points are often used by traders and trading algorithms to assess potential reversals, retests, or breakout setups. By freezing these levels once the run ends, the indicator creates a map of historically significant price zones, allowing traders to observe how price behaves around them over time.
Additional information displayed by the indicator:
Each detected run includes a label showing the run length (the number of consecutive higher-timeframe candles in the streak) along with the source timeframe used for detection. The indicator also displays an overstretch marker: this numerical value appears when the total size of the candle bodies within the run exceeds a user-defined multiple of the average higher-timeframe body size (default: 1.5x). This helps highlight runs that were unusually strong or extended relative to typical volatility. You can also enable alerts that trigger when this overstretch ratio exceeds a higher threshold.
Key Settings
Timeframe: Choose which HTF to analyse (e.g., 15m, 1h, 4h)
Minimum Candle Run Length: Define how many consecutive candles are needed to trigger a level (e.g., 4)
Overstretch Settings: Customize detection threshold and alert trigger (in multiples of average body size)
Background Tints: Enable/disable visual highlights for bull and bear runs
Display Capacity: Choose how many past bull/bear levels to show
How Traders Can Use This Indicator
Traders can:
-Watch levels for retests, reversals, breakouts, or consolidation
-Identify areas where price showed strong directional conviction
-Spot extended or aggressive moves based on overstretch detection
-Monitor how price reacts when retesting prior run levels
-Build confluence with your existing levels, zones, or indicators
Disclaimer
This tool does not reflect true order flow, liquidity, or institutional positioning. It is a visual aid that highlights specific candle behaviour patterns and does not produce predictive signals. All analysis is subject to interpretation, and past price behaviour does not imply future outcomes.
References:
Trends and Reversion in Financial Markets on Time Scales from Minutes to Decades (Sara A. Safari & Christof Schmidhuber, 2025)
Evidence and Behaviour of Support and Resistance Levels in Financial Time Series (Chung & Bellotti, 2021)
TrendForce X🔹 Indicator Overview
This indicator is built to give traders simple, reliable, and high-probability signals by combining three powerful concepts:
market structure, trend direction, and premium/discount zones.
It removes complexity and delivers clean BUY and SELL signals that align with the true flow of the market.
📌 Key Features
Accurate trend detection to stay aligned with market direction
Premium & Discount model to identify smart-money price zones
Automatic Market Structure analysis ( CHoCH & BOS )
BUY signals when price shifts bullishly from a discount area
SELL signals when price breaks structure bearish from a premium area
Clean, user-friendly visual signals
Works on any pair , market , or timeframe .
🟢 Buy Signal Logic
A BUY signal is generated when:
Price is in a discount zone
The market shows a bullish change of structure
This combination filters out weak setups and highlights strong upside reversals.
🔻 Sell Signal Logic
A SELL signal is triggered when:
Price is in a premium zone
The market forms a bearish break of structure
This helps catch high-probability downside moves with precision.
⚠️ Disclaimer
This indicator is a powerful tool, but no indicator guarantees 100% accuracy. Always practice proper risk management and confirm signals with your trading plan.
TRADE ORBIT:-Institutional FOOTPRINTBUY WHEN:
✅ Green position building zone
✅ Multiple strong buy signals
✅ Volume ratio > 2.0x
✅ Signal strength 6-7/7
✅ No bearish divergence
SELL WHEN:
🔴 Red position exiting zone
🔴 Multiple strong sell signals
🔴 Volume spike on down bars
🔴 Signal strength 6-7/7
🔴 No bullish divergence
WAIT WHEN:
⚠️ Conflicting signals
⚠️ Low volume
⚠️ Signal strength < 4/7
⚠️ Sideways market
COMMON MISTAKES TO AVOID
Don't trade on single signals
Don't ignore the overall trend
Don't overlook divergence signals
Always check volume confirmation
Wait for multiple time frame confirmation
PERFECT BUY SETUP:
Chart shows green background (position building)
Large green triangles appear below bars
Table shows:
Volume Ratio: 2.5x ✅
Signal: STRONG BUY ✅
Position Status: BUILDING ✅
Market Trend: BULLISH ✅
Signal Strength: 7/7 ✅
Price above VWAP and rising OBV
DANGER SELL SETUP:
Chart shows red background (position exiting)
Large red triangles appear above bars
Table shows:
Signal: STRONG SELL ✅
Position Status: EXITING ✅
Money Flow: NEGATIVE ✅
Bearish divergence present ✅
TIME FRAMES:
Best: Daily charts (most accurate for institutional detection)
Good: 4-hour and Weekly charts
For confirmation: Use multiple time frames
CONFIRMATION RULES:
Never trade on a single signal alone
Look for clusters of signals
Check signal strength (5-7/7 is strong)
Ensure trend alignment (don't fight the trend)
Watch for divergence as early warnings
RISK MANAGEMENT:
Entry: After 2-3 confirming signals in same direction
Stop Loss: Below recent support for buys, above resistance for sells
Position Size: Smaller during conflicting signals, larger during high confirmation
Recommended Alerts:
Strong Institutional Buying - For entry opportunities
Strong Institutional Selling - For exit warnings
Position Building - For accumulation phases
Position Exiting - For distribution phases
Bullish Divergence - Early accumulation signals
Bearish Divergence - Early distribution signals
BACKGROUND COLORS:
🔵 Blue background = High volume spike (2x+ average)
🟢 Green background = Position building zone (cluster of buys)
🔴 Red background = Position exiting zone (cluster of sells)
DIVERGENCE SIGNALS:
B-DIV = Bullish divergence (price low, OBV high = accumulation)
S-DIV = Bearish divergence (price high, OBV low = distribution)
MTF Alignment & Key Levelsso this one is specifically for the 1hr and 4hr time frame. but what it does is alert you once the monthly weekly and daily timeframes align with a trend in a certain direction wether its bearish or bullish but then it will mark out key levels on the 1hr and 4hr time frame to indicate when price breaks through that level to enter a trade in the direction of the higher timeframes alignment.
Daily Range Box (RIC) V0.2This update enhances the "Daily Range Box" indicator by adding user-configurable inputs for colors and line styles. Users can now customize the box border color and the midline color independently through dedicated color picker inputs. Additionally, separate dropdown menus allow selection of line styles (Solid, Dashed, or Dotted) for both the box border and the midline, enabling personalized visualization while maintaining the core functionality of drawing daily range boxes with midlines across all timeframes.
EMA Crossover CandlesEMA Crossover Candles
This indicator colors your chart candles based on the relationship between two Exponential Moving Averages (EMAs).
How It Works
Green Candles - When the Fast EMA is above the Slow EMA, indicating bullish momentum
Red Candles - When the Fast EMA is below the Slow EMA, indicating bearish momentum
Settings
Source - The price data used for EMA calculations (default: close)
Fast Length - Period for the fast EMA (default: 5)
Slow Length - Period for the slow EMA (default: 10)
How To Use
This indicator provides a quick visual reference for trend direction. Green candles suggest the short-term trend is bullish, while red candles suggest bearish conditions. This can help you:
Identify trend direction at a glance
Filter trades in the direction of the trend
Spot potential trend changes when candle colors shift
Tips
Adjust the Fast and Slow Length settings to match your trading timeframe
Shorter periods = more responsive but more false signals
Longer periods = smoother but slower to react to trend changes
Consider hiding default candles in Chart Settings for a cleaner look
Note: This indicator is for informational purposes only and should not be used as the sole basis for trading decisions. Always use proper risk management and consider combining with other forms of analysis.
Feel free to modify this to match your style or add any additional details you'd like to include.Claude is AI and can make mistakes. Please double-check responses. Opus 4.5
Wheel Strategy SMAsPlots the 200 SMA and 50 SMA- For CSP, look for a strike price that is at or just below teh 200 sma
CK Auto Adaptive StoplossThis tool automatically finds the best stop-loss for every trade by analyzing candle structure, ATR volatility, volume spikes, and market momentum. It tightens or widens the stop dynamically and shows you exactly how many contracts you can use based on your risk per trade.
It also plots bold stop-loss lines on your chart and includes a live position-sizing table so you always stay consistent.
Reversal (Heikin Ashi-ready)This indicator detects bullish and bearish reversal patterns based purely on price action relative to prior candles. It is designed to be Heikin Ashi–compatible, meaning it can optionally use HA OHLC values rather than standard candles.
The script identifies:
Bullish reversals (V Up triangles)
Bearish reversals (V Down triangles)
It uses a two-stage system:
Context detection (a potential reversal setup forms).
Confirmation detection (price breaks a key level within a specified number of bars).
SPX Expected High/Low Move, S&R, Gamma (Daily Manual update Req)This script enables users to manually plot the anticipated low and high price movements, while also visualizing both positive and negative gamma exposures. The anticipated low represents the projected downside threshold based on expected volatility, whereas the anticipated high reflects the potential upside boundary under similar conditions. Positive gamma indicates scenarios where option positions benefit from underlying price movements, enhancing convexity and reducing directional risk. Conversely, negative gamma highlights exposures where option positions lose value as the underlying price moves, amplifying directional risk and requiring active hedging.
I use Barchart to manually update my personal chart each morning. I am not responsible for any information presented on their website. This is a reference tool to determine when and where to take profit, levels where price will test, etc. Use in conjunction with the appropriate EMAs for your timeframe and strategy.
Indicator ***TuYa*** V8.2 – HH/HL MTF + Peak Mid ZoneIndicator TuYa V8.0 – HH/HL MTF + Peak Mid Zone
TuYa V8.0 combines multi-timeframe market structure with a Peak Reaction midline to create clean, rule-based reversal and trend entries – designed primarily for 1-minute execution with 1-hour bias.
🧠 Core Concept
This indicator fuses three ideas:
HTF Peak Reaction Midline (1H)
Uses a Peak Reaction style logic on the higher timeframe (HTF, default: 1H).
Identifies a reaction high and reaction low, then calculates their midpoint → the Peak Mid Zone.
This midline acts as a dynamic sentiment divider (above = premium / below = discount).
Multi-Timeframe HH/HL/LH/LL Structure
HTF structure (1H): detects HH, HL, LH, LL using pivot highs/lows.
LTF structure (1m): detects HH, HL, LH, LL on the execution timeframe (chart TF, intended for 1m).
HTF → LTF Confirmation Window
After a 1H structure event (HH, HL, LL, LH), the indicator opens a confirmation window of up to N LTF candles (default: 10 x 1m bars).
Within that window, the required 1m structure event must occur to confirm an entry.
🎯 Signal Logic
All entries are generated on the LTF (e.g. 1m chart), using HTF (e.g. 1H) bias + Peak Mid Zone:
1️⃣ Price ABOVE Peak Mid (Bullish premium zone)
Reversal SELL
HTF: HH (Higher High)
Within N 1m bars: LTF HH
→ SELL signal (fading HTF strength near premium)
Trend/Bullish BUY
HTF: HL (Higher Low)
Within N 1m bars: LTF LL
→ BUY signal (buying dips in an uptrend above midline)
2️⃣ Price BELOW Peak Mid (Bearish discount zone)
Reversal BUY
HTF: LL (Lower Low)
Within N 1m bars: LTF LL
→ BUY signal (catching potential reversal from discount)
Trend/Bearish SELL
HTF: LH (Lower High)
Within N 1m bars: LTF HH
→ SELL signal (shorting strength in a downtrend below midline)
Signals are plotted as small BUY/SELL triangles on the chart and exposed via alert conditions.
🧾 Filters & Options
⏳ HTF → LTF Delay Window
Input: “Max 1m bars after HTF trigger” (default: 10)
After a 1H HH/HL/LL/LH event, the indicator waits up to N LTF candles for the matching 1m structure pattern.
If no match occurs within the window, no signal is generated.
📉 RSI No-Trade Zone (HTF)
Toggle: Use RSI no-trade zone
Inputs:
RSI Length (HTF)
No-trade lower bound (default 45)
No-trade upper bound (default 65)
If HTF RSI is inside the defined band (e.g. 45–65), signals are blocked (no-trade regime), helping to avoid noisy mid-range conditions.
You can turn this filter ON/OFF and adjust the band dynamically.
🧱 5m OB / Direction Filter (Optional)
Toggle: Use 5m OB direction filter
Timeframe: Configurable (default: 5m).
Uses a simple directional proxy on the OB timeframe:
For BUY signals → require a bullish candle on OB timeframe.
For SELL signals → require a bearish candle on OB timeframe.
When enabled, this adds an extra layer of confluence by aligning entries with the short-term directional context.
⚙️ Key Inputs (Summary)
Timeframes
HTF (Peak Reaction & Structure): default 60 (1H)
Peak Reaction
Lookback bars (HTF)
ATR multiplier for zones
Show/Hide Peak Mid line
Structure
Pivot left/right bars (for HH/HL/LH/LL swings)
Toggle structure labels (HTF & LTF)
Confirmation
Max LTF bars after HTF trigger (default 10, fully configurable)
RSI Filter
Use filter (on/off)
RSI length
No-trade range (low/high)
5m OB Filter
Use filter (on/off)
OB timeframe (default 5m)
📡 Alerts & Automation
The script includes alertconditions for both BUY and SELL signals, with JSON-formatted alert messages suitable for routing to external bridges (e.g. bots, MT5/MT4, n8n, etc.).
Each alert includes:
Symbol
Side (BUY / SELL)
Price / Entry
SL & TP placeholders (from hidden plots, ready to be wired to your own logic)
Time
Performance tag
CommentCode (for strategy/type tagging on the receiver side)
You can attach these alerts to a webhook and let your execution engine handle SL/TP and order management.
📌 How to Use
Attach the indicator to a 1-minute chart.
Set HTF timeframe to 60 (or your preferred higher timeframe).
Optionally enable:
RSI regime filter
5m OB direction filter
Watch for:
Price relative to the Peak Mid line
BUY/SELL triangles that respect HTF structure + LTF confirmation + filters.
For automation, create alerts using the built-in conditions and your preferred JSON alert template.
⚠️ Disclaimer
This tool is for educational and informational purposes only.
It is not financial advice and does not guarantee profits. Always test thoroughly in replay / paper trading before using with live funds, and trade at your own risk.
Volume with High-Volume Highlight + ThresholdThis indicator highlights true high-volume candles without guessing.
It compares the current bar’s volume to the average volume over the last X candles and highlights bars that exceed your chosen threshold (ex: 1.5× the average).
Features
Automatic high-volume detection
Customizable volume multiplier
Bull/bear color coding
Average volume line
Threshold line (shows exactly where “high volume” begins)
Optional on-chart label showing the required volume level
Alert for any high-volume bar
What It’s Used For
Identifying breakout strength
Confirming bounce setups at key levels
Spotting real buyers/sellers stepping in
Avoiding fake moves with weak volume
Simple Rule
If volume is greater than (Average × Multiplier) → the bar is highlighted.
Fed Net Liquidity [Premium] [by Golman Armi]This indicator visualizes the USD Net Liquidity injected into the financial system by the Federal Reserve.
It is a fundamental macro-economic tool essential for understanding the underlying "fuel" driving risk assets such as the S&P 500 (SPX), Nasdaq (NDX), and Bitcoin (BTC).
Unlike many other liquidity scripts that incorrectly use Commercial Bank Assets (USCBBS), this script uses the Federal Reserve Total Assets (WALCL) to provide a mathematically accurate representation of Central Bank liquidity.
How It Works (The Formula)
Net Liquidity represents the actual cash available to the banking system for investment after government liabilities are subtracted. The formula used is:
NetLiquidity=WALCL−TGA−RRP
Where:
WALCL (Fed Balance Sheet): The total assets held by the Federal Reserve (The source of money printing).
TGA (Treasury General Account - WTREGEN): The checking account of the US Government. When the TGA goes up, money is removed from the economy; when it goes down, money is spent into the economy.
RRP (Reverse Repo - RRPONTTLD): Cash parked by banks and money market funds at the Fed overnight. A rise in RRP removes liquidity from the markets.
Features
Accurate Data Sourcing: Pulls daily data directly from FRED (Federal Reserve Economic Data).
Unit Correction: Automatically adjusts conflicting units (Millions vs Billions) from TradingView data feeds to output a correct value in Trillions of Dollars.
Trend Cloud: Features a smoothing EMA (Exponential Moving Average) with a color-coded cloud to easily identify the macro trend (Green for expansion, Red for contraction).
How to Use
Trend Correlation:
Rising Line (Green): Liquidity is expanding. Historically, this supports bullish trends in stocks and crypto.
Falling Line (Red): Liquidity is being drained (QT or TGA refill). This often leads to volatility or bearish trends in risk assets.
Divergences (The most powerful signal):
If the S&P 500 or Bitcoin makes a New High, but Net Liquidity makes a Lower High, it indicates a "hollow rally" lacking fundamental support, often preceding a correction.
Disclaimer
This tool is for educational purposes and macro-economic analysis only. It is not financial advice.
SPX Expected High & Low Move, S&R (Daily Manual update Req)This script enables users to manually plot the anticipated low and high price movements, while also visualizing both positive and negative gamma exposures. The anticipated low represents the projected downside threshold based on expected volatility, whereas the anticipated high reflects the potential upside boundary under similar conditions. Positive gamma indicates scenarios where option positions benefit from underlying price movements, enhancing convexity and reducing directional risk. Conversely, negative gamma highlights exposures where option positions lose value as the underlying price moves, amplifying directional risk and requiring active hedging.
I use Barchart to manually update my personal chart each morning. I am not responsible for any information presented on their website. This is a reference to determine when and where to take profit etc.
Credit Spread RegimeThe Credit Market as Economic Barometer
Credit spreads are among the most reliable leading indicators of economic stress. When corporations borrow money by issuing bonds, investors demand a premium above the risk-free Treasury rate to compensate for the possibility of default. This premium, known as the credit spread, fluctuates based on perceptions of economic health, corporate profitability, and systemic risk.
The relationship between credit spreads and economic activity has been studied extensively. Two papers form the foundation of this indicator. Pierre Collin-Dufresne, Robert Goldstein, and Spencer Martin published their influential 2001 paper in the Journal of Finance, documenting that credit spread changes are driven by factors beyond firm-specific credit quality. They found that a substantial portion of spread variation is explained by market-wide factors, suggesting credit spreads contain information about aggregate economic conditions.
Simon Gilchrist and Egon Zakrajsek extended this research in their 2012 American Economic Review paper, introducing the concept of the Excess Bond Premium. They demonstrated that the component of credit spreads not explained by default risk alone is a powerful predictor of future economic activity. Elevated excess spreads precede recessions with remarkable consistency.
What Credit Spreads Reveal
Credit spreads measure the difference in yield between corporate bonds and Treasury securities of similar maturity. High yield bonds, also called junk bonds, carry ratings below investment grade and offer higher yields to compensate for greater default risk. Investment grade bonds have lower yields because the probability of default is smaller.
The spread between high yield and investment grade bonds is particularly informative. When this spread widens, investors are demanding significantly more compensation for taking on credit risk. This typically indicates deteriorating economic expectations, tighter financial conditions, or increasing risk aversion. When the spread narrows, investors are comfortable accepting lower premiums, signaling confidence in corporate health.
The Gilchrist-Zakrajsek research showed that credit spreads contain two distinct components. The first is the expected default component, which reflects the probability-weighted cost of potential defaults based on corporate fundamentals. The second is the excess bond premium, which captures additional compensation demanded beyond expected defaults. This excess premium rises when investor risk appetite declines and financial conditions tighten.
The Implementation Approach
This indicator uses actual option-adjusted spread data from the Federal Reserve Economic Database (FRED), available directly in TradingView. The ICE BofA indices represent the industry standard for measuring corporate bond spreads.
The primary data sources are FRED:BAMLH0A0HYM2, the ICE BofA US High Yield Index Option-Adjusted Spread, and FRED:BAMLC0A0CM, the ICE BofA US Corporate Index Option-Adjusted Spread for investment grade bonds. These indices measure the spread of corporate bonds over Treasury securities of similar duration, expressed in basis points.
Option-adjusted spreads account for embedded options in corporate bonds, providing a cleaner measure of credit risk than simple yield spreads. The methodology developed by ICE BofA is widely used by institutional investors and central banks for monitoring credit conditions.
The indicator offers two modes. The HY-IG excess spread mode calculates the difference between high yield and investment grade spreads, isolating the pure compensation for below-investment-grade credit risk. This measure is less affected by broad interest rate movements. The HY-only mode tracks the absolute high yield spread, capturing both credit risk and the overall level of risk premiums in the market.
Interpreting the Regimes
Credit conditions are classified into four regimes based on Z-scores calculated from the spread proxy.
The Stress regime occurs when spreads reach extreme levels, typically above a Z-score of 2.0. At this point, credit markets are pricing in significant default risk and economic deterioration. Historically, stress regimes have coincided with recessions, financial crises, and major market dislocations. The 2008 financial crisis, the 2011 European debt crisis, the 2016 commodity collapse, and the 2020 pandemic all triggered credit stress regimes.
The Elevated regime, between Z-scores of 1.0 and 2.0, indicates above-normal risk premiums. Credit conditions are tightening. This often occurs in the build-up to stress events or during periods of uncertainty. Risk management should be heightened, and exposure to credit-sensitive assets may be reduced.
The Normal regime covers Z-scores between -1.0 and 1.0. This represents typical credit conditions where spreads fluctuate around historical averages. Standard investment approaches are appropriate.
The Low regime occurs when spreads are compressed below a Z-score of -1.0. Investors are accepting below-average compensation for credit risk. This can indicate complacency, strong economic confidence, or excessive risk-taking. While often associated with favorable conditions, extremely tight spreads sometimes precede sudden reversals.
Credit Cycle Dynamics
Beyond static regime classification, the indicator tracks the direction and acceleration of spread movements. This reveals where credit markets stand in the credit cycle.
The Deteriorating phase occurs when spreads are elevated and continuing to widen. Credit conditions are actively worsening. This phase often precedes or coincides with economic downturns.
The Recovering phase occurs when spreads are elevated but beginning to narrow. The worst may be over. Credit conditions are improving from stressed levels. This phase often accompanies the early stages of economic recovery.
The Tightening phase occurs when spreads are low and continuing to compress. Credit conditions are very favorable and improving further. This typically occurs during strong economic expansions but may signal building complacency.
The Loosening phase occurs when spreads are low but beginning to widen from compressed levels. The extremely favorable conditions may be normalizing. This can be an early warning of changing sentiment.
Relationship to Economic Activity
The predictive power of credit spreads for economic activity is well-documented. Gilchrist and Zakrajsek found that the excess bond premium predicts GDP growth, industrial production, and unemployment rates over horizons of one to four quarters.
When credit spreads spike, the cost of corporate borrowing increases. Companies may delay or cancel investment projects. Reduced investment leads to slower growth and eventually higher unemployment. The transmission mechanism runs from financial conditions to real economic activity.
Conversely, tight credit spreads lower borrowing costs and encourage investment. Easy credit conditions support economic expansion. However, excessively tight spreads may encourage over-leveraging, planting seeds for future stress.
Practical Application
For equity investors, credit spreads provide context for market risk. Equities and credit often move together because both reflect corporate health. Rising credit spreads typically accompany falling stock prices. Extremely wide spreads historically have coincided with equity market bottoms, though timing the reversal remains challenging.
For fixed income investors, spread regimes guide sector allocation decisions. During stress regimes, flight to quality favors Treasuries over corporates. During low regimes, spread compression may offer limited additional return for credit risk, suggesting caution on high yield.
For macro traders, credit spreads complement other indicators of financial conditions. Credit stress often leads equity volatility, providing an early warning signal. Cross-asset strategies may use credit regime as a filter for position sizing.
Limitations and Considerations
FRED data updates with a lag, typically one business day for the ICE BofA indices. For intraday trading decisions, more current proxies may be necessary. The data is most reliable on daily timeframes.
Credit spreads can remain at extreme levels for extended periods. Mean reversion signals indicate elevated probability of normalization but do not guarantee timing. The 2008 crisis saw spreads remain elevated for many months before normalizing.
The indicator is calibrated for US credit markets. Application to other regions would require different data sources such as European or Asian credit indices. The relationship between spreads and subsequent economic activity may vary across market cycles and structural regimes.
References
Collin-Dufresne, P., Goldstein, R.S., and Martin, J.S. (2001). The Determinants of Credit Spread Changes. Journal of Finance, 56(6), 2177-2207.
Gilchrist, S., and Zakrajsek, E. (2012). Credit Spreads and Business Cycle Fluctuations. American Economic Review, 102(4), 1692-1720.
Krishnamurthy, A., and Muir, T. (2017). How Credit Cycles across a Financial Crisis. Working Paper, Stanford University.
Volatility-Dynamic Risk Manager MNQ [HERMAN]Title: Volatility-Dynamic Risk Manager MNQ
Description:
The Volatility-Dynamic Risk Manager is a dedicated risk management utility designed specifically for traders of Micro Nasdaq 100 Futures (MNQ).
Many traders struggle with position sizing because they use a fixed Stop Loss size regardless of market conditions. A 10-point stop might be safe in a slow market but easily stopped out in a high-volatility environment. This indicator solves that problem by monitoring real-time volatility (using ATR) and automatically suggesting the appropriate Stop Loss size and Position Size (Contracts) to keep your dollar risk constant.
Note: This tool is hardcoded for MNQ (Micro Nasdaq) with a tick value calculation of $2 per point.
📈 How It Works
-This script operates on a logical flow that adapts to market behavior:
-Volatility Measurement: It calculates the Average True Range (ATR) over a user-defined length (Default: 14) to gauge the current "speed" of the market.
-State Detection: Based on the current ATR, the script classifies the market into one of three states:
Low Volatility: The market is chopping or moving slowly.
Normal Volatility: Standard trading conditions.
High Volatility: The market is moving aggressively.
Dynamic Stop Loss Selection: Depending on the detected state, the script selects a pre-defined Stop Loss (in points) that you have configured for that specific environment.
Position Sizing Calculation: Finally, it calculates how many MNQ contracts you can trade so that if your Stop Loss is hit, you do not lose more than your defined "Max Risk per Trade."
🧮 Methodology & Calculations
Since this script handles risk management, transparency in calculation is vital.
Here is the exact math used:
ATR Calculation: Contracts = Max Risk / Risk Per Contract
⚙️ Settings
You can fully customize the behavior of the risk manager via the settings panel:
Risk Management
-Max Risk per Trade ($): The maximum amount of USD you are willing to lose on a single trade.
Volatility Thresholds (ATR)
-ATR Length: The lookback period for volatility calculation.
-Upper Limit for LOW Volatility: If ATR is below this number, the market is "Low Volatility."
-Lower Limit for HIGH Volatility: If ATR is above this number, the market is "High Volatility." (Anything between Low and High is considered "Normal").
Stop Loss Settings (Points)
-SL for Low/Normal/High: Define how wide your stop loss should be in points for each of the three market states.
Visual Settings
-Color Theme: Switch between Light and Dark modes.
-Panel Position: Move the dashboard to any corner or center of your chart.
-Panel Size: Adjust the scale (Tiny to Large) to fit your screen resolution.
📊 Dashboard Overview
-The on-screen panel provides a quick-glance summary for live execution:
-Market State: Color-coded status (Green = Low Vol, Orange = Normal, Red = High Vol).
-Current ATR: The live volatility reading.
-Suggested SL: The Stop Loss size you should enter in your execution platform.
-CONTRACTS: The calculated position size.
-Est. Loss: The actual dollar amount you will lose if the stop is hit (usually slightly less than your Max Risk due to rounding down).
Who is this for?
-Discretionary and systematic futures traders on MNQ (/MNQ or MES also works with small adjustments)
-Anyone who wants perfect risk consistency regardless of whether the market is asleep or exploding
-Traders who hate manual position-size calculations on every trade
No repainting
Works on any timeframe
Real-time updates on every bar
Overlay indicator (no signals, pure risk-management tool)
⚠️ Disclaimer
This tool is for informational and educational purposes only. It calculates mathematical position sizes based on user inputs. It does not execute trades, nor does it guarantee profits. Past performance (volatility) is not indicative of future results. Always manually verify your order size before executing trades on your broker platform.
Session Highs and Lows🔑 Key Levels: Session Liquidity & Structure Mapper
The Key Levels indicator is an essential tool for traders as it automatically plots and projects critical Highs and Lows established during key trading sessions. These levels represent major liquidity pools and define the current market structure, serving as high-probability targets, support, or resistance for the remainder of the trading day.
⚙️ Core Functionality
The indicator operates in two distinct modes, tailored for different asset classes:
1. Asset Class Mode (Toggle)
You can switch between two predefined setups depending on the asset you are trading:
Stock Mode (RTH/ETH): Designed for US stocks and futures (e.g., NQ, ES, YM). It tracks and projects levels for Regular Trading Hours (RTH) (09:30-16:00) and Extended Hours (ETH) (16:00-09:30).
Forex/Default Mode (Asia/London/NY): Designed for global markets (e.g., currency pairs). It tracks and projects levels for the three major liquidity sessions: Asia (19:00-03:00), London (03:00-09:30), and New York (09:30-16:00).
🗺️ Key Levels Mapped
The script continuously tracks and plots the most significant structural levels:
Current Session High/Low: The running high and low of the currently active session.
Previous Session High/Low: The confirmed high and low from the most recently completed session. These are often targeted by market makers.
Previous Day High/Low (PDH/PDL): The high and low of the prior 24-hour day, acting as major structural boundaries and a crucial macro market filter.
🎛️ Advanced Liquidity Management
The indicator is built with specific controls for high-level liquidity analysis:
Extend Through Sweeps (Critical Setting):
OFF (Recommended): The projected line is automatically stopped or deleted the moment the price candle wicks or closes past it. This visually confirms that the liquidity at that level has been "swept" or "mitigated."
ON: The line extends indefinitely, treating the level as simple support/resistance, regardless of interaction.
Previous vs. Current View: You can select a checkbox (e.g., Use PREVIOUS London Level) to hide the current session's running levels and only display the static, confirmed high/low from the prior completed session. This helps declutter the chart and focus only on the confirmed structural levels.
Show Older History: Toggle to keep lines from prior days visible, allowing you to track multi-day structural context.
🎯 Trading Application
The lines plotted by the Key Levels indicator provide immediate, actionable information:
Bias Filter: Use the PDH/PDL to determine the overall market context. Trading above the PDH suggests a bullish bias, while trading below the PDL suggests a bearish bias.
Manipulation/Entry: Wait for price to aggressively sweep a Previous Session High/Low (line stops extending). This often signals a liquidity grab or "manipulation" phase. Look for entries in the opposite direction for the main move (Distribution).
Targets: Key levels (especially unmitigated ones) serve as excellent, objective take-profit targets for active trades.
Absorption RatioThe Hidden Connections Between Markets
Financial markets are not isolated islands. When panic spreads, seemingly unrelated assets suddenly begin moving in lockstep. Stocks, bonds, commodities, and currencies that normally provide diversification benefits start falling together. This phenomenon, where correlations spike during crises, has devastated portfolios throughout history. The Absorption Ratio provides a quantitative measure of this hidden fragility.
The concept emerged from research at State Street Associates, where Mark Kritzman, Yuanzhen Li, Sebastien Page, and Roberto Rigobon developed a novel application of principal component analysis to measure systemic risk. Their 2011 paper in the Journal of Portfolio Management demonstrated that when markets become tightly coupled, the variance explained by the first few principal components increases dramatically. This concentration of variance signals elevated systemic risk.
What the Absorption Ratio Measures
Principal component analysis, or PCA, is a statistical technique that identifies the underlying factors driving a set of variables. When applied to asset returns, the first principal component typically captures broad market movements. The second might capture sector rotations or risk-on/risk-off dynamics. Additional components capture increasingly idiosyncratic patterns.
The Absorption Ratio measures the fraction of total variance absorbed or explained by a fixed number of principal components. In the original research, Kritzman and colleagues used the first fifth of the eigenvectors. When this fraction is high, it means a small number of factors are driving most of the market movements. Assets are moving together, and diversification provides less protection than usual.
Consider an analogy: imagine a room full of people having independent conversations. Each person speaks at different times about different topics. The total "variance" of sound in the room comes from many independent sources. Now imagine a fire alarm goes off. Suddenly everyone is talking about the same thing, moving in the same direction. The variance is now dominated by a single factor. The Absorption Ratio captures this transition from diverse, independent behavior to unified, correlated movement.
The Implementation Approach
TradingView does not support matrix algebra required for true principal component analysis. This implementation uses a closely related proxy: the average absolute correlation across a universe of major asset classes. This approach captures the same underlying phenomenon because when assets are highly correlated, the first principal component explains more variance by mathematical necessity.
The asset universe includes eight ETFs representing major investable categories: SPY and QQQ for large cap US equities, IWM for small caps, EFA for developed international markets, EEM for emerging markets, TLT for long-term treasuries, GLD for gold, and USO for oil. This selection provides exposure to equities across geographies and market caps, plus traditional diversifying assets.
From eight assets, there are twenty-eight unique pairwise correlations. The indicator calculates each using a rolling window, takes the absolute value to measure coupling strength regardless of direction, and averages across all pairs. This average correlation is then transformed to match the typical range of published Absorption Ratio values.
The transformation maps zero average correlation to an AR of 0.50 and perfect correlation to an AR of 1.00. This scaling aligns with empirical observations that the AR typically fluctuates between 0.60 and 0.95 in practice.
Interpreting the Regimes
The indicator classifies systemic risk into four regimes based on AR levels.
The Extreme regime occurs when the AR exceeds 0.90. At this level, nearly all asset classes are moving together. Diversification has largely failed. Historically, this regime has coincided with major market dislocations: the 2008 financial crisis, the 2020 COVID crash, and significant correction periods. Portfolios constructed under normal correlation assumptions will experience larger drawdowns than expected.
The High regime, between 0.80 and 0.90, indicates elevated systemic risk. Correlations across asset classes are above normal. This often occurs during the build-up to stress events or during volatile periods where fear is spreading but has not reached panic levels. Risk management should be more conservative.
The Normal regime covers AR values between 0.60 and 0.80. This represents typical market conditions where some correlation exists between assets but diversification still provides meaningful benefits. Standard portfolio construction assumptions are reasonable.
The Low regime, below 0.60, indicates that assets are behaving relatively independently. Diversification is working well. Idiosyncratic factors dominate returns rather than systematic risk. This environment is favorable for active management and security selection strategies.
The Relationship to Portfolio Construction
The implications for portfolio management are significant. Modern portfolio theory assumes correlations are stable and uses historical estimates to construct efficient portfolios. The Absorption Ratio reveals that this assumption is violated precisely when it matters most.
When AR is elevated, the effective number of independent bets in a diversified portfolio shrinks. A portfolio holding stocks, bonds, commodities, and real estate might behave as if it holds only one or two positions during high AR periods. Position sizing based on normal correlation estimates will underestimate portfolio risk.
Conversely, when AR is low, true diversification opportunities expand. The same nominal portfolio provides more independent return streams. Risk can be deployed more aggressively while maintaining the same effective exposure.
Component Analysis
The indicator separately tracks equity correlations and cross-asset correlations. These components tell different stories about market structure.
Equity correlations measure coupling within the stock market. High equity correlation indicates broad risk-on or risk-off behavior where all stocks move together. This is common during both rallies and selloffs driven by macroeconomic factors. Stock pickers face headwinds when equity correlations are elevated because individual company fundamentals matter less than market beta.
Cross-asset correlations measure coupling between different asset classes. When stocks, bonds, and commodities start moving together, traditional hedges fail. The classic 60/40 stock/bond portfolio, for example, assumes negative or low correlation between equities and treasuries. When cross-asset correlation spikes, this assumption breaks down.
During the 2022 market environment, for instance, both stocks and bonds fell significantly as inflation and rate hikes affected all assets simultaneously. High cross-asset correlation warned that the usual defensive allocations would not provide their expected protection.
Mean Reversion Characteristics
Like most risk metrics, the Absorption Ratio tends to mean-revert over time. Extremely high AR readings eventually normalize as panic subsides and assets return to more independent behavior. Extremely low readings tend to rise as some level of systematic risk always reasserts itself.
The indicator tracks AR in statistical terms by calculating its Z-score relative to the trailing distribution. When AR reaches extreme Z-scores, the probability of normalization increases. This creates potential opportunities for strategies that bet on mean reversion in systemic risk.
A buy signal triggers when AR recovers from extremely elevated levels, suggesting the worst of the correlation spike may be over. A sell signal triggers when AR rises from unusually low levels, warning that complacency about diversification benefits may be excessive.
Momentum and Trend
The rate of change in AR carries information beyond the absolute level. Rapidly rising AR suggests correlations are increasing and systemic risk is building. Even if AR has not yet reached the high regime, acceleration in coupling should prompt increased vigilance.
Falling AR momentum indicates normalizing conditions. Correlations are decreasing and assets are returning to more independent behavior. This often occurs in the recovery phase following stress events.
Practical Application
For asset allocators, the AR provides guidance on how much diversification benefit to expect from a given allocation. During high AR periods, reducing overall portfolio risk makes sense because the usual diversifiers provide less protection. During low AR periods, standard or even aggressive allocations are more appropriate.
For risk managers, the AR serves as an early warning indicator. Rising AR often precedes large market moves and volatility spikes. Tightening risk limits before correlations reach extreme levels can protect capital.
For systematic traders, the AR provides a regime filter. Mean reversion strategies may work better during high AR periods when panics create overshooting. Momentum strategies may work better during low AR periods when trends can develop independently across assets.
Limitations and Considerations
The proxy methodology introduces some approximation error relative to true PCA-based AR calculations. The asset universe, while representative, does not include all possible diversifiers. Correlation estimates are inherently backward-looking and can change rapidly.
The transformation from average correlation to AR scale is calibrated to match typical published ranges but is not mathematically equivalent to the eigenvalue ratio. Users should interpret levels directionally rather than as precise measurements.
Correlation regimes can persist longer than expected. Mean reversion signals indicate elevated probability of normalization but do not guarantee timing. High AR can remain elevated throughout extended crisis periods.
References
Kritzman, M., Li, Y., Page, S., and Rigobon, R. (2011). Principal Components as a Measure of Systemic Risk. Journal of Portfolio Management, 37(4), 112-126.
Kritzman, M., and Li, Y. (2010). Skulls, Financial Turbulence, and Risk Management. Financial Analysts Journal, 66(5), 30-41.
Billio, M., Getmansky, M., Lo, A., and Pelizzon, L. (2012). Econometric Measures of Connectedness and Systemic Risk in the Finance and Insurance Sectors. Journal of Financial Economics, 104(3), 535-559.
Delta Bars [Elykia]Delta Bars — Order Flow & Momentum Analysis
Description:
Delta Bars is an "Order Flow Oscillator" designed to instantly visualize buyer and seller aggression within every price move.
Unlike standard volume, it breaks down what is happening "under the hood" (Delta) and offers a clear reading of market reversals thanks to intelligent divergence detection.
🔥 Key Features:
1. Dual Calculation Mode:
Timeframe Mode: Displays classic Delta based on time (e.g., 1min, 5min).
Range Bars Mode: (Exclusive) Builds Delta bars based on price movement (volatility) rather than time. This filters out noise during consolidation periods and reveals true strength during impulses.
2. 🧠 Smart Auto-Detection (Plug & Play):
No need to manually calculate "Box" or "Tick" sizes for each asset. The indicator automatically recognizes the asset you are trading and applies the optimal institutional calibration:
US Indices (NQ, ES, YM...)
Forex (EURUSD, JPY...)
Crypto (BTC, ETH)
Commodities (Gold, Oil)
Note: You can still switch to manual mode if needed.
3. "Flip" Detection (Divergences) ⚡:
The indicator automatically identifies anomalies between price and Delta:
If the candle closes Green but Delta is Negative (Absorption/Failed Selling Effort).
If the candle closes Red but Delta is Positive.
These situations are marked with a ⚡ symbol and a specific highlight color (Orange by default), often signaling an imminent reversal.
4. Technical Dashboard:
A discreet panel displays the current mode and "Box" size (in ticks/points) in real-time, ensuring you always know how the data is being filtered.
How to read the signals?
1. Green/Red Bars: They indicate Net Delta (the difference between buying and selling volume). A tall bar implies strong conviction.
2. The ⚡ Symbol (The Flip): This is the most critical signal. It appears when Delta contradicts the candle direction (e.g., Positive Delta on a Bearish candle). This indicates Absorption (passive orders blocking the move) and often precedes a reversal.
3. Range Bars Mode: Use this mode to "smooth out" the market. If the market is choppy, Range Bars will filter the noise and only draw a new bar if the price actually moves.
⚠️ Important: Replay Mode
Since this indicator performs heavy calculations (simulated tick-by-tick), it includes a safety feature for Replay Mode.
To use Replay: Go to settings and set the "Force Replay Date" to a date close to your starting point. This ensures maximum fluidity and avoids TradingView limit errors.
Configuration:
Works on all timeframes but excels on seconds charts (1s, 5s) or fast minute charts (1m) for scalping.
TRADE ORBIT – Ichimoku Top/Bottom Strategy)TRADE ORBIT – Ichimoku Top/Bottom Strategy
Trade when trends start, continue, and end
✅ BUY TRADE (LONG)
Entry
Enter a BUY only if all of the following happen:
1️⃣ Green Big Dot appears below candle
→ Bottom confirmed (trend reversal)
2️⃣ Price above the Cloud
→ Market is in bullish zone
3️⃣ Tenkan above Kijun
→ Short-term trend supports direction
4️⃣ Chikou Span above price
→ Confirmation from momentum
📍 Best entry:
➡ On the candle after the big green dot if conditions remain valid
Stop Loss
Place SL below:
⭕ Bottom candle low
or
⭕ Senkou Span B (Cloud bottom)
Profit Management
Stay in the trade as long as you keep seeing small green dots
→ Trend still continuing 🟢🟢🟢
📌 Exit long when:
A big red dot appears (Top detected)
or
Price closes below the cloud
or
Tenkan crosses below Kijun
❌ SELL TRADE (SHORT)
Entry
Enter SELL only if:
1️⃣ Big Red Dot appears above candle
→ Top confirmed
2️⃣ Price below Cloud
→ Bearish market
3️⃣ Tenkan below Kijun
→ Trend aligned
4️⃣ Chikou Span below price
→ Momentum confirmed
📍 Enter on next bar if signals remain valid
Stop Loss
Place SL above:
⭕ Top candle high
or
⭕ Senkou Span B (Cloud upper band)
Exit
Stay in short while small red dots continue 🔴🔴🔴
Close when:
A big green bottom dot appears
or
Price closes above cloud
or
Tenkan crosses above Kijun
Setup Keltner Banda 3 e 5 - MMS + RSI + Distância Tabela
📊 Indicator Overview: Keltner Bands + RSI + Distance Table
This custom TradingView indicator combines three powerful tools into a single, visually intuitive setup:
Keltner Channels (Bands 3x and 5x ATR)
Relative Strength Index (RSI)
Dynamic Table Displaying RSI and Price Distance from Moving Average (MMS)
🔧 Components and Functions
1. Keltner Channels (3x and 5x ATR)
Based on a Simple Moving Average (MMS) and Average True Range (ATR).
Two sets of bands are plotted:
3x ATR Bands: Used for moderate volatility signals.
5x ATR Bands: Used for high volatility extremes.
Visual fills between bands help identify overextended price zones.
2. RSI (Relative Strength Index)
Measures momentum and potential reversal zones.
Customizable overbought (default 70) and oversold (default 30) levels.
RSI values are color-coded in the table:
Green for RSI ≤ 30 (oversold)
Blue for 30 < RSI ≤ 70 (neutral)
Red for RSI > 70 (overbought)
3. Distance Table (Price vs. MMS)
Displays the real-time distance between the current price and the MMS:
In points (absolute difference)
In percentage (relative to MMS)
Helps traders assess how far price has deviated from its mean.
📈 How to Use
Trend Reversal Signals
Look for price crossing back inside the 3x or 5x Keltner Bands.
Confirm with RSI:
RSI > 70 + price re-entering from above = potential short
RSI < 30 + price re-entering from below = potential long
Volatility Zones
Price outside the 5x band indicates extreme movement.
Use this to anticipate mean reversion or breakout continuation.
Table Insights
Monitor RSI and price distance in real time.
Use color cues to quickly assess momentum and stretch.
⚙️ Customization
Adjustable parameters for:
MMS period
ATR multipliers
RSI period and thresholds
Table position on chart
Fill colors between bands
This indicator is ideal for traders who want a clean, data-rich visual tool to track volatility, momentum, and price deviation in one place.






















