Risk Criteria Score Histogram V2📊 Risk Criteria Score Histogram
This indicator visualizes a daily risk score ranging from 0 to 3, based on three core market conditions:
Trend Risk – Activated when price is below the 20-day EMA.
Breadth Risk – Triggered when net new 52-week highs (NASDAQ + NYSE) are negative.
Momentum Risk – Flagged when the PPO histogram turns negative.
Each day, the script calculates how many of these criteria are signaling risk-off conditions. The result is plotted as a color-coded histogram:
🟩 0 – No risk signals (favorable environment)
🟨 1 – Mild caution
🟧 2 – Elevated risk
🟥 3 – All signals active (risk-off conditions)
This tool helps traders track shifts in market conditions and adjust exposure accordingly. Ideal for macro and swing trading perspectives.
Analisi trend
Cumulative Volume Delta (SB-1) 2.0
📈 Cumulative Volume Delta (CVD) — Stair-Step + Threshold Alerts
🔍 Overview
This Cumulative Volume Delta (CVD) tool visualizes aggressive buying and selling pressure in the market by plotting candlestick-style bars based on volume delta. It helps traders understand which side — buyers or sellers — is exerting more control on lower timeframes and highlights momentum shifts through stair-step patterns and delta threshold breaks. Resets to zero at EOD
Ideal for futures traders, scalpers, and intraday strategists looking for orderflow-based confirmation.
🧠 What Is CVD?
CVD (Cumulative Volume Delta) measures the difference between market buys and sells over a specific timeframe. When the delta is rising, it suggests buyers are being more aggressive. Falling delta suggests seller dominance.
This script aggregates volume delta from a lower timeframe and plots it in a higher timeframe context, allowing you to track microstructure shifts within larger candles.
📊 Features
✅ CVD Candlesticks
Each bar represents volume delta as an OHLC-style candle using:
Open: Delta at the start of the bar
High/Low: Peak delta range
Close: Final delta value at bar close
Teal candles = Net buying pressure
Red candles = Net selling pressure
✅ Threshold Levels (Key Visual Zones)
The script includes horizontal dashed lines at:
+5,000 and +10,000 → Signify strong buying pressure
-5,000 and -10,000 → Signify strong selling pressure
0 line → Neutrality line (no net pressure)
These levels act as volume-based support/resistance zones and breakout confirmation tools. For example:
A CVD cross above +5,000 shows buyers taking control
A CVD cross above +10,000 implies strong bullish momentum
A CVD cross below -5,000 or -10,000 signals intense selling pressure
📈 Stair-Step Pattern Detection
Detects two specific volume-based continuation setups:
Bullish Stair-Step: Both the high and low of the CVD candle are higher than the previous candle
Bearish Stair-Step: Both the high and low of the CVD candle are lower than the previous candle
These patterns often appear during trending moves and serve as confirmation of strength or continuation.
Visual markers:
🟢 Green triangles below bars = Bullish stair-step
🔴 Red triangles above bars = Bearish stair-step
🔔 Alert Conditions
Get real-time alerts when:
Bullish Stair-Step is detected
Bearish Stair-Step is detected
CVD crosses above +5,000
CVD crosses below -5,000
📢 Alerts only trigger on crossover, not every time CVD remains above or below. This avoids repetitive notifications.
⚙️ Inputs & Customization
Anchor Timeframe: The higher timeframe to which CVD data is applied (default: 1D)
Lower Timeframe: The timeframe used to calculate the CVD delta (default: 5 minutes)
Optional Override: Use custom timeframe toggle to force your own micro timeframe
📌 How to Use This CVD Indicator (Step-by-Step Guide)
✅ 1. Confirm Bias Using the Zero Line
The zero line (0 CVD) represents neutral pressure — neither buyers nor sellers are dominating.
Use it as your first filter:
🔼 If CVD is above 0 and rising → Buyer control
🔽 If CVD is below 0 and falling → Seller control
🧠 Tip: CVD rising while price is consolidating may signal hidden buyer interest.
✅ 2. Watch for Crosses of Key Levels: +5,000 and +10,000
These levels act as momentum thresholds:
Level Signal Type What It Means
+5,000 Buyer breakout Buyers are starting to dominate
+10,000 Strong bull bias Strong institutional or algorithmic buying flow
-5,000 Seller breakout Sellers are taking control
-10,000 Strong bear bias Heavy selling pressure is entering the market
Wait for CVD to cross above +5K or below -5K to confirm the active side.
Use these crossovers as entry triggers, breakout confirmations, or trade filters.
🔔 Alerts fire only when the level is first crossed, not every bar above/below.
✅ 3. Use Stair-Step Patterns for Continuation Confirmation
The indicator shows stair-step patterns using triangle signals:
🟢 Green triangle below bar = Bullish stair-step
Suggests a higher high and higher low in delta → buyers stepping up
🔴 Red triangle above bar = Bearish stair-step
Suggests lower highs and lower lows in delta → selling pressure building
Use stair-step signals:
To confirm a continuation of trend
As an entry or add-on signal
Especially after a threshold breakout
🧠 Example: If CVD breaks above +5K and forms bullish stairs → confirms strong trend, ideal for momentum entries.
✅ 4. Combine with Price Action or Structure
CVD works best when used with price, not in isolation. For example:
📉 Price makes a new low but CVD doesn’t → potential bullish divergence
📈 CVD surges while price lags → buyers are absorbing, breakout likely
Use it with:
VWAP
Orderblocks
Liquidity sweeps
Break of market structure/MSS/BOS
✅ 5.
Set Anchor Timeframe = Daily
Set Lower Timeframe = 5 minutes (default)
This lets you:
See intraday flow inside daily bars
Confirm whether a daily candle is being built on net buying or selling
🧠 You’re essentially seeing intra-bar aggression within a bigger time structure.
🧭 Example Trading Setup
Bullish Scenario:
CVD is rising and above 0
CVD crosses above +5,000 → alert fires
Green stair-step appears
Price breaks local resistance or liquidity sweep completes
✅ Consider long entry with structure and CVD alignment
🎯 Place stops below last stair-step or structural low
📌 Final Notes
This tool does not repaint and is designed to work in real-time across all futures, crypto, and equity instruments that support volume data. If your symbol does not provide volume, the script will notify you.
Use it in confluence with VWAP, liquidity zones, or structure breaks for high-confidence trades.
Trend State ADX-DI v6This indicator combines the classic ADX (Average Directional Index) and DI+ / DI– (Directional Indicators) with a modern, easy-to-read visual approach. It highlights trend strength and direction directly on your chart background:
✅ Bullish Trend – DI+ crosses above DI– with ADX above threshold
✅ Bearish Trend – DI– crosses above DI+ with ADX above threshold
✅ Choppiness – ADX below threshold, indicating sideways or weak trend
✅ Transition – Optional highlight for periods near the threshold, signaling a potential trend change
Plots for ADX, DI+, and DI– help you track trend momentum, while customizable background colors make it easy to spot trading conditions at a glance. Alerts included for bullish and bearish trend signals.
Perfect for day traders and swing traders looking to identify strong directional moves and avoid choppy markets.
Created by ThomasO_777, updated for Pine Script v6 by ChatGPT.
SuperSARSuperSAR is a multi-timeframe PSAR-based indicator that generates buy and sell signals when price aligns above or below Parabolic SAR values across six timeframes (1m–15m). Optional time filtering and cooldown logic help reduce noise and prevent signal spamming. Ideal for identifying strong directional trends with confirmation.
ai quant oculusAI QUANT OCULUS
Version 1.0 | Pine Script v6
Purpose & Innovation
AI QUANT OCULUS integrates four distinct technical concepts—exponential trend filtering, adaptive smoothing, momentum oscillation, and Gaussian smoothing—into a single, cohesive system that delivers clear, objective buy and sell signals along with automatically plotted stop-loss and three profit-target levels. This mash-up goes beyond a simple EMA crossover or standalone TRIX oscillator by requiring confluence across trend, adaptive moving averages, momentum direction, and smoothed price action, reducing false triggers and focusing on high‐probability turning points.
How It Works & Why Its Components Matter
Trend Filter: EMA vs. Adaptive MA
EMA (20) measures the prevailing trend with fixed sensitivity.
Adaptive MA (also EMA-based, length 10) approximates a faster-responding moving average, standing in for a KAMA-style filter.
Bullish bias requires AMA > EMA; bearish bias requires AMA < EMA. This ensures signals align with both the underlying trend and a more nimble view of recent price action.
Momentum Confirmation: TRIX
Calculates a triple-smoothed EMA of price over TRIX Length (15), then converts it to a percentage rate-of-change oscillator.
Positive TRIX reinforces bullish entries; negative TRIX reinforces bearish entries. Using TRIX helps filter whipsaws by focusing on sustained momentum shifts.
Gaussian Price Smoother
Applies two back-to-back 5-period EMAs to the price (“gaussian” smoothing) to remove short-term noise.
Price above the smoothed line confirms strength for longs; below confirms weakness for shorts. This layer avoids entries on erratic spikes.
Confluence Signals
Buy Signal (isBull) fires only when:
AMA > EMA (trend alignment)
TRIX > 0 (momentum support)
Close > Gaussian (price strength)
Sell Signal (isBear) fires under the inverse conditions.
Requiring all three conditions simultaneously sharply reduces false triggers common to single-indicator systems.
Automatic Risk & Reward Plotting
On each new buy or sell signal (edge detection via not isBull or not isBear ), the script:
Stores entryPrice at the signal bar’s close.
Draws a stop-loss line at entry minus ATR(14) × Stop Multiplier (1.5) by default.
Plots three profit-target lines at entry plus ATR × Target Multiplier (1×, 1.5×, and 2×).
All previous labels and lines are deleted on each new signal, keeping the chart uncluttered and focusing only on the current trade.
Inputs & Customization
Input Description Default
EMA Length Period for the main trend EMA 20
Adaptive MA Length Period for the faster adaptive EM A substitute 10
TRIX Length Period for the triple-smoothed momentum oscillator 15
Dominant Cycle Length (Reserved) 40
Stop Multiplier ATR multiple for stop-loss distance 1.5
Target Multiplier ATR multiple for first profit target 1.5
Show Buy/Sell Signals Toggle on-chart labels for entry signals On
How to Use
Apply to Chart: Best on 15 m–1 h timeframes for swing entries or 5 m for agile scalps.
Wait for Full Confluence:
Look for the AMA to cross above/below the EMA and verify TRIX and Gaussian conditions on the same bar.
A bright “LONG” or “SHORT” label marks your entry.
Manage the Trade:
Place your stop where the red or green SL line appears.
Scale or exit at the three yellow TP1/TP2/TP3 lines, automatically drawn by volatility.
Repeat Cleanly: Each new signal clears prior annotations, ensuring you only track the active setup.
Why This Script Stands Out
Multi-Layer Confluence: Trend, momentum, and noise-reduction must all align, addressing the weaknesses of single-indicator strategies.
Automated Trade Management: No manual plotting—stop and target lines appear seamlessly with each signal.
Transparent & Customizable: All logic is open, adjustable, and clearly documented, allowing traders to tweak lengths and multipliers to suit different instruments.
Disclaimer
No indicator guarantees profit. Always backtest AI QUANT OCULUS extensively, combine its signals with your own analysis and risk controls, and practice sound money management before trading live.
Deep in the Tape – VSA (Invite Only)This indicator is part of the “Deep in the Tape” suite and implements Volume Spread Analysis (VSA) principles to help identify potential supply and demand imbalances across price bars. The script is designed to analyze volume, price spread, bar structure, and close position relative to range to highlight common VSA patterns and their possible implications in different market contexts.
The logic includes detection for classical VSA events such as:
- Stopping Volume
- Selling Climax
- Shakeout Bars
- No Supply / No Demand
- Buying Climax
- Upthrust
- Supply Coming In
- Confirmed Test Bars
It also includes additional logic for:
- Failure signals (e.g., failed test or no supply)
- Aggressive entries before confirmation
- Clustering of high volume bars
- High/low level persistence after major VSA events
- Multi-factor entry conditions based on volume effort, spread behavior, and recent background context
Labels and shapes are plotted on the chart when corresponding conditions are met. Optional toggles allow for customizing which signals are shown.
The indicator can assist traders in recognizing key turning points, traps, or confirmations of demand/supply strength, but it does not guarantee performance and should be used with additional analysis and risk management.
This script uses no repainting techniques and evaluates all conditions in real-time.
See the Author's instructions below to get access to this package and the accompanying documentation.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading and investing carry risk, and past performance is not indicative of future results. The author is not responsible for any losses or decisions made based on the use of this script. Always do your own research and consult with a qualified financial advisor before making trading decisions.
AI QUANT OCULUSAI QUANT OCULUS
Version 1.0 | Pine Script v6
Purpose & Innovation
AI QUANT OCULUS integrates four distinct technical concepts—exponential trend filtering, adaptive smoothing, momentum oscillation, and Gaussian smoothing—into a single, cohesive system that delivers clear, objective buy and sell signals along with automatically plotted stop-loss and three profit-target levels. This mash-up goes beyond a simple EMA crossover or standalone TRIX oscillator by requiring confluence across trend, adaptive moving averages, momentum direction, and smoothed price action, reducing false triggers and focusing on high‐probability turning points.
How It Works & Why Its Components Matter
Trend Filter: EMA vs. Adaptive MA
EMA (20) measures the prevailing trend with fixed sensitivity.
Adaptive MA (also EMA-based, length 10) approximates a faster-responding moving average, standing in for a KAMA-style filter.
Bullish bias requires AMA > EMA; bearish bias requires AMA < EMA. This ensures signals align with both the underlying trend and a more nimble view of recent price action.
Momentum Confirmation: TRIX
Calculates a triple-smoothed EMA of price over TRIX Length (15), then converts it to a percentage rate-of-change oscillator.
Positive TRIX reinforces bullish entries; negative TRIX reinforces bearish entries. Using TRIX helps filter whipsaws by focusing on sustained momentum shifts.
Gaussian Price Smoother
Applies two back-to-back 5-period EMAs to the price (“gaussian” smoothing) to remove short-term noise.
Price above the smoothed line confirms strength for longs; below confirms weakness for shorts. This layer avoids entries on erratic spikes.
Confluence Signals
Buy Signal (isBull) fires only when:
AMA > EMA (trend alignment)
TRIX > 0 (momentum support)
Close > Gaussian (price strength)
Sell Signal (isBear) fires under the inverse conditions.
Requiring all three conditions simultaneously sharply reduces false triggers common to single-indicator systems.
Automatic Risk & Reward Plotting
On each new buy or sell signal (edge detection via not isBull or not isBear ), the script:
Stores entryPrice at the signal bar’s close.
Draws a stop-loss line at entry minus ATR(14) × Stop Multiplier (1.5) by default.
Plots three profit-target lines at entry plus ATR × Target Multiplier (1×, 1.5×, and 2×).
All previous labels and lines are deleted on each new signal, keeping the chart uncluttered and focusing only on the current trade.
Inputs & Customization
Input Description Default
EMA Length Period for the main trend EMA 20
Adaptive MA Length Period for the faster adaptive EM A substitute 10
TRIX Length Period for the triple-smoothed momentum oscillator 15
Dominant Cycle Length (Reserved) 40
Stop Multiplier ATR multiple for stop-loss distance 1.5
Target Multiplier ATR multiple for first profit target 1.5
Show Buy/Sell Signals Toggle on-chart labels for entry signals On
How to Use
Apply to Chart: Best on 15 m–1 h timeframes for swing entries or 5 m for agile scalps.
Wait for Full Confluence:
Look for the AMA to cross above/below the EMA and verify TRIX and Gaussian conditions on the same bar.
A bright “LONG” or “SHORT” label marks your entry.
Manage the Trade:
Place your stop where the red or green SL line appears.
Scale or exit at the three yellow TP1/TP2/TP3 lines, automatically drawn by volatility.
Repeat Cleanly: Each new signal clears prior annotations, ensuring you only track the active setup.
Why This Script Stands Out
Multi-Layer Confluence: Trend, momentum, and noise-reduction must all align, addressing the weaknesses of single-indicator strategies.
Automated Trade Management: No manual plotting—stop and target lines appear seamlessly with each signal.
Transparent & Customizable: All logic is open, adjustable, and clearly documented, allowing traders to tweak lengths and multipliers to suit different instruments.
Disclaimer
No indicator guarantees profit. Always backtest AI QUANT OCULUS extensively, combine its signals with your own analysis and risk controls, and practice sound money management before trading live.
Liquidity Hunter Pro iDea TradeAutomatically detects and visualizes key liquidity levels across multiple timeframes.
Features include:
Multi-timeframe high/low liquidity mapping
Automatic and manual timeframe options
Real-time “sweep” and “touch” detection
Customizable colors and labels
Alerts for liquidity touches and sweeps
Option to display mitigated (swept) liquidity as dashed lines
How to use:
Enable the desired timeframes and alerts, adjust colors or labels to fit your style, and monitor the chart for liquidity sweeps and reactions. Use as a technical tool to spot potential support/resistance or sweep zones.
Note:
This script does not provide trading signals or financial advice. For technical analysis and educational purposes only. Always manage your risk.
Protected script. Source code is hidden but free for all TradingView users.
Kaizen ColoringIntroduction To Kaizen Coloring
This tool was made for Kaizen, this indicator is to be utilized with a trend trading system.
Most trend systems are lagging, longing a "bullish trend" for most traders will lead to longing the top of ranges, or longing erroneously with poor risk management.
Below are explanations to the settings and are straight forward to understand.
Settings Overview
Existing Settings
Candle Settings
As you can see there a 2 types of candle display logic, one works on the users chart, this will be the default setting as most users will not go into tradingview and tinker with chart settings even if you ask them to.
The benefit of this is that users will have an easy set up process
Below I have included the display of both
Body Coloring
Candle Creation Coloring
Pros of Body Coloring: Using the wicks and borders of the original chart can let users more easily identify if a candle was a positive (close > open) candle or negative (close < open) this may help inform their decision.
Pros of Candle Creation: Trend logic is easier to spot, especially when zooming out as a singular color with no interference of wick/border, less noise, focus on the indicator logic.
Trend Coloring Types
Simple Coloring
Advanced Coloring
The coloring options have fundamentally different logic,
The Simple Coloring is best for capturing trapped momentum (will be explained in how to trade), as its a lot faster to react to trend dynamics,
Advanced is best for the band, as the band primarily serves as a structure, the coloring showing a greater range in the momentum e.g. strong bullish, bullish and bullish exhaustion and vice versa allows the band coloring to act as a filter.
Structure shift, + less likely to be a fakeout and usable for entry.
If the band changed color rapidly it can be a distraction I prefer having the band show the ranges of momentum, and the candle coloring be simple as its pure naked price action shouldn't be overly filtered. Price action is still the most important.
Band Settings
The band has 2 main settings, coloring, and responsiveness. The coloring has 3 modes, Simple, Advanced and Band.
Band coloring is the simplest, its the best for pure scanning multiple coins quickly but I do not recommend it for trading.
Slow Responsiveness
The slow system, works best for a detection into a structure shift, once flipped it should be used as an alert that the direction has changed, a retest in either the band, OR price action is a trading opportunity (coloring will come into this shortly)
Fast Responsiveness
The fast band system, as you can see on the left side is useful for structure shift. However, towards the middle, you can see how it can give more false positives, this is fine, in my opinion using this should be with active trading, being able to scale in and out quickly based on reaction to the band flips is imperative to the trade.
Alerts
Instructions included on image, we can discuss adding one for the main trading use case if you will find it helpful, after testing we can discuss if you want to add some extra alerts.
Trading Logic
This indicator can be used for a hands off approach for trading.
A slow band responsiveness easier to notice potential change in environment. Fast responsiveness is better when managed actively for quick trades.
For the candles, Simple Coloring, is our preference at all times, price action is the best representation of momentum when trading, all indicators are built on price and can only react to price, overly smoothing or slowing trend detection is counter productive to behavior of price action.
Following the former day pump, looking for an entry to long, we noticed the structure shift in the Band portion of this indicator (left side circled in blue), as a result it was inadequate to long.
Looking for shorts is now most optimal, so avoid taking longs and wait for a new shift.
The simple coloring here works perfectly on the candles as its highlighting there was bullish momentum, as you can see the bullish momentum was going into the band, but failed to capture continuation.
The issue with all trend indicators is the lagging nature of any indicator, as a result most new traders see "green = long" this is bad mindset, it reduces your entry from being an ideal entry to more of a fomo based chase. Putting you offside to any correction, additionally no indicator can determine if momentum will continue, so you need to use price action accordingly.
Keeping that in mind, if you study trading liquidity and delta, you can often see traders joining a trend late, in this sense, we look to see the band shift as bearish structure, and the candle coloring highlighting late longers, and failed momentum. These are our trapped traders,
Using this to short, or in my instance, avoid taking any longs, is most optimal as your short entry position is clearly defined, and invalidation is simple - a band shift or price action reclaim of the level that was "trapped momentum/bullish candles".
This provides you with the most optimal usage on how to use Kaizen coloring, or most trend tools if well made should follow this logic (often trend tools fail to do both coloring for momentum, or a band for structure/entry, Kaizen Coloring provides both). Longing GREEN or Shorting Red is an easy way to lose.
Long the trapped bearish Momentum, Short trapped bullish momentum.
On the right hand side we can see the similar play out but on the opposite side, there was in fact a deviation of the band, but following price action principles, you wouldn't set your stops at support
You should scale your limits into support and increasingly so, your invalidation is loss of support, your entry would be closer to the invalidation and your momentum trap, (red tap into support), then the band reclaim is your long thesis.
Band Coloring is set to advanced, the benefit is the ease of seeing the shift from red to green on reclaims, having the band be smooth coloring will strengthen the understanding of the structure shift.
To summarise preferences:
Simple Coloring candles, easy momentum detection,
Slow band when taking trades intermittently
Advanced Coloring band for quick confirmation of structure shifts
Mean Reversion & Momentum Hybrid | D_QUANT 📌 Mean Reversion & Momentum Hybrid | D_QUANT
📖 Description:
This indicator combines mean reversion logic, volatility filtering, and percentile-based momentum to deliver clear, context-aware buy/sell signals designed for trend-following and contrarian setups.
At its core, it merges:
A Bollinger Band % Positioning Model (BB%)
A 75th/25th Percentile Momentum System
A Volatility-Adjusted Trend Filter using RMA + ATR
All tied together with a dynamic gradient-style oscillator that visualizes signal strength and persistence over time — making it easy to track high-conviction setups.
Signals only trigger when all three core components align, filtering out noise and emphasizing high-probability turning points or trend continuations.
⚙️ Methodology Overview:
Bollinger Bands % (BB%):
Price is measured as a percentage between upper and lower Bollinger Bands (based on OHLC4). Entries are only considered when price exceeds custom BB% thresholds — emphasizing market extremes.
Volatility-Based Trend Filter (RMA + ATR):
A smoothed RMA baseline is paired with ATR to define trend bias. This ensures signals only occur when price deviates meaningfully beyond recent volatility.
Percentile Momentum Model (75th/25th Rank):
Price is compared against its rolling 75th and 25th percentile. If price breaks these statistical boundaries (adjusted by ATR), it triggers a directional momentum condition.
Signal Consensus Engine:
All three layers must agree — BB% condition, trend filter, and percentile momentum — before a buy or sell signal is plotted.
Gradient Oscillator Visualization:
Signals appear as a fading oscillator line with a gradient-filled area beneath it. The color intensity represents how “fresh” or “strong” the signal is, fading over time if not reconfirmed, offering both clarity and signal aging at a glance.
🔧 User Inputs:
🧠 Core Settings:
Source: Select the price input (default: close)
Bollinger Bands Length: Period for BB basis and deviation
Bollinger Bands Multiplier: Width of the bands
Minimum BB Width (% of Price): Prevents signals during low-volatility chop
📊 BB% Thresholds:
BB% Long Threshold (L): Minimum %B to consider a long
BB% Short Threshold (S): Maximum %B to consider a short
🔍 Trend Filter Parameters:
RMA Length: Period for the smoothed trend baseline
ATR Length: Lookback for ATR in trend deviation filter
⚡️ Momentum Parameters:
Momentum Length: Period for percentile momentum calculation
Mult_75 / Mult_25: ATR-adjusted thresholds for breakout above/below percentile levels
🎨 Visualization:
Bar Coloring: Highlights candles during active signals
Background Coloring: Optional background shading for signals
Show Oscillator Plot: Toggle the gradient-style oscillator
🧪 Use Case:
This indicator works well across all assets for trend identification. It is particularly effective when used on higher timeframes (e.g. 12H, 1D,2D) to capture mean reversion bounces or confirm breakouts backed by percentile momentum and volatility expansion.
⚠️ Notes:
This is not financial advice. Use in combination with proper risk management and confluence from other tools.
Historical Year OverlayThis script allows you to simply source any historical calendar year and overlay it over any other year (usually a historical year overlaying a year in the future). It was made using an LLM for coding help and logic.
It is great for working out potential pivots and it also maps the previous profit/loss from the source year over the plot year so that we can see the connection to price levels throughout the plot year and also with the yearly close (we get a horizontal line for the close).
It uses the year open as a price reference to plot the P&L over the plot year (if use plot year option is selected).
if the year has not started yet you can use the "manual opening price" OR it will auto set to the current price (great for "replay mode", it will catch the actual opening price once it happens).
The settings are self explanatory. Choose a source year and plot year.
Choose a multiplier if you'd like (it simply multiplies the plot year P&L by that number; ie: 1 means the same as it was, 0.5 means half of what is was, 2 means 2x the source P&L)
The resolution is max default 50 line segments but you can simplify if you'd like.
I've released the code open-source so you can see what it is doing.
Please update it with all the enhancements you can think of.
Please let me know if you do this as I will be very interested!
Rsi bar, divergences, tether line, ema 20,50 -Ema 20,50
-Tether Line dominance
-Buy/sell pressure
-Rsi last candle
-byu sell signal
-rsi divergence
-macd divergence
-Coloured candles 25,30 rsi and 70 rsi
ES Gap FillAutomatically plots:
The gap fill level (previous day RTH close) - RED
The 1/2 gap (halfway between current RTH open and prior RTH close) - YELLOW
10 & 20 points to either side of the gap level - GREEN
UniStratV3 | QuantEdgeBUniversal Strategy V3 | QuantEdgeB
🔍 What is the Universal Strategy?
A dynamic, multi-engine trading framework engineered to adapt across asset classes, timeframes, and market conditions. It fuses multiple complementary signal engines into a single, unified decision model—automatically balancing speed, smoothness, momentum scoring, and breakout precision.
⚙️ Core Characteristics
• Multi-Engine Logic: Combines fast-reacting trend detection, adaptive smoothing, statistical momentum scoring, and volatility-normalized breakout confirmation.
• Modular Architecture: Each engine operates independently yet contributes to a unified signal index—allowing plug-and-play customization or replacement of individual components.
• Adaptive Thresholds: Dynamically adjusts trigger levels based on market volatility, percentile bands, or standard-deviation filters, ensuring robust performance in both quiet and turbulent conditions.
• Unified Signal Aggregation: Individual engine outputs (bullish/bearish) are averaged into a single trend, minimizing noise and reinforcing conviction.
🛠️ Construction & Structure
1. Signal Engines:
o Midline Cross Engines (RSI, Z-Score, ROC): Provide early directional cues by crossing their natural mid‐points.
o StDev Filters: Apply volatility bands around each raw engine to confirm only statistically significant moves.
o Normalized MA Engines: Transform simple, EMA, and ALMA moving averages into 0–1 signals via min/max normalization, capturing cross-asset momentum.
o Slope Engines: Combine base MA bands with normalized thresholds to detect breakouts validated by momentum direction.
o Wave/MACD Engines: Leverage classic MACD and a volume-adjusted wave oscillator to sense cyclical momentum extremes.
2. Aggregation Layers:
o Raw Score Layer: A straightforward average of +1/–1 from each engine subgroup.
o Filtered Score Layer: Applies standard-deviation filters to each engine’s raw value before re-scoring, reducing whipsaws.
o Composite Layer: Merges raw, filtered, normalized MA, slope, and wave scores into a final Trend Probability Index (TPI), which drives the long/short decision.
3. Visualization:
o Candles color-coded by final TPI sign.
o Mid- and threshold-lines (±0.34) denote trigger levels on the composite oscillator.
o Optional real-time tables display engine contributions, overall TPI, and backtest equity.
Each sub-input was selected and “meshed” to ensure no single engine dominates—fast modules flag initial trend, smoother modules confirm, filters refine, and normalization harmonizes scales so the final signal emerges as a balanced, multi-dimensional conviction score.
💡 Key Benefits
• Balance of Reactivity & Reliability: Fast-acting modules catch early trend shifts, while smoother, statistical layers confirm and filter false moves.
• Versatility Across Markets: Designed to work equally well in trending, range-bound, or high-volatility environments, and across equities, FX, commodities, and crypto.
• Customizable & Extensible: Users can tailor the number and type of engines, threshold methodologies, and signal-aggregation rules to match their style and risk tolerance.
• Transparency & Confidence: A real-time signal dashboard shows each engine’s contribution and the overall strategy, offering clear insight into what drives the strategy’s decisions.
📊 Generic Use Cases
1. Trend Capture
Identify and ride sustained directional moves with early-warning and confirmation engines.
2. Breakout Trading
Detect and validate volatility expansions while filtering out whipsaws.
3. Momentum Assessment
Quantify the strength behind price moves to distinguish fleeting spikes from genuine trends.
4. Cross-Asset Rotation
Apply the same framework to multiple symbols—allocating capital to the strongest opportunities.
📌 In Summary
The Universal Strategy V3 | QuantEdgeB is a framework, not a single indicator. By orchestrating diverse, forward-tested methodologies into one cohesive engine—and transparently combining their signals—it delivers adaptive precision, signal clarity, and robust performance—empowering traders to navigate any market environment with data-driven confidence.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
On-Chain Signals [LuxAlgo]The On-Chain Signals indicator uses fundamental blockchain metrics to provide traders with an objective technical view of their favorite cryptocurrencies.
It uses IntoTheBlock datasets integrated within TradingView to generate four key signals: Net Network Growth, In the Money, Concentration, and Large Transactions.
Together, these four signals provide traders with an overall directional bias of the market. All of the data can be visualized as a gauge, table, historical plot, or average.
🔶 USAGE
The main goal of this tool is to provide an overall directional bias based on four blockchain signals, each with three possible biases: bearish, neutral, or bullish. The thresholds for each signal bias can be adjusted on the settings panel.
These signals are based on IntoTheBlock's On-Chain Signals.
Net network growth: Change in the total number of addresses over the last seven periods; i.e., how many new addresses are being created.
In the Money: Change in the seven-period moving average of the total supply in the money. This shows how many addresses are profitable.
Concentration: Change in the aggregate addresses of whales and investors from the previous period. These are addresses holding at least 0.1% of the supply. This shows how many addresses are in the hands of a few.
Large Transactions: Changes in the number of transactions over $100,000. This metric tracks convergence or divergence from the 21- and 30-day EMAs and indicates the momentum of large transactions.
All of these signals together form the blockchain's overall directional bias.
Bearish: The number of bearish individual signals is greater than the number of bullish individual signals.
Neutral: The number of bearish individual signals is equal to the number of bullish individual signals.
Bullish: The number of bullish individual signals is greater than the number of bearish individual signals.
If the overall directional bias is bullish, we can expect the price of the observed cryptocurrency to increase. If the bias is bearish, we can expect the price to decrease. If the signal is neutral, the price may be more likely to stay the same.
Traders should be aware of two things. First, the signals provide optimal results when the chart is set to the daily timeframe. Second, the tool uses IntoTheBlock data, which is available on TradingView. Therefore, some cryptocurrencies may not be available.
🔹 Display Mode
Traders have three different display modes at their disposal. These modes can be easily selected from the settings panel. The gauge is set by default.
🔹 Gauge
The gauge will appear in the center of the visible space. Traders can adjust its size using the Scale parameter in the Settings panel. They can also give it a curved effect.
The number of bars displayed directly affects the gauge's resolution: More bars result in better resolution.
The chart above shows the effect that different scale configurations have on the gauge.
🔹 Historical Data
The chart above shows the historical data for each of the four signals.
Traders can use this mode to adjust the thresholds for each signal on the settings panel to fit the behavior of each cryptocurrency. They can also analyze how each metric impacts price behavior over time.
🔹 Average
This display mode provides an easy way to see the overall bias of past prices in order to analyze price behavior in relation to the underlying blockchain's directional bias.
The average is calculated by taking the values of the overall bias as -1 for bearish, 0 for neutral, and +1 for bullish, and then applying a triangular moving average over 20 periods by default. Simple and exponential moving averages are available, and traders can select the period length from the settings panel.
🔶 DETAILS
The four signals are based on IntoTheBlock's On-Chain Signals. We gather the data, manipulate it, and build the signals depending on each threshold.
Net network growth
float netNetworkGrowthData = customData('_TOTALADDRESSES')
float netNetworkGrowth = 100*(netNetworkGrowthData /netNetworkGrowthData - 1)
In the Money
float inTheMoneyData = customData('_INOUTMONEYIN')
float averageBalance = customData('_AVGBALANCE')
float inTheMoneyBalance = inTheMoneyData*averageBalance
float sma = ta.sma(inTheMoneyBalance,7)
float inTheMoney = ta.roc(sma,1)
Concentration
float whalesData = customData('_WHALESPERCENTAGE')
float inverstorsData = customData('_INVESTORSPERCENTAGE')
float bigHands = whalesData+inverstorsData
float concentration = ta.change(bigHands )*100
Large Transactions
float largeTransacionsData = customData('_LARGETXCOUNT')
float largeTX21 = ta.ema(largeTransacionsData,21)
float largeTX30 = ta.ema(largeTransacionsData,30)
float largeTransacions = ((largeTX21 - largeTX30)/largeTX30)*100
🔶 SETTINGS
Display mode: Select between gauge, historical data and average.
Average: Select a smoothing method and length period.
🔹 Thresholds
Net Network Growth : Bullish and bearish thresholds for this signal.
In The Money : Bullish and bearish thresholds for this signal.
Concentration : Bullish and bearish thresholds for this signal.
Transactions : Bullish and bearish thresholds for this signal.
🔹 Dashboard
Dashboard : Enable/disable dashboard display
Position : Select dashboard location
Size : Select dashboard size
🔹 Gauge
Scale : Select the size of the gauge
Curved : Enable/disable curved mode
Select Gauge colors for bearish, neutral and bullish bias
🔹 Style
Net Network Growth : Enable/disable historical plot and choose color
In The Money : Enable/disable historical plot and choose color
Concentration : Enable/disable historical plot and choose color
Large Transacions : Enable/disable historical plot and choose color
Crypto Compass | QuantEdgeBIntroducing Crypto Compass | QuantEdgeB
Overview
Crypto Compass | QuantEdgeB is a multi-asset market regime indicator that decodes the collective momentum and sentiment of the cryptocurrency space. By computing correlation-adjusted valuation across a basket of major tokens and blending them with the chart’s own momentum pulse, it delivers a real-time “compass” of risk-on/off regimes. Plotted as dual EMAs and color-coded candles, and accompanied by a comprehensive dashboard table, Crypto Compass guides traders through broad market cycles instead of isolated price swings.
Key Features
• Correlation-Adjusted Valuation Aggregation
Computes individual valuation for the top 30 Market Cap tokens plus total-market indices; weights each by its correlation to Bitcoin, then averages.
• Large-Cap-Only Mode
Optionally restricts the basket to the top 10 by market cap for a streamlined “blue-chip” sentiment readout.
• Composite Momentum Blend
Mixes the basket average with the chart’s own valuation to capture both cross-asset and local momentum.
• Dual EMA Overlay & Candle Coloring
Plots 12- and 21-period EMAs colored by the composite valuation gradient; candles are likewise color-filled to reflect regime strength.
• Interactive Dashboard Table
Live “Crypto Compass Dashboard” shows, for each asset:
o Current value & prior bar value
o Rate of Change (direction arrow)
o Duration since last EMA crossover
o Current trend state (“Bullish” / “Bearish”)
• Regime Labels & Risk-On/Off Signal
Translates the composite valuation into four regimes—Contraction, Weak, Recovery, Strong—with a clear risk-on/off indicator banner.
How It Works
1. Data Fetch & Valuation Computation
o Retrieves price and a simple TPI (12 vs 21 EMA cross) for each symbol via request.security.
o Calculates a rolling standard deviation over a lookback (length) for each asset and the chart.
2. Correlation Weighting
o Measures each asset’s correlation to Bitcoin
o Multiplies each asset’s value by its correlation coefficient to emphasize high-beta relationships.
3. Basket Averaging
o Averages the top-N weighted value (10 if “Large Cap Only” is true, else all )
o Blends the final average with the chart’s own valuation
4. Visual & Table Overlays
o EMAs (12, 21) and candles are colored via a gradient tied to zsumad thresholds.
o A table grid at the bottom-right displays per-asset metrics and computes duration since TPI crossovers to flag trend longevity.
5. Regime Mapping
≤ –1.5 ⇒ Contraction (Risk Off)
–1.5 to 0 ⇒ Weak (Risk Off)
0 to 1.5 ⇒ Recovery (Risk On)
1.5 ⇒ Strong (Risk On)
How to Use / Who Should Use It
• Crypto Portfolio Managers seeking a holistic market-wide directional bias before allocating capital.
• Swing & Position Traders looking to confirm if cross-asset strength aligns with their primary coin.
• Systematic Strategy Developers integrating regime filters into algorithmic models.
• Risk-Conscious Allocators wanting an early warning on risk-off contractions vs. risk-on expansions.
Default Settings
• Plot EMA: On
• Value Lookback Length: 90
• BTC Correlation Length: 195
• Large Cap Only: True
Conclusion
Crypto Compass distills complex cross-asset dynamics into a single, actionable gauge. By combining correlation-weighted valuation, blended momentum, and dynamic regime mapping—visualized through color-coded EMAs, candles, and a rich dashboard—it empowers traders to navigate the broader crypto market cycle with clarity and confidence.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
STATEMAP | QuantEdgeBIntroducing STATEMAP by QuantEdgeB
🔍 Overview
STATEMAP | QuantEdgeB is a holistic Trend & Valuation dashboard for 16 key crypto and index assets. It distills each asset’s momentum regime and valuation state into two live averages—trend average and valuation average—and presents them via color-coded candles, dynamic plots, and a comprehensive bottom-right table. Switch effortlessly between Trend and Valuation views to spot regime shifts across the market.
✨ Key Features
• 🧭 Trend vs. Valuation Toggle
Flip between viewing the overall market’s trend average or its valuation average with a single input.
• 📊 Trend Average
Aggregates each asset’s directional bias (bullish vs. bearish) into one composite gauge that flags risk-on vs. risk-off regimes.
• 💎 Valuation Average
Blends each asset’s statistical valuation score to highlight extreme under-/over-valued conditions.
• 🎨 Color-Coded Visualization
Candles turn blue for bullish, red for bearish, and gray for neutral; fills and horizontal bands reinforce regime thresholds.
• 🗺️ Live Asset Matrix
A 16×8 table shows for each symbol:
• Current Trend (Bullish/Bearish)
• Score & Prior Score with direction arrows (⬆️/⬇️/🔄)
• RoC (momentum change)
• Valuation State label (e.g. “Strong UnderValued”)
• Valuation value & prior value with change indicator
• 🚦 Market Stage Banner
A top-row line combines both averages into a concise “Market Stage” message (e.g. “Trend ⟹ Bullish Value ⟹ Sli. OverValued”).
⚙️ How It Works
• Universal Trend Assessment
Uses a library of trend-following logic to classify each asset as bullish or bearish, then averages those signals into the trend average.
• Adaptive Valuation Mapping
Evaluates each asset’s statistical valuation band, maps it into intuitive labels (under-/fair-/over-valued), and averages into the valuation average.
• Regime Thresholds
• Trend average above +0.1 ⇒ risk-on (bullish); below –0.1 ⇒ risk-off (bearish); otherwise neutral.
• Valuation average buckets assign six states from “Strong UnderValued” to “Strong OverValued.”
• Dynamic Visualization
Color-coded candlesticks and filled plot areas highlight when the market crosses key levels, making regime changes immediately apparent.
🎯 Who Should Use It
• Systematic Traders looking for a unified regime filter across multiple assets
• Portfolio Managers wanting a pulse on market momentum vs. valuation before reallocations
• Swing & Position Traders confirming cross-asset alignment or spotting divergences
• Risk Managers monitoring broad contractions (trend bearish) vs. expansions (trend bullish) alongside valuation extremes
🧬 Default Settings
• View Mode: Trend
• Bar color: Yes
• Assets Covered: TOTAL market cap, TOTAL OTHERS, BTC, ETH, SOL, FET, RNDR, INJ, VRA, ORDI, PAAL, ONDO, TIA, AKT, PEPE, DOGE
📌 Conclusion
STATEMAP | QuantEdgeB delivers a clear, emoji-tagged map of where the crypto market stands in both momentum and valuation space. With an easy toggle and a rich dashboard, it empowers you to make regime-aware trading and allocation decisions at a glance.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Trend Zones & ATR Targets[CongTrader]TrendZones ATR is a dynamic trend and support/resistance indicator that combines Hull Moving Average (HMA) smoothing, mid-price analysis, and ATR-based targets to identify precise trading zones and risk levels.
Key Features:
Adaptive Trend Zones — Calculates upper, midline (CoG), and lower borders from smoothed mid-price, adapting to market volatility.
Trend Classification — Detects uptrend, downtrend, or sideways conditions using slope-based logic.
Safe Level & Logical Stop — Automatically sets risk levels according to price zone classification.
Flexible TP Methods — Choose between %-based or ATR-based take-profit targets.
Optional ATR Support Zone — Adds an ATR-based support level for stronger confluence.
Risk & Zone Width Table — Displays real-time risk and channel width data on the chart.
How to Use:
Apply the indicator to any symbol and timeframe.
Identify market zones with color-coded fills.
Align trades with the detected trend direction.
Use Safe Level or Logical Stop for stop-loss placement.
Set TP targets using either % or ATR multiplier.
Combine with your own trade confirmation method for optimal results.
Acknowledgment:
Thanks to the TradingView community for inspiration and feedback. This script is original work by CongTrader.
Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Trading carries risk and may not be suitable for all investors. Do your own research before making any trading decisions. The author is not responsible for any losses resulting from the use of this script.
#trendzones #atr #supportresistance #tradingview #forex #crypto #stocks #daytrading #swingtrading #riskmanagement #chartanalysis .
TSD Quantum [Moeinudin Montazerfaraj] 🔸 "TSD" stands for **Trend 1-2-3 and Supply & Demand**, which is the foundation of the trading style this indicator is built upon.
🔹 TSD Quantum is a specialized indicator designed exclusively for day traders who trade EURUSD, XAUUSD (Gold), and DAX40 on the 1H, 15M, and 5M timeframes using a Supply & Demand-based strategy.
This indicator is **not suitable for other symbols** and has been tailored specifically for these three assets to ensure high precision and effectiveness.
---
### 🔍 Key Features:
✅ **Trading Checklist Panel**
A built-in checklist helps you track every rule in your trading plan. If even one condition is left unchecked, the system highlights it in red and marks the trade as "Not Allowed." This feature enhances trading discipline.
✅ **Spread & ATR Control Panel**
Supports both auto-calculated and fixed values for spread and ATR. This is especially helpful when placing stop-losses quickly and accurately.
✅ **Inside & Outside Candle Detection**
A dedicated panel highlights whether the last candle is inside or outside. Hovering your mouse over the chart elements automatically colorizes the candles:
🔵 Blue = Outside candle
🔴 Red = Inside candle
Also displays the high/low of the latest outside bar.
✅ **Weekly Trade Stats Panel**
Custom-built for the mentioned three assets. You can enter your trades using either fixed risk or floating risk models.
✅ **Performance Metrics**
Helps you build and adjust a floating risk model—so you don’t have to enter every trade with the same lot size. Improves risk management across multiple trades.
✅ **Base Candles Display**
Grey and white base candles are marked based on supply and demand zones.
✅ **EOT Candles**
Candles with a green dot underneath indicate valid EOT opportunities for potential move-outs.
✅ **RC (Rejection Candle) Detection**
RC candles are automatically detected to alert you of potential traps or weaknesses during Supply/Demand formations.
---
### ⚠️ Disclaimer
This indicator does **not** issue buy/sell signals and **cannot guarantee profit or prevent loss**. It is a **tool for discretionary trading**, not an automated expert advisor.
All decisions must be made by the trader based on their own strategy and risk tolerance.
This is the **latest tested version** of TSD Quantum. All features have been validated and function as intended. Future updates will be provided if needed.
---
🙏 Thank you for reviewing this script. We hope it becomes a valuable addition to your day trading toolkit!
Cumulative Gain-Loss Ratio This Pine Script indicator is called "Cumulative Gain-Loss Ratio" - a technical analysis tool. Here's what it does for you:
How the Indicator Works:
1. Calculates percentage change for each bar:
It finds how much the closing price changed compared to the previous candle in percentage terms
2. Separates gains and losses:
Positive changes = Gains
Negative changes = Losses (converts to positive values)
3. Takes cumulative totals:
Sums up all gains from the beginning
Sums up all losses from the beginning
4. Calculates the ratio:
Cumulative Gains ÷ Cumulative Losses
What It Tells You:
Ratio > 1: Your total gains exceed losses (good performance)
Ratio < 1: Your total losses exceed gains (poor performance)
Ratio = 1: Gains and losses are equal (break-even)
Practical Usage:
Evaluating long-term performance of a stock or cryptocurrency
Measuring trend strength
Sustained movement above 1.0 line = strong uptrend
Sustained movement below 1.0 line = weak performance
This indicator helps you understand the overall health and momentum strength of an asset by showing the cumulative balance between gains and losses over time.
HARSI Cross Only by G.I.N.e TradingHARSI + SMA Indicator – Description
Indicator Name: HARSI + SMA
Type: Trend/momentum crossover
Displays: Column bars only when a crossover occurs
🧠 What is HARSI?
HARSI stands for Heikin-Ashi RSI.
It is a smoothed version of the traditional Relative Strength Index (RSI), enhanced by applying Heikin-Ashi-style smoothing to both:
The price (using smoothed open/close values), and
The RSI itself (via additional EMA smoothing).
This helps reduce noise, smooth out choppy movements, and highlight more reliable trend reversals.
⚙️ How the indicator works
This version of the indicator:
Calculates a smoothed HARSI value
Calculates a Simple Moving Average (SMA) of the HARSI (period configurable, typically 3 or 5)
Plots a column only when a crossover occurs:
Green column (+1): HARSI crosses above its SMA → potential long signal
Red column (-1): HARSI crosses below its SMA → potential short signal
Nothing is displayed between signals — making this a clean and non-distracting visual trigger tool.
ATR-Scaled Deviation OscillatorATR-DevOsc is a custom momentum-and-volatility adaptive oscillator that scales N-bar price momentum by its rolling deviation and then reacts dynamically to sudden ATR spikes. By shrinking the deviation window when true volatility surges, it amplifies extreme moves—making medium-term trend shifts and deep drawdowns far more likely to breach your predefined thresholds.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
Year Dividers with LabelsDraws year start markers due visually show start of a year. Useful when looking at year seasonality and related factors