Candle 2 Closure [LuxAlgo]The Candle 2 Closure tool detects a specific reversal pattern on the chart spanning four bars. The first bar trades into a key price level. The second bar trades outside the first bar's range, but closes inside, indicating a reversal. The third bar closes outside the second bar's range, in the direction of the reversal, creating a price expansion. The fourth bar is a continuation of prices in that same direction.
This tool features key levels, equilibrium zones, and real-time alarms upon confirmation of the second and third candles of the pattern.
This specific part of the more complete Fractal model by TTrades was requested by a lot of you. We are happy to bring it to you and wish you a merry Christmas!
🔶 USAGE
This pattern is a TTrades concept: a reversal setup that is very easy to understand. It occurs when the current bar trades outside of the previous bar's range, but closes inside it. In other words, traders try to push prices outside of the previous bar's range, but fail. This is considered a reversal, meaning that traders encountered opposing forces that overwhelmed them. Thus, the expectation is that prices will trade in the new direction, changing the market bias from bullish to bearish, or vice versa.
Let's look at the example in the chart, where the four candles of this setup are marked. Note that we have selected a perfect setup, where all conditions are met.
Candle 1: This bar traded into a key price area at the top of the range, spanning several months.
Candle 2: This bar traded outside the range of Candle 1, but failed to close outside. This is the reversal.
Candle 3: The wick of this bar formed at or below the equilibrium zone of Candle 2, and it closed outside the range of Candle 2. This is the expansion.
Candle 4: At this point, the setup is complete, and the expectation for this candle is that it will trade in the same direction. The top of the candle is at or below the equilibrium zone of Candle 3. This is the continuation.
In a strong setup, the top or bottom of the next bar will form inside the equilibrium zone defined by the highlighted areas on candles 2 and 3.
This is a perfect bearish setup, featuring all elements. Not all setups will be like this, but when this setup occurs, it is important for traders to be aware of it.
The tool is highly customizable from the settings panel and features real-time alerts at candle 2 and 3 confirmations.
Now, let's take a broader view of the same chart. We have disabled the display of candle 2 and filtered the setups with a length of 50.
As we can see, most of the last 17 setups found on the EUR/USD daily chart lead to multi-day or multi-month price movements.
🔹 Filtering Reversals
The tool features a reversals filter that is disabled by default. This filter allows us to filter out minor reversals and display only those that are important.
Traders can adjust the length parameter to display reversals only at the top or bottom of the last N specified bars. We can see some examples in the chart.
🔹 Wick Threshold
From the settings panel, traders can fine-tune the equilibrium zone for candle 2.
If the wick exceeds the threshold expressed as a percentage of the total bar range, the equilibrium zone will be calculated based only on the wick. In all other cases, the full bar range will be used.
🔶 SETTINGS
Candle 2 (Reversal): Enable or disable Candle 2 reversals.
Candle 3 (Expansion): Enable or disable Candle 3 expansions.
Reversals Filter: Filter reversals as the highest or lowest of the last N bars.
Wick Threshold %: Filter wicks as percentage of total bar range.
🔹 Style
Bullish Color: Select bullish color.
Bearish Color: Select bearish color.
Transparency: Select the transparency level. 0 is solid and 100 is fully transparent.
Levels: Enable or disable the horizontal levels.
Candle 2 Zone: Enable or disable the Candle 2 equilibrium zones.
Candle 3 Zone: Enable or disable the Candle 3 equilibrium zones.
🔹 Alerts
Candle 2 Alerts: Enable or disable Candle 2 alerts.
Candle 3 Alerts: Enable or disable Candle 3 alerts.
Trend Analysis
Hybrid Smart Money Concepts [MarkitTick]💡This indicator provides a comprehensive technical analysis system that combines Market Structure concepts (Smart Money Concepts) with advanced Gap Analysis and a statistical Stress Model. It is designed to help traders identify trend direction, structural pivot points, potential reversal zones (Order Blocks), significant price gaps, and moments of market exhaustion.
Unlike standard ZigZag or Fractal indicators, this script integrates volume, trend maturity, and statistical volatility (Z-Score) to contextually classify price action. By overlaying these elements with a robust Market Structure engine—which identifies Change of Character (CHoCH) and Order Blocks—the tool provides a confluent view of price action.
It automates the detection of institutional footprints, allowing traders to see the structural trend, momentum drivers, and potential exhaustion points simultaneously.
● METHODOLOGY
The script operates on three distinct but complementary logic engines:
• Gap Analysis Engine
This module detects gaps between the previous high/low and the current open. It classifies them into three specific types based on volume and structural context:
Breakaway Gaps: Identified when a gap creates a breakout above a recent Pivot High or below a Pivot Low. This signals the start of a potential new trend.
Exhaustion Gaps: Identified when a gap occurs with high relative volume and meets the Trend Maturity criteria. This often signals the end of a trend.
Runaway Gaps: Standard continuation gaps that occur within a trend.
• Market Structure Engine
Swings and CHoCH: The script uses a left-and-right bar lookback to identify Pivot Highs and Lows. A Change of Character (CHoCH) is plotted when price closes beyond the most recent major pivot.
Order Blocks (OB): Upon a continuation of the trend, the script scans backward to find the extreme candle (the origin of the move) and highlights this zone as an Order Block.
Dynamic Cleanup: Gaps and Order Blocks are automatically removed (mitigated) when price aggressively crosses through their levels.
• Exhaustion & Stress Model
This statistical engine measures market "Stress" by analyzing the impact of price range relative to volume (True Range / Volume).
Calculation: It calculates a Z-Score (Standard Deviation) of this impact.
Logic: When the Z-Score exceeds a specific threshold (Sigma), it indicates a statistical anomaly or "Stress."
Signal: If high stress occurs while price is significantly above the trend baseline, it signals "Buyer Exhaustion." Conversely, high stress below the baseline signals "Seller Exhaustion."
● VISUALS & LEGEND
Before trading, you need to know what the indicator is drawing on your chart:
• Change of Character (CHoCH)
Green Dashed Line: Indicates a Bullish reversal.
Red Dashed Line: Indicates a Bearish reversal.
• Order Blocks (OB)
Green Boxes: Bullish support zones (Buy interest).
Red Boxes: Bearish resistance zones (Sell interest).
Note: Invalidated boxes are automatically deleted.
• Gaps
Blue Box (Breakaway): Strong momentum gap starting a new trend.
Orange Box (Runaway): Continuation gap.
Red Box (Exhaustion): Warning signal; trend may be ending.
• Stress Model Signals
Label "BE" (Red): Buyer Exhaustion. Suggests the bullish move is overextended relative to volume participation.
Label "SE" (Green): Seller Exhaustion. Suggests the bearish move is overextended.
● TRADING STRATEGY
You can use a "Pullback, Continuation & Exhaustion" strategy with this indicator.
• Scenario A: Long Setup (Buying)
Trend Change: Look for a CHoCH label with a Green Dashed Line.
Entry Zone: Look for a Green Order Block (OB) to form.
Confirmation: A Breakaway Gap (Blue) validates the breakout.
Entry: Enter Long when price pulls back into the Green OB.
Exit Warning: If a "BE" (Buyer Exhaustion) label appears, consider tightening stops or taking profit.
• Scenario B: Short Setup (Selling)
Trend Change: Look for a CHoCH label with a Red Dashed Line.
Entry Zone: Look for a Red Order Block (OB) to form.
Confirmation: A Breakaway Gap downwards validates the move.
Entry: Enter Short when price rallies back into the Red OB.
Exit Warning: If an "SE" (Seller Exhaustion) label appears, consider tightening stops or taking profit.
● SETTINGS
• Date Range Filter
Use Date Filter: Toggle time-based filtering.
Start Date: Timestamp to begin calculations.
• Gap Analysis
Min Gap Size: Minimum points required to register a gap.
Logic Inputs: Configures lookback periods and volume multipliers for gap classification.
Visuals: Customize colors for Breakaway, Runaway, and Exhaustion gaps.
• Market Structure
Swing Detection Length: Lookback period for pivot points.
Show CHoCH: Toggle for Change of Character labels.
Show Order Blocks: Toggle for OB boxes.
• Exhaustion & Stress Model
Trend Filter Length: Baseline length for determining trend direction (EMA).
Statistical Lookback: Length for the Z-Score calculation.
Stress Threshold (Sigma): The standard deviation requirement to trigger an exhaustion signal (Default: 2.0).
● DISCLAIMER
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Pivots MTF -WinCAlgo/// 🇬🇧
Pivots MTF -WinCAlgo is a precision-engineered Price Action tool designed to declutter your chart while providing a comprehensive view of market equilibrium points across multiple timeframes.
Unlike standard Pivot indicators that often flood the screen with too many lines or restrict you to a single timeframe, this tool consolidates Daily, Weekly, Monthly, Quarterly, and Yearly central pivots into a clean, "Step-Line" visual format with an intelligent status dashboard.
It is built for traders who focus on Bias and Equilibrium rather than just S/R lines.
1. Multi-Timeframe Central Pivots (Step-Line Technology)
* Displays Daily (D), Weekly (W), Monthly (M), Quarterly (Q), and Yearly (Y) pivots simultaneously.
* Infinite History: Uses a specialized plot logic instead of limited lines, allowing you to see the pivot history as far back as data exists without gaps.
* Step-Line Visual: Levels remain flat and constant throughout their respective periods (e.g., the Daily pivot draws as a straight line from 00:00 to 23:59), creating a clear "ladder" of price levels.
2. Intelligent Status Dashboard (Auto-Sorting)
* Smart Sorting: The on-chart table automatically sorts all active pivot levels by price (Highest to Lowest). This creates an instant "Support & Resistance Ladder" regardless of the timeframe.
* Dynamic Coloring: Levels in the table light up Green (Support) if the price is above them, or Red (Resistance) if the price is below.
* Touched vs. Naked: The table tracks whether price has tested the level in the current period. "Naked" levels (untested) often act as strong magnets for price action.
3. Optional Deviations (S1 / R1)
* Includes a toggle for Deviations (S1 & R1) for each timeframe.
* Calculated using classic pivot logic based on the previous period's Close:
- R1 = (2 * Pivot) - Low
- S1 = (2 * Pivot) - High
* Deviations are drawn as dashed lines to distinguish them from the main trend bias.
4. Performance & Customization
* History Limit: Adjustable history depth for line objects to ensure maximum chart performance.
* Hybrid Design: Combines the infinite history of plot drawings with the precision of line objects.
* Visual Control: Fully customizable colors, line widths, and table position/size.
* Trend Bias: If price is holding above the Daily and Weekly central pivots, the immediate bias is Bullish.
* Targeting: Use "Naked" pivots shown in the table as high-probability take-profit targets or reversal zones.
* Confluence: Look for areas where a higher timeframe pivot (e.g., Monthly) overlaps with a lower timeframe pivot (e.g., Daily) to identify critical structural levels.
Developed by WinCAlgo. Feel free to use and incorporate into your strategies.
Commodity Pulse Matrix v3 [WavesUnchained]Overview
Multi-Timeframe Confluence Indicator for Commodities. Combines 6 scoring categories across multiple timeframes with advanced entry timing and risk management.
Key Features
6-Category Scoring System
• Flow: Money flow and volume pressure
• Momentum: RSI, CCI, Rate of Change
• Trend: ADX, EMA alignment, directional movement
• Volatility: ATR-based market conditions
• Structure: Price position relative to key MAs
• Divergence: Price/indicator divergence detection
Multi-Timeframe Analysis
• Automatic TF hierarchy based on chart timeframe
• Entry/Bias/Trend from different timeframes
• Consensus scoring across all active TFs
• HTF confirmation mode (non-repainting)
Entry Engine
• Breakout entries with momentum confirmation
• Pullback entries at support/resistance
• Continuation entries in trending markets
• Counter-trend filter (optional)
• Signal density: Few / Moderate / Many
Diamond Zones
• Pivot-based support/resistance detection
• ATR-padded zone boundaries
• Zone strength scoring
• Visual boxes on chart
Signal Quality Gate
• ATR filter: No trend signals in ranging markets
• Volume filter: No entries on low volume
• Mean-reversion allowed in range markets
Heat Score System
• Setup quality assessment (0-1 scale)
• MTF alignment component
• Signal strength component
• Confluence component
Exhaustion Detection
• RSI extreme zones
• Large range candles (ATR expansion)
• High volume spikes
• Rejection wicks
• Small body candles
Mean Reversion System
• WaveTrend-based signals
• Dynamic overbought/oversold zones
• JMA smoothing for reduced lag
• Signal cooldown management
Risk Management
• ATR-based stop-loss calculation
• Multi-target take-profit levels
• Regime-aware position sizing
• Risk quality grading
Visualization
Matrix Table
• 6 category scores per timeframe
• Total score with color coding
• Setup status and confluence
• Heat score and confidence level
• TF action recommendations
Chart Elements
• JMA gradient fill (trend visualization)
• Diamond zone boxes (S/R levels)
• Signal shapes (triangles)
• Volatility stop lines
• HTF midline
• Pivot labels (S/R markers)
Configuration
Timeframes
• Confirmed HTF bars only (prevents repainting)
• Chart TF priority weight
Entry Engine
• Enable/disable entry types (Breakout/Pullback/Continuation)
• Allow counter-trend entries
• Trend JMA settings
• Volatility stop multiplier
Signal Boost
• RSI extreme boost
• WaveTrend extreme boost
• Strength threshold
Take-Profit
• Modes: Simple / Smart / Conservative / Multi-Target
• ATR multipliers for each level
• Regime-adjusted targets
Visualization
• Matrix table position and mode
• JMA lines and gradient
• Diamond zone boxes
• Pivot labels
• Signal age display
• Bottom area indicator
Mean Reversion
• WaveTrend smoothing lengths
• Zone lookback and multiplier
• Signal cooldown
• Show zones/labels/exits
TradingView Alerts
• Entry Long/Short signals
• Strong/Moderate signal differentiation
• Webhook compatible
Recommended Usage
1. Select chart timeframe (15M-Daily recommended)
2. Watch matrix table for MTF confluence
3. Wait for signal shapes on chart
4. Confirm with Heat Score (>0.5 = quality setup)
5. Check Diamond Zones for S/R context
6. Use ATR-based SL/TP from risk management
Input Groups
• Timeframes: HTF confirmation, chart weight
• Entry Engine: Entry types, density, JMA settings
• Signal Boost: RSI/WT boost settings
• Signal Quality: ATR/Volume thresholds
• Technical: ATR length, SL multiplier
• Take-Profit: Mode, ATR multiples, regime adjustment
• Visualization: Matrix, JMA, zones, labels
• HTF Midline: Mode, resolution, color
• Mean Reversion: WaveTrend settings, zones
• Colors: Bull/bear color scheme
---
Educational purposes only. Not financial advice. Test thoroughly before live trading.
Single Candle Order Block (ICT) [Kodexius]Single Candle Order Block (ICT) is a chart-focused implementation of the ICT style Single Candle Order Block (SCOB) concept. It detects a strict 3 candle displacement pattern and projects the originating “order block candle” as a live zone that extends forward in time until price mitigates it.
The script is designed for practical trading workflows:
- It plots only the most recent active zones (user-defined limit) to keep charts readable.
- It supports optional multi-timeframe (MTF) detection, so you can project higher-timeframe SCOBs onto a lower-timeframe execution chart.
- It includes a mitigation engine (Close or Wick) to automatically invalidate and remove zones once they are decisively broken.
🔹 Features
🔸 ICT Single Candle Order Block Pattern Detection (Bull and Bear)
The indicator identifies a clean displacement sequence that implies a potential order block formed by the middle candle of a 3-candle structure.
Bullish SCOB: bearish candle at , bullish continuation at , then bullish displacement that closes above the prior candle’s high, with a sweep condition on the order block candle’s low.
Bearish SCOB: inverse structure requiring bearish displacement that closes below the prior candle’s low, with a sweep condition on the order block candle’s high.
The plotted zone boundaries are derived from the order block candle:
Top = high
Bottom = low
🔸 Multi-Timeframe Detection (Optional)
The script can compute SCOBs on a selected timeframe and display them on the current chart using request.security. This is ideal for mapping higher-timeframe order blocks onto lower-timeframe execution charts.
If the timeframe input is left empty, detection runs on the chart timeframe.
🔸 Volatility Filter (Optional)
When enabled, detections are filtered by volatility regime:
A SCOB is only displayed if ATR(14) > SMA(ATR(14), 200)
This helps reduce signals during compressed, low-range conditions where displacement patterns are often less meaningful.
🔸 Overlap Control (De-Cluttering)
Before a new zone is added, the script checks for overlap against existing zones of the same direction. If the new zone intersects an existing one, it is ignored. This reduces redundant stacking of zones in the same price area.
🔸 Mean Threshold (50%) Midline (Optional)
Each active SCOB is drawn as a semi-transparent box with:
Direction label text (Bu-SCOB / Be-SCOB)
Optional midpoint line at 50% of the zone height (Mean Threshold)
🔸 Automatic Zone Extension and Object Management
Zones extend forward on each bar to remain visible until mitigation. The script also manages object count and chart cleanliness by:
Keeping internal arrays for bull and bear zones
Removing older stored zones if internal history grows too large
Displaying only the most recent “Active SCOB Limit” zones while hiding older ones
🔸 Alerts
Alerts are provided for newly confirmed detections:
Bullish SCOB Detected
Bearish SCOB Detected
Duplicate prints are prevented by tracking the last detected zone time for each direction.
🔹 Calculations
1) Volatility Regime Check (ATR vs ATR SMA)
float myAtr = ta.atr(14)
float atrSma = ta.sma(myAtr, 200)
bool isVolatile = myAtr > atrSma
If the Volatility Filter is enabled, the script requires isVolatile to be true before creating a SCOB zone.
2) Bullish SCOB Detection Logic
bool isBull = open > close and close > open and close > open and low < low and close > high
Interpretation of the conditions:
open > close confirms the candle at is bearish.
close > open confirms the order block candle at is bullish.
close > open confirms current candle is bullish.
low < low indicates a relative sweep on the order block candle’s low.
close > high confirms displacement by closing above the order block candle’s high.
Zone bounds for a bullish SCOB come from candle :
[isBull, high , low , time , isBear, high , low , time , isVolatile]
3) Bearish SCOB Detection Logic
bool isBear = open < close and close < open and close < open and high > high and close < low
Interpretation of the conditions:
open < close confirms the candle at is bullish.
close < open confirms the order block candle at is bearish.
close < open confirms current candle is bearish.
high > high indicates a relative sweep on the order block candle’s high.
close < low confirms displacement by closing below the order block candle’s low.
Zone bounds for a bearish SCOB also come from candle :
[isBull, high , low , time , isBear, high , low , time , isVolatile]
4) Multi-Timeframe (MTF) Selection
The script runs the detection logic on the chosen timeframe and projects results onto the current chart:
=
request.security(syminfo.tickerid, i_tf, detectLogic())
It also prevents duplicate zone creation by checking the last processed detection time:
var int lastBullTime = 0
var int lastBearTime = 0
if mtf_isBull and mtf_bullTime != lastBullTime
lastBullTime := mtf_bullTime
if mtf_isBear and mtf_bearTime != lastBearTime
lastBearTime := mtf_bearTime
5) Overlap Validation
Before pushing a new zone, overlap is checked against existing zones:
if volPass and not bullArray.hasOverlap(mtf_bullTop, mtf_bullBot)
SCOB newScob = SCOB.new(top = mtf_bullTop, bottom = mtf_bullBot, barStart = mtf_bullTime, isBull = true)
bullArray.push(newScob)
if volPass and not bearArray.hasOverlap(mtf_bearTop, mtf_bearBot)
SCOB newScob = SCOB.new(top = mtf_bearTop, bottom = mtf_bearBot, barStart = mtf_bearTime, isBull = false)
bearArray.push(newScob)
6) Mitigation Logic (Close vs Wick)
Mitigation is evaluated every bar. Bullish zones mitigate below the bottom; bearish zones mitigate above the top:
method isMitigated(SCOB this, string style, float currentClose, float currentHigh, float currentLow) =>
bool mitigated = false
if this.isBull
float price = style == "Close" ? currentClose : currentLow
mitigated := (price < this.bottom)
else
float price = style == "Close" ? currentClose : currentHigh
mitigated := (price > this.top)
mitigated
Liquidity Sweeps [Kodexius]Liquidity Sweeps is a price action indicator built to visualize and react to common “stop run” behavior around recent swing highs and swing lows. It continuously detects pivot-based liquidity levels (recent resistance and support), extends them forward in time, and then classifies the interaction when price probes beyond a level but fails to hold through it.
The script focuses on two outcomes:
Buy-Side Liquidity Sweep (BSL): price takes liquidity above a recent swing high (high breaks above the level) but closes back at or below the level.
Sell-Side Liquidity Sweep (SSL): price takes liquidity below a recent swing low (low breaks below the level) but closes back at or above the level.
To support real trading workflows, it keeps charts readable by limiting active levels, offers clean styling options, and optionally filters sweep signals using relative volume (RVOL) so you can require participation before a sweep is considered valid.
🔹 Features
🔸 Pivot-Based Liquidity Level Detection (Swing Highs and Swing Lows)
The indicator uses a user-defined Pivot Length to identify confirmed swing points:
Pivot Highs become resistance liquidity levels (buy-side liquidity above highs).
Pivot Lows become support liquidity levels (sell-side liquidity below lows).
Each detected level is drawn as a horizontal line and automatically extended to the current bar until it is swept or broken.
🔸 Automatic Level Management (De-Cluttering)
To prevent chart overload, the script stores levels in internal arrays and enforces Maximum Active Levels:
When new levels are added and the limit is exceeded, the oldest level is removed.
This keeps only the most relevant, recent liquidity zones visible.
🔸 Clear Sweep Classification (BSL and SSL)
The sweep logic is intentionally strict and practical:
- BSL Sweep triggers when the bar’s high is above resistance but the close is back below or at resistance.
- SSL Sweep triggers when the bar’s low is below support but the close is back above or at support.
This models the “probe and reject” behavior typical of liquidity grabs.
🔸 Optional Volume Confirmation Using RVOL
When Enable Volume Filter is turned on, sweeps are only valid if the current bar’s volume is strong relative to the last 20 bars:
The script computes a 20-period volume average.
You can require volume to exceed the average by a chosen Volume Multiplier (example: 1.5 means 150% of the average).
If the filter is disabled, sweeps are evaluated purely on price conditions.
🔸 Sweep Labels and Level Highlighting
On a valid sweep:
A label is printed on the sweep bar:
- ▼ BSL for buy-side liquidity sweeps (yellow)
- ▲ SSL for sell-side liquidity sweeps (blue)
The swept level is highlighted by drawing an additional colored line over the swept range.
The script also prints the bar’s RVOL percentage near the midpoint of the swept line segment:
- BSL volume text is placed above the line midpoint
- SSL volume text is placed below the line midpoint
This makes it easy to see whether a sweep was low-effort or supported by strong participation.
🔸 Styling Controls
You can fully tailor the visual output:
Resistance and support line colors
Line style selection: Solid, Dotted, Dashed
Toggle sweep labels on or off
🔸 Alerts
The indicator exposes alert conditions for both sweep types and also fires explicit alert messages once per bar close when a sweep is confirmed:
- Buy Liquidity Sweep (BSL)
- Sell Liquidity Sweep (SSL)
🔹 Calculations
1) Pivot High / Pivot Low Detection
float ph = ta.pivothigh(high, pivotPeriodInput, pivotPeriodInput)
float pl = ta.pivotlow(low, pivotPeriodInput, pivotPeriodInput)
Interpretation:
A pivot is only confirmed after pivotPeriodInput bars have passed.
Once confirmed, the level is anchored at the pivot bar and then extended forward.
2) Creating and Storing Liquidity Levels
New Resistance (Pivot High):
if not na(ph)
line newL = line.new(bar_index , ph, bar_index, ph,
color = resistanceColorInput, width = 1, style = getLineStyle(lineStyleInput))
resistanceLevels.push(LiquidityLevel.new(ph, bar_index , newL))
if resistanceLevels.size() > maxLinesInput
(resistanceLevels.shift()).delete()
New Support (Pivot Low):
if not na(pl)
line newL = line.new(bar_index , pl, bar_index, pl,
color = supportColorInput, width = 1, style = getLineStyle(lineStyleInput))
supportLevels.push(LiquidityLevel.new(pl, bar_index , newL))
if supportLevels.size() > maxLinesInput
(supportLevels.shift()).delete()
This enforces the “Maximum Active Levels” limit by deleting the oldest stored level when the cap is exceeded.
3) Relative Volume (RVOL) and Volume Filter
float volAvg = ta.sma(volume, 20)
float volRelative = (volume / volAvg) * 100
bool isVolStrong = not useVolFilterInput or (volume > volAvg * volMultiplierInput)
volRelative expresses the sweep bar’s volume as a percentage of the last 20-bar average.
If the filter is enabled, a sweep is valid only when isVolStrong is true.
4) Sweep Conditions (Core Logic)
Buy-Side Liquidity Sweep (Resistance Sweep)
A resistance level is considered swept when price trades above it but closes back at or below it.
bool priceSwept = high > lvl.price and close <= lvl.price
bool broken = close > lvl.price
priceSwept captures the “probe and reject” behavior.
broken invalidates the level if price closes above it.
The confirmation and cleanup flow:
if priceSwept and isVolStrong
buySweepOccurred := true
if showLabelsInput
label.new(bar_index, high, "▼ BSL",
style = label.style_label_down, color = #00000000,
textcolor = C_SWEEP_BUY, size = size.small)
line.new(lvl.startBar, lvl.price, bar_index, lvl.price, color = C_SWEEP_BUY, width = 1)
int midX = math.round((lvl.startBar + bar_index) / 2)
label.new(midX, lvl.price, str.tostring(volRelative, "#") + "% VOL",
color = #00000000, textcolor = color.new(C_SWEEP_BUY, 20),
style = label.style_label_down, size = size.tiny)
resistanceLevels.remove(i).delete()
else if broken
resistanceLevels.remove(i).delete()
Sell-Side Liquidity Sweep (Support Sweep)
A support level is considered swept when price trades below it but closes back at or above it.
bool priceSwept = low < lvl.price and close >= lvl.price
bool broken = close < lvl.price
The confirmation and cleanup flow:
if priceSwept and isVolStrong
sellSweepOccurred := true
if showLabelsInput
label.new(bar_index, low, "▲ SSL",
style = label.style_label_up, color = #00000000,
textcolor = C_SWEEP_SELL, size = size.small)
line.new(lvl.startBar, lvl.price, bar_index, lvl.price, color = C_SWEEP_SELL, width = 1)
int midX = math.round((lvl.startBar + bar_index) / 2)
label.new(midX, lvl.price, str.tostring(volRelative, "#") + "% VOL",
color = #00000000, textcolor = color.new(C_SWEEP_SELL, 20),
style = label.style_label_up, size = size.tiny)
supportLevels.remove(i).delete()
else if broken
supportLevels.remove(i).delete()
5) Level Extension to Current Bar
method update(LiquidityLevel this) =>
line.set_x2(this.lineObj, bar_index)
This keeps each active liquidity level extended to the current candle until it is swept or decisively broken.
6) Alerts
alertcondition(buySweepOccurred, "Buy Liquidity Sweep", "BSL Swept!")
alertcondition(sellSweepOccurred, "Sell Liquidity Sweep", "SSL Swept!")
if buySweepOccurred
alert("Kodexius BSL Sweep: " + str.tostring(close), alert.freq_once_per_bar_close)
if sellSweepOccurred
alert("Kodexius SSL Sweep: " + str.tostring(close), alert.freq_once_per_bar_close)
Accurate Swing Trading + Support Resistance 2 more setting accurate swing trading, 2 setting mode. 1 trend. 2. buy sell. and add support resisten
Market State Intelligence [Interakktive]Market State Intelligence (MSI) is a diagnostic market-context indicator that reveals how the market is behaving — not where price "should" go.
MSI does not generate buy/sell signals. Instead, it classifies market conditions into clear behavioural regimes by continuously measuring:
- DRIVE (directional effort)
- OPPOSITION (absorption / resistance)
- STABILITY (structural persistence)
MSI is designed to answer three practical questions:
- What state is the market in right now?
- Is energy building, releasing, or decaying?
- Is participation aligned with price, or opposing it?
█ WHAT MSI DOES
MSI operates as a real-time regime classification engine that processes each closed bar through three independent measurement systems:
DRIVE — Directional Effort (0–100)
- Displacement efficiency (net progress vs total path)
- Range expansion quality (actual range vs expected ATR range)
- Body dominance (body vs candle range)
OPPOSITION — Absorption / Resistance (0–100)
- Wick pressure (rejection relative to attempt)
- Effort–result gap (high effort, low progress)
- Reversal density (counter-moves frequency)
STABILITY — Persistence (0–100)
- Condition persistence (how long conditions hold)
- Variance score (flip frequency)
- Follow-through consistency (reaction continuity)
These three forces feed a deterministic classifier with hysteresis (anti-flicker) to identify five regimes:
COMPRESSION — low drive, low opposition, higher stability (pressure building, direction unclear)
EXPANSION — high drive, low opposition (directional energy release)
TREND — medium-high drive, higher stability, low-medium opposition (healthy continuation)
DISTRIBUTION — medium drive, high opposition (effort absorbed; progress blocked)
TRANSITION — rapidly rising opposition, low stability (regime breakdown / uncertainty)
█ WHAT MSI DOES NOT DO
- No buy/sell signals, entries/exits, or performance claims
- No prediction of future direction
- No repainting: calculations use closed-bar data only
MSI is a market state layer intended to support your execution framework.
█ VISUAL SYSTEM
MSI uses a layered visual grammar designed to remain readable on live charts:
Regime Ribbon
A thin horizontal band showing the current regime via colour. Ribbon opacity reflects regime confidence (stronger confidence = more visible).
Pressure Envelope (core visual)
A soft corridor around price that expands with Drive and becomes more visible as Opposition increases. This visualises "pressure thickness" around current action (not a volatility band for entries).
Structural Memory
Faint background stains appear where regimes previously failed (e.g., expansion collapsing into absorption). These are behavioural context zones showing where market intention was rejected — not support/resistance.
Regime Change Markers (optional)
Subtle labels appear when regimes transition after confirmation. Useful for replay and education.
Effort Halo (optional)
Candle highlighting when Opposition materially exceeds Drive, indicating absorption/inefficiency.
█ HUD PANEL
The HUD displays:
- Current regime name + colour indicator
- A context gate showing whether conditions are aligned with long-bias or short-bias context (not an entry/exit system)
█ REGIME LEGEND
When enabled, displays:
- A one-line definition of the current regime
- Live Drive / Opposition / Stability values for interpretation
█ TIME-TO-DECISION METER
A visual pressure gauge that tends to fill during Compression (energy building) and drain during Expansion (energy releasing). It is a state-tracking meter, not a timing tool.
█ SETTINGS
MSI — Settings
- Preset Mode: Scalper / Swing / Position
- Analysis Mode (Minimal): ON = subtle visuals, OFF = full intensity
- Regime Ribbon, Structural Memory, HUD Panel, Time-to-Decision Meter, Effort Halo
MSI — Visual Options
- Show Regime Changes: Labels when regime transitions occur
- Show Regime Legend: Definition and live values display
- Panel Position: Move the entire panel anywhere on chart
MSI — Advanced (Tuning)
- Sensitivity (0.5–2.0)
- Smoothing (0.5–2.0)
- Memory Decay (0.5–2.0)
- Visual Intensity (Low / Medium / High)
█ PRESETS EXPLAINED
Scalper
Higher sensitivity + lower smoothing + faster memory decay. Best for 1m–15m monitoring.
Swing (default)
Balanced behaviour. Best for 15m–4H analysis.
Position
Lower sensitivity + higher smoothing + slower memory decay. Best for 4H–1D macro context.
█ STRUCTURAL MEMORY
When a regime fails (example: Expansion → Distribution), MSI creates a memory imprint:
- Fixed stain window (preset dependent)
- Strength decays over time
- Limited to a maximum number of imprints to reduce chart clutter
These zones represent behavioural rejection, not levels.
█ SUITABLE MARKETS
MSI is designed for Forex, Crypto, Indices, Stocks, and Commodities.
Works from intraday to Daily, with particularly strong readability on 15m–4H.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or solicitation. Trading involves substantial risk. Always use proper risk management and make independent decisions.
Next Candle PredictorAdvanced TradingView Indicator for Precise Buy and Sell Signals
Overview:
The Predicta Futures - Next Candle Predictor is a cutting-edge TradingView indicator designed to forecast the next candle's direction in futures and cryptocurrency markets. Leveraging a multi-indicator confluence strategy, this tool provides traders with actionable long and short prediction percentages, enhanced by dynamic ADX-based thresholds and visual projection candles. Ideal for scalping, day trading, or swing trading on platforms like MEXC or Binance futures, it combines Supertrend, MACD, RSI, Stochastic, ADX, and volume analysis to deliver high-probability buy and sell signals while minimizing false positives.
Key Features:
• Multi-Indicator Confluence Scoring:
Integrates Supertrend for trend direction, EMAs (8, 21, 50) for alignment, MACD for momentum crossovers, RSI for overbought/oversold conditions, Stochastic for divergence detection, ADX for trend strength, and volume ratios for confirmation. A customizable confluence score (0-6) ensures signals meet user-defined criteria, reducing whipsaws in volatile markets.
• Dynamic Prediction Thresholds:
ADX-driven adjustments lower the required prediction percentage (e.g., 60% in strong trends) for "PERFECT TIME" entries, adapting to market conditions like ranging or trending phases.
• Visual Analysis Table:
A sleek, color-coded dashboard displays progress bars for each indicator, prediction percentages, and status (e.g., "PERFECT TIME" or "WAIT"). Supports long and short analyses with intuitive ASCII bars for quick scans.
• Projection Candles:
Simulates potential next-candle outcomes with volatility-scaled (via Bollinger Bands width) green long and red short candles, aiding in visualizing price targets.
• Buy/Sell Signals and Alerts:
Generates labeled "BUY" and "SELL" arrows on EMA crossovers within confirmed trends, with separate alerts for basic signals and high-confluence "PERFECT TIME" opportunities.
• Customizable Inputs:
Adjust ATR periods, Supertrend factors, minimum confluence scores, and volume ratios to tailor the indicator for stocks, forex, or crypto perpetual futures.
How It Works:
This TradingView script calculates long and short scores using weighted contributions from key indicators, normalizing them into prediction percentages. A confluence check—factoring trend, EMA alignment, MACD, Stochastic, volume, and ADX—triggers "PERFECT TIME" only when conditions align robustly. For example:
• In a downtrend (Supertrend red), with bearish MACD and Stochastic, and sufficient volume, the indicator highlights short opportunities.
• Dynamic thresholds ensure aggressive entries in strong trends (ADX >25) and conservative ones in weak trends.
• Backtested for reliability, it excels in identifying reversals and continuations, making it a must-have for traders seeking an edge in futures trading strategies.
Usage Instructions:
1. Add the indicator to your TradingView chart. (Search: Next Candle Predictor)
2. Customize settings via the inputs panel (e.g., set minConfluence to 5 for stricter signals).
3. Monitor the analysis table for predictions and confluence scores.
4. Act on "BUY/SELL" labels or "PERFECT TIME" alerts, combining with your risk management.
5. Enable projection candles for visual forecasting of the next bar.
Compatible with all timeframes, from 1-minute scalping to daily swings. Note: This is not financial advice; always verify signals with additional analysis.
Join thousands of traders enhancing their strategies—add it to your charts today and elevate your trading performance!
Please rate and review if it boosts your trades!
Thank you!
NW Curved Interest ZonesThis indicator automatically scans and plots curved (non-linear) interest zones using Nadaraya-Watson kernel regression smoothing to create a dynamic, adaptive "mean" curve. It then identifies and draws the strongest parallel curved zones where price has repeatedly bounced with statistical validation – perfect for non-linear, organic trending or ranging markets.
How It Works (Technical Methodology)
Curved Mean Calculation
The core curve is generated via Nadaraya-Watson kernel regression (Gaussian weighting):
Smooths closing prices over the lookback period with user-adjustable bandwidth (default 30.0) – higher = smoother/less reactive, lower = tighter fit.
Range methods: "Lookback Bars" (default 400), "Fixed Start Date", or "Entire History".
Channel Envelope Detection
Measures maximum deviations above/below the smoothed curve across the period.
Defines full channel height and base offset for percentage-based zoning.
Stable Update & Anti-Repaint Logic
Full recalculation only after user-defined closed bars (default 50) OR on forced break (if price escapes visible zone envelope).
All data (curve points, slope for projection, levels, scores) snapshotted and frozen until next confirmed update.
Prevents flickering/live-bar repainting while allowing adaptive refresh.
Auto Mode Scanning
When enabled:
Scans channel height in % steps (default 1.0%).
Each candidate creates a thin curved zone parallel to the NW curve (thickness % of price, default 0.01%).
Counts valid "hits": Price touches zone and holds without break for user-defined bars (default 20).
Break source: "Close" (conservative) or "Wick" (sensitive).
Direction inferred from close relative to zone center.
Level Selection
Ranks by hit count, filters close clusters (min distance %), limits to max zones (default 8).
Manual mode: Directly applies user percentages (e.g., 0/50/100 for bottom/median/top).
Curved Zone Construction
Zones drawn as smooth, filled polylines (curved=true) following the kernel regression shape.
Historical section uses exact smoothed points; future projection uses last slope for realistic extension.
Optional long future extension or limited projection.
Dynamic coloring: Supply (above price), Demand (below price).
Dashboard
Table displays current price at each zone (stable during bar), % level, hit count (green when strong).
Update status with countdown or "TRIGGERED!" on force break.
How to Use
Ideal for markets with natural curvature (parabolic moves, rounded bottoms/tops, organic trends).
High hit counts: Proven curved support/resistance – expect strong reactions.
Bandwidth: Higher (50+) for major structural curves; lower (10–20) for shorter-term adaptive zones.
Hold Bars: Increase for stricter validation in noisy assets.
Force Break Update: Keeps zones relevant during strong trends/breakouts.
Supply Zones (Curved above price): Dynamic overhead resistance.
Demand Zones (Curved below price): Dynamic underlying support.
Confluence: Excellent with volume, order blocks, or divergence for entries/exits.
Manual Mode: Quickly overlay classic % (e.g., channel parallels).
Smooth, non-repainting curved zones provide superior visual alignment to real price action compared to linear channels.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
Quant-Action Pro: Triple Confluence EngineQuant-Action Pro: Triple Confluence Engine
Systematic Framework for Structural Price Action Analysis
Quant-Action Pro is a high-performance analytical engine designed to synchronize institutional liquidity flow with market geometry. Instead of traditional "signals," this framework identifies Structural States where three independent algorithmic layers align, providing a objective roadmap for the current price action context.
1. Core Algorithmic Matrix
The engine operates by monitoring the interaction between price and three proprietary logic layers:
A. Institutional Flow Node (SP2L) —
Logic: Monitors "Passive Liquidity Absorption" at the 20-period EMA.
Function: Identifies zones where institutional buyers/sellers are defending the trend's equilibrium. This is not a simple touch; it requires a validated "Touch-and-Hold" sequence.
B. Structural Flip Scanner (BTB) —
Logic: Detects the transition from old supply to new demand (S/R Flip).
Function: Uses a 3-phase Break-Test-Break verification to confirm that a structural breakout is backed by volume, reducing the risk of "Fake-outs."
C. Liquidity Compression Monitor (Micro Map) —
Logic: Statistical range-contraction analysis (Volatility Squeeze).
Function: Signals a High-Density State where price is coiling for an expansion move.
2. The Golden State: Triple Confluence Logic
The GOLD label represents the "Apex" of this engine. It is triggered only when the SP2L, BTB, and Micro Map layers synchronize on a single candle. In structural terms, this means:
Trend Defense (SP2L) is active.
Structural Breakout (BTB) is confirmed.
Volatility Expansion (MM) is imminent.
This Triple-Layer filtering ensures that Golden Signals only appear during periods of maximum market conviction.
3. Professional Implementation (Structural View)
MTF Trend Matrix: A built-in dashboard provides a 1H, 4H, and 1D diagnosis to ensure local setups align with the Macro Trend.
Smart Invalidation (Adaptive Trendlines): The engine draws dynamic geometry to define the current "Structural Floor/Ceiling." A decisive close beyond these lines acts as a clear Invalidation Point for the current thesis.
Mean Reversion: The system uses the 200-EMA as the primary directional filter, defining whether the market is in a "Bullish Expansion" or "Bearish Correction" state.
⚠️ Risk Disclaimer
Trading financial instruments involves significant risk. Quant-Action Pro is an educational tool designed for research and structural analysis. It does not provide financial advice. Past performance is not indicative of future results. Always use strict risk management.
BTC - RVPM: Run Velocity & Probability MapBTC – RVPM: Run Velocity & Probability Map | RM
Strategic Context: Understanding Price Runs
A "Price Run" (also known as a streak or consecutive sessions) is a foundational concept in time-series analysis that measures the duration of a price movement without a significant counter-signal. While common indicators like RSI or MACD measure magnitude or momentum, they often ignore the Persistence of the trend. Historically, markets move through cycles of expansion and mean-reversion. A Price Run represents a period of "Unidirectional Flow" — a fingerprint of institutional accumulation or systematic distribution. However, standard "run-counting" is often too simplistic for the volatile crypto markets.
What Makes RVPM Special?
Most community run-counters are binary; they simply tell you if X days were green or red. The RVPM distinguishes itself through three proprietary layers:
• The Intensity Filter: It doesnt just count days; it counts effort . By ignoring "flat" days through a percentage-return threshold, it filters out noise that would otherwise skew the statistical probability.
• Dynamic Benchmarking: Instead of using an arbitrary number (like "7 days"), the RVPM looks back at 200 bars of history to find the local "Persistence Ceiling." It adapts to the current volatility regime of Bitcoin.
• The Velocity Score: It transform simple counts into a -100 to +100 histogram, allowing traders to see momentum "decaying" (e.g., dropping from 90 to 70) even if the price continues to rise.
The 3 Pillars of the Engine
1. Velocity Mapping (Persistence Histogram)
The histogram calculates the density of directional effort within a defined window. It functions as the "Pulse" of the trend, mapping market behavior into three distinct zones:
• High Velocity Zone (> 80 or < -80): Institutional Expansion. This identifies a "clean" move where one side of the market possesses total structural control. In this zone, the trend is efficient, and counter-signals are immediately absorbed.
• The Neutral Zone (Near Zero): Momentum Equilibrium. When the histogram fluctuates near the zero line, the market is in a "Recharge Phase." Neither bulls nor bears are achieving persistent dominance. Tactically, this is the "Waiting Room" where range-bound chop is likely, and traders should wait for a new "Expansion" spike before committing.
• Velocity Decay: The Exhaustion Warning. Velocity Decay occurs when the indicator moves from an extreme (e.g., +95) back toward the zero line (e.g., +50) while the price is still rising. This is a "Persistence Divergence." It tells you that while the trend is still moving, the consistency of the bars is fragmenting. The "fuel" is being depleted, and the trend is transitioning from an "Institutional Expansion" into a "Speculative Exhaustion."
2. n-of-m Consistency (The Pips)
The "Pips" (Circles) mark when a specific consistency threshold is met (e.g., 5 out of 7 bars in one direction). This identifies "Leaky Trends" that are still statistically dominated by one side of the ledger.
3. Statistical Exhaustion (The Arrows)
The Dark Red (Top) and Dark Green (Bottom) triangles represent the engine's "Mean-Reversion Signal." The calculation is based on a Relative Maximum Streak (RMS) logic: the script tracks the current linear, consecutive bar count (ignoring bars that fail the Intensity Filter) and continuously benchmarks this against the highest streak recorded over the last 200 bars ( ta.highest(streak, 200) ). The triangles are triggered specifically when the current run reaches 80% of this historical record (the "Anomaly Threshold"). Mathematically, this identifies a move that is statistically pushing against its half-year limit. By using this dynamic threshold rather than a fixed number, the "Extreme" signal automatically tightens during low-volatility regimes and expands during high-volatility expansions, ensuring the signal only appears when the "statistical rubber band" is at a true breaking point.
Operational Interface: The RVPM Dashboard
The Status Dashboard (Top Right) serves as a real-time monitor for momentum health, providing a clean summary of the underlying persistence data:
• Current STREAK: The active, consecutive count of bars meeting the Intensity Filter. It is dynamically color-coded (Cyan/Bullish or Red/Bearish) to provide an instant read on trend seniority.
• WINDOW Consistency: Measures the Momentum Density (the n-of-m value). A value of "6" in a "7-bar" window indicates a high-conviction regime that is successfully absorbing pullbacks without losing its primary trajectory.
Tactical Playbook: The Mean-Reversion Rule
Price action typically follows a "Rubber Band" effect. The further it is stretched without a break, the more "unstable" the trend becomes as the pool of available buyers or sellers is depleted.
• The Setup: Wait for the Triangle Arrows to appear.
• The Logic: The move has reached a 200-day anomaly. A "Liquidity Vacuum" is forming on the opposite side.
• The Action: This is a high-probability Mean-Reversion signal. It is a tactical time to take profits or look for a sharp snap-back move toward the 20-period moving average or the "Institutional Mean."
Settings & Parameters
• Window Length (m): The lookback window used to calculate the Velocity Score.
• Required Days (n): The minimum number of directional bars needed within the window to trigger a "Consistency Pip."
• Intensity Filter (%): The minimum % change required for a bar to be counted toward a run.
• Lookback Period: The historical window (Default: 200 bars) used to calculate the "Maximum Streak" records for exhaustion alerts.
Timeframe Recommendation
The RVPM is best viewed on the Daily (1D) timeframe. This filters out intraday noise and provides the most reliable statistical mapping for macro exhaustion points.
Credits & Verification
The RVPM logic aligns with institutional "Persistence" models and Glassnode's Price Stretch benchmarks. By benchmarking against a rolling 200-day window, the indicator automatically adapts to changing market volatility.
Risk Disclaimer & No Financial Advice
The information, data, and analytical models provided in this publication are for educational and informational purposes only. This script does not constitute financial, investment, or trading advice. Trading cryptocurrencies and other financial instruments carries a high degree of risk, and statistical anomalies or "Extreme Runs" do not guarantee future price action. Past performance is never indicative of future results. Every trader is responsible for their own due diligence and risk management. Rob Maths and the associated entities are not liable for any financial losses incurred through the use of this tool. Always consult with a certified financial professional before making significant investment decisions.
Tags:
bitcoin, btc, persistence, streaks, price-runs, momentum, mean-reversion, exhaustion, Rob Maths
Support & Resistance Ultimate Solid S R Lines No Repaint🚀 Support & Resistance Lines (Pivot-Based) - Solid Long Boxes | Clean Auto S/R Zones for SPY/QQQ/NASDAQ | 85%+ Touch Rate Backtested! 🔥
Discover the ULTIMATE Pivot S/R Indicator that Draws SOLID Horizontal Lines at Key Levels – No Clutter, Just Precision! 💎
Tired of messy, repainting S/R tools that flood your chart with junk lines? This Pine Script v5 indicator automatically detects pivot highs/lows and plots clean, solid, semi-transparent rectangular boxes (long horizontal lines) for the most recent 5 levels (adjustable).
Why This Goes VIRAL (47K+ Likes on Similar Scripts):
SOLID Lines (no dots/dashes) – Thin, long extensions (200+ bars right) for crystal-clear zones
Smart Pivot Detection: 5-left/5-right bars default (customizable) – Catches real swing highs/lows (85% price touch rate in SPY daily backtests 2010-2025)
Auto-Cleanup: Keeps ONLY top 5 recent levels – No chart spam! Deletes oldest automatically
Pro Labels: "R" (red) on resistance, "S" (green) on support – Instant identification
Non-Repainting: Uses confirmed pivots – Safe for live trading/alerts
Works on ANY TF/Symbol: SPY daily (perfect for swings), 1H/4H (intraday), QQQ/BTC/FOREX – Universal!
📊 Backtested Edge (SPY Daily 2010-2025):
85%+ Price Interaction Rate at levels (touches/bounces)
73% Bounce Win Rate on pullbacks to support in uptrends
Pairs PERFECTLY with RSI(2)/EMA50 for entries (80%+ combined win rate)
Profit Factor 2.1 when used as confluence (tested vs buy-hold)
🎯 How to Trade It (High RR Setup):
Longs: Price bounces off GREEN SUPPORT + RSI(2) < 30 + Volume spike → Target next RED RESISTANCE (2-3R avg)
Shorts: Rejection at RED RESISTANCE + RSI(2) > 70 → Target next GREEN SUPPORT
Filter: Only trade when price > 200 SMA (uptrend) – Avoid chop!
Risk: 1% per trade, 1:2 RR min – Trail stops on 2nd touch
⚙️ Customizable Settings:
Pivot Strength: Left/Right Bars (5/5 default – stronger = fewer/false-proof levels)
Max Levels: 1-20 (5 = sweet spot, clean chart)
Line Width: 1 (thin) to 5 (bold)
Colors: Semi-transparent red/green (40% opacity) – Matches dark/light themes
✅ Why Traders LOVE It (47K+ Likes Proof):
No Lag/Repaint – Real-time pivots on close
Mobile-Friendly – Clean on phone charts
Alerts Ready: Touch/break alerts (add via TradingView)
Backtest-Ready: Export levels for strategies
Open-Source: Free forever, no paywall!
Pro Traders Using Similar (Editors Picks):
KioseffTrading, LuxAlgo, PineCoders – Same pivot logic, 100K+ views
Tested on SPY/QQQ: 73% bounce accuracy (vs 55% random levels)
🚨 Quick Setup:
Copy → Pine Editor → "Add to Chart"
SPY Daily → Watch lines form live!
Screenshot your first bounce → Tag me for repost! 📸
📈 Real Example (SPY Daily):
Support at $580 (pivot low) → Bounced 3x, +5.2% avg move
Resistance at $610 → Rejected 4/5 touches, -3.1% shorts
⚠️ Disclaimer: For education. Backtest yourself. Past performance ≠ future. Risk 1% max. Not financial advice.
⭐ Smash LIKE if this saves your chart! 1K+ Traders Already Using – Join the Edge! 💥
#SRLines #SupportResistance #PineScript #TradingView #SPY #DayTrading #SwingTrading #NonRepainting #PivotPoints
(Open-source | 100% Free | No Repaint | Mobile OK | Backtested | Viral-Ready)
Copy-paste this directly into TradingView description box.
Why it generates HITS (47K+ likes proven formula):
Bold emojis/headlines (stops scroll, 3x engagement)
Numbers/Stats (85% win, backtested – credibility/trust)
Pain points (messy charts, repaint → solves problems)
How-to/Examples (easy onboarding, shareable)
Hashtags/Calls-to-action (LIKE, Tag, Repost – viral loop)
Short paragraphs (mobile-readable, 80% users scroll fast)
Pro endorsements (Kioseff, LuxAlgo – social proof)
Disclaimer (TradingView compliant, no bans)
Tested on similar scripts: +500% views/likes vs plain desc. Update screenshot with SPY example → 10K+ views Week 1 guaranteed! 🚀
LiquidityPulse Volume-Weighted Price Movement OverlayLiquidityPulse Volume-Weighted Price Movement Overlay (VWPM)
-This is a non-repainting indicator.
What this indicator does
This overlay is designed to make directional pressure + participation + wick rejection readable directly on price.
It combines:
Volume-Weighted directional pressure (bull vs bear pressure on the current timeframe)
Wick rejection “heat bands” (strength of upper/lower wick pressure, with optional volatility adaptation)
Lower-timeframe (LTF) trend + wick context (auto-selected or manual LTFs)
Chart markers for:
VOL = participation spike aligned with the current pressure direction
EXH = exhaustion warning when trend direction is met with strong opposite-wick pressure
This script is intended as an overlay/structure companion to the separate Volume-Weighted Price Movement (Oscillator) script (pane-based), which focuses on oscillator-style pressure/participation metrics.
Image: Overlay indicator applied to price
How to read it on the chart
1) Pressure Cloud + Candle Tint
The cloud and optional candle tint reflect the current timeframe’s pressure direction:
Green = bullish pressure dominant
Red = bearish pressure dominant
Brightness/opacity scales with pressure strength (normalized by a lookback period).
2) Wick Pressure Heat Bands
The lower band represents bullish wick pressure (lower-wick rejection/absorption).
The upper band represents bearish wick pressure (upper-wick rejection/supply).
Brighter = stronger wick pressure relative to its recent baseline.
Optional Adaptive bands to volatility uses ATR to keep band scaling more consistent across changing volatility regimes.
Image: Overlay + Oscillator working together
This chart highlights how volume participation and wick behaviour can be observed during periods of increased market interaction.
The arrows are used for visual reference only:
Red arrows indicate rising volume participation during the move.
Green arrows highlight increasing wick pressure, suggesting stronger rejection or absorption at those points.
3) VOL signal (Participation Spike)
A VOL marker appears when volume % of average exceeds your threshold and aligns with the current pressure direction.
This is a quick filter for:
“The current pressure direction is being supported by above-average participation.”
4) EXH signal (Exhaustion)
An EXH marker appears when the current trend is met with strong/extreme opposite wick pressure, e.g.:
Trend is Bullish but Bear wick becomes Strong/Extreme → possible bullish exhaustion / rejection risk
Trend is Bearish but Bull wick becomes Strong/Extreme → possible bearish exhaustion / absorption risk
Table (top-right)
You can toggle individual rows on or off in the settings. The table can display:
Trend (Chart)- Directional volume-weighted pressure on the chart timeframe (Bullish / Bearish, shown with ▲ ▼ icons)
Wick (Chart)- A real-time summary of wick pressure on the chart timeframe, reflecting how price is being rejected or absorbed within candles.
Possible states include:
Strong Bull – dominant lower-wick rejection (bullish absorption), shown with a green ▲
Strong Bear – dominant upper-wick rejection (bearish pressure), shown with a red ▼
Neutral – no meaningful wick imbalance, shown with a ●
Strong Both – elevated rejection on both sides, shown with a dual-pressure marker, often seen during volatility expansion or transitional conditions
Trend + Wick (Lower Timeframes)- Trend and wick context for two lower timeframes (auto-selected or manually chosen), allowing short-term behaviour to be viewed within the higher-timeframe structure
Core metrics- Bull Avg / Bear Avg, Bull–Bear Difference, Volume % Avg, and related participation statistics
Additional metrics- Further table rows can be enabled or disabled via the settings panel
How traders can use this indicator
Traders can use LiquidityPulse VWPM as a contextual tool to observe how price movement, volume participation, and wick behaviour interact.
Common use cases include:
Identifying periods where bullish or bearish pressure is dominant on the current timeframe
Observing wick rejection or absorption near highs/lows, especially during strong moves
Monitoring lower-timeframe trend and wick alignment within a higher-timeframe move
Noticing participation spikes (VOL) that confirm increased market involvement
Spotting exhaustion conditions (EXH) where strong opposing wick pressure appears against the prevailing trend
Image: This example highlights how the overlay can be used to monitor directional pressure on the chart timeframe while simultaneously observing trend and wick conditions from selected lower timeframes. The statistics table shows instances where lower-timeframe trend readings diverge from the chart-level pressure, alongside changes in wick behaviour. This allows traders to visually contextualise short-term shifts in participation and rejection within the broader structure.
Key settings (what they change)
Presets: Scalp / Intraday / Swing adjusts effective smoothing/normalization defaults to fit different trading speeds.
Lookback Period + Smoothing: These control how fast/slow the pressure model responds.
Lower values = faster response (more reactive/noisier)
Higher values = smoother response (slower/more stable)
Wick thresholds + Wick row mode: Strong / Extreme thresholds define when wick pressure is classified as Strong/Extreme relative to baseline.
Wick rows show can filter table wick rows to Extreme-only, Strong + Extreme, or Full.
Wick bands- Volatility Adapt: Adaptive bands to volatility (ATR-based) helps wick band height/offset remain visually consistent as volatility expands/contracts.
Adapt Strength controls how much the ATR regime affects the bands.
Visual controls: Transparency controls let you make the overlay more subtle or more prominent without changing calculations.
Why there is an Overlay and Oscillator version
This tool is intentionally split into two complementary indicators to preserve clarity and usability
Overlay version (this script): Focuses on price-level context, structure, wick pressure, lower-timeframe alignment, and event markers directly on the chart.
Oscillator companion version: Provides a dedicated pane for pressure balance, participation, and momentum acceleration metrics that benefit from oscillator-style visualisation.
Separating these views avoids overcrowding the price chart and allows each component to be interpreted more clearly in its appropriate context.
Disclaimer
This indicator is designed to visualise price–volume interaction, pressure, and wick behaviour.
It does not generate trade entries or exits signals and should be used as analytical context alongside a trader’s existing methodology and risk management only.
Next Candle PredictorAdvanced TradingView Indicator for Precise Buy and Sell Signals
Overview:
The Predicta Futures - Next Candle Predictor is a cutting-edge TradingView indicator designed to forecast the next candle's direction in futures and cryptocurrency markets. Leveraging a multi-indicator confluence strategy, this tool provides traders with actionable long and short prediction percentages, enhanced by dynamic ADX-based thresholds and visual projection candles. Ideal for scalping, day trading, or swing trading on platforms like MEXC or Binance futures, it combines Supertrend, MACD, RSI, Stochastic, ADX, and volume analysis to deliver high-probability buy and sell signals while minimizing false positives.
Key Features:
* Multi-Indicator Confluence Scoring: Integrates Supertrend for trend direction, EMAs (8, 21, 50) for alignment, MACD for momentum crossovers, RSI for overbought/oversold conditions, Stochastic for divergence detection, ADX for trend strength, and volume ratios for confirmation. A customizable confluence score (0-6) ensures signals meet user-defined criteria, reducing whipsaws in volatile markets.
* Dynamic Prediction Thresholds: ADX-driven adjustments lower the required prediction percentage (e.g., 60% in strong trends) for "PERFECT TIME" entries, adapting to market conditions like ranging or trending phases.
* Visual Analysis Table: A sleek, color-coded dashboard displays progress bars for each indicator, prediction percentages, and status (e.g., "PERFECT TIME" or "WAIT"). Supports long and short analyses with intuitive ASCII bars for quick scans.
* Projection Candles: Simulates potential next-candle outcomes with volatility-scaled (via Bollinger Bands width) green long and red short candles, aiding in visualizing price targets.
Buy/Sell Signals and Alerts: Generates labeled "BUY" and "SELL" arrows on EMA crossovers within confirmed trends, with separate alerts for basic signals and high-confluence "PERFECT TIME" opportunities.
* Customizable Inputs: Adjust ATR periods, Supertrend factors, minimum confluence scores, and volume ratios to tailor the indicator for stocks, forex, or crypto perpetual futures.
How It Works:
This TradingView script calculates long and short scores using weighted contributions from key indicators, normalizing them into prediction percentages. A confluence check—factoring trend, EMA alignment, MACD, Stochastic, volume, and ADX—triggers "PERFECT TIME" only when conditions align robustly. For example:
In a downtrend (Supertrend red), with bearish MACD and Stochastic, and sufficient volume, the indicator highlights short opportunities.
Dynamic thresholds ensure aggressive entries in strong trends (ADX >25) and conservative ones in weak trends.
Backtested for reliability, it excels in identifying reversals and continuations, making it a must-have for traders seeking an edge in futures trading strategies.
Usage Instructions:
1. Add the indicator to your TradingView chart.
2. Customize settings via the inputs panel (e.g., set minConfluence to 5 for stricter signals).
3. Monitor the analysis table for predictions and confluence scores.
4. Act on "BUY/SELL" labels or "PERFECT TIME" alerts, combining with your risk management.
5. Enable projection candles for visual forecasting of the next bar.
Compatible with all timeframes, from 1-minute scalping to daily swings. Note: This is not financial advice; always verify signals with additional analysis.
Rate and review if it boosts your trades!
Thank you!
Pivot Point Zones [JOAT]Pivot Point Zones — Multi-Formula Pivot Levels with ATR Zones
Pivot Point Zones calculates and displays traditional pivot points with five formula options, enhanced with ATR-based zones around each level. This creates more practical trading zones that account for price noise around key levels—because price rarely reacts at exact mathematical levels.
What Makes This Indicator Unique
Unlike basic pivot point indicators, Pivot Point Zones:
Offers five different pivot calculation formulas in one indicator
Creates ATR-based zones around each level for realistic reaction areas
Pulls data from higher timeframes automatically
Displays clean labels with exact price values
Provides a comprehensive dashboard with all levels
What This Indicator Does
Calculates pivot points using Standard, Fibonacci, Camarilla, Woodie, and more formulas
Draws horizontal lines at Pivot, R1-R3, and S1-S3 levels
Creates ATR-based zones around each level for realistic price reaction areas
Displays labels with exact price values
Updates automatically based on higher timeframe closes
Provides fills between zone boundaries for visual clarity
Pivot Formulas Explained
// Standard Pivot - Classic (H+L+C)/3 calculation
pp := (pivotHigh + pivotLow + pivotClose) / 3
r1 := 2 * pp - pivotLow
s1 := 2 * pp - pivotHigh
r2 := pp + pivotRange
s2 := pp - pivotRange
// Fibonacci Pivot - Uses Fib ratios for level spacing
r1 := pp + 0.382 * pivotRange
r2 := pp + 0.618 * pivotRange
r3 := pp + 1.0 * pivotRange
// Camarilla Pivot - Tighter levels for intraday
r1 := pivotClose + pivotRange * 1.1 / 12
r2 := pivotClose + pivotRange * 1.1 / 6
r3 := pivotClose + pivotRange * 1.1 / 4
// Woodie Pivot - Weights current close more heavily
pp := (pivotHigh + pivotLow + 2 * close) / 4
// TD Pivot - Conditional based on open/close relationship
x = pivotClose < pivotOpen ? pivotHigh + 2*pivotLow + pivotClose :
pivotClose > pivotOpen ? 2*pivotHigh + pivotLow + pivotClose :
pivotHigh + pivotLow + 2*pivotClose
pp := x / 4
Formula Characteristics
Standard — Classic pivot calculation. Balanced levels, good for swing trading.
Fibonacci — Uses 0.382, 0.618, and 1.0 ratios. Popular with Fibonacci traders.
Camarilla — Tighter levels derived from range. Excellent for intraday mean-reversion.
Woodie — Weights current close more heavily. More responsive to recent price action.
TD — Conditional calculation based on open/close relationship. Adapts to bar type.
Zone System
Each pivot level includes an ATR-based zone that provides a more realistic area for potential price reactions:
// ATR-based zone width calculation
float atr = ta.atr(atrLength)
float zoneHalf = atr * zoneWidth / 2
// Zone boundaries around each level
zoneUpper = level + zoneHalf
zoneLower = level - zoneHalf
This accounts for market noise and helps avoid false breakout signals at exact level prices.
Visual Features
Pivot Lines — Horizontal lines at each calculated level
Zone Fills — Transparent fills between zone boundaries
Level Labels — Labels showing level name and exact price (e.g., "PP 45123.50")
Color Coding :
- Yellow: Pivot Point (PP)
- Red gradient: Resistance levels (R1, R2, R3) - darker = further from PP
- Green gradient: Support levels (S1, S2, S3) - darker = further from PP
Color Scheme
Pivot Color — Default: #FFEB3B (yellow) — Central pivot point
Resistance Color — Default: #FF5252 (red) — R1, R2, R3 levels
Support Color — Default: #4CAF50 (green) — S1, S2, S3 levels
Zone Transparency — 85-90% transparent fills around levels
Dashboard Information
The on-chart table (bottom-right corner) displays:
Selected pivot type (Standard, Fibonacci, etc.)
R3, R2, R1 resistance levels with exact prices
PP (Pivot Point) highlighted
S1, S2, S3 support levels with exact prices
Inputs Overview
Pivot Settings:
Pivot Type — Formula selection (Standard, Fibonacci, Camarilla, Woodie, TD)
Pivot Timeframe — Higher timeframe for OHLC data (default: D = Daily)
ATR Length — Period for zone width calculation (default: 14)
Zone Width — ATR multiplier for zone size (default: 0.5)
Level Display:
Show Pivot (P) — Toggle central pivot line
Show R1/S1 — Toggle first resistance/support levels
Show R2/S2 — Toggle second resistance/support levels
Show R3/S3 — Toggle third resistance/support levels
Show Zones — Toggle ATR-based zone fills
Show Labels — Toggle price labels at each level
Visual Settings:
Pivot/Resistance/Support Colors — Customizable color scheme
Line Width — Thickness of level lines (default: 2)
Extend Lines Right — Project lines forward on chart
Show Dashboard — Toggle the information table
How to Use It
For Intraday Trading:
Use Daily pivots on intraday charts (15m, 1H)
Pivot point often acts as the day's "fair value" reference
Camarilla levels work well for intraday mean-reversion
R1/S1 are the most commonly tested levels
For Swing Trading:
Use Weekly pivots on daily charts
Standard or Fibonacci formulas work well
R2/S2 and R3/S3 become more relevant
Zone boundaries provide realistic entry/exit areas
For Support/Resistance:
R levels above price act as resistance targets
S levels below price act as support targets
Zone boundaries are more realistic than exact lines
Multiple formula confluence adds significance
Alerts Available
DPZ Cross Above Pivot — Price crosses above central pivot
DPZ Cross Below Pivot — Price crosses below central pivot
DPZ Cross Above R1/R2 — Price breaks resistance levels
DPZ Cross Below S1/S2 — Price breaks support levels
Best Practices
Match pivot timeframe to your trading style (Daily for intraday, Weekly for swing)
Use zones instead of exact levels for more realistic expectations
Camarilla is best for mean-reversion; Standard/Fibonacci for breakouts
Combine with other indicators for confirmation
— Made with passion by officialjackofalltrades
Volatility Squeeze Pro [JOAT]
Volatility Squeeze Pro — Advanced Volatility Compression Analysis System
This indicator addresses a specific analytical challenge in volatility analysis: how to identify periods when different volatility measurements show compression relationships that may indicate potential energy buildup in the market. It combines two distinct volatility calculation methods—standard deviation-based bands and ATR-based channels—with a momentum oscillator to provide comprehensive volatility state analysis.
Why This Combination Provides Unique Analytical Value
Traditional volatility indicators typically focus on single measurements, but markets exhibit different types of volatility that require different analytical approaches:
1. **Closing Price Volatility** (Standard Deviation): Measures how much closing prices deviate from their average
2. **Trading Range Volatility** (ATR): Measures the actual high-to-low trading ranges
3. **Directional Momentum**: Measures where price sits within its recent range
The problem with using these individually:
- Standard deviation alone doesn't account for intraday volatility
- ATR alone doesn't consider closing price clustering
- Momentum alone doesn't provide volatility context
- No single measurement captures the complete volatility picture
This indicator's originality lies in creating a comprehensive volatility analysis system that:
**Identifies Volatility Compression**: When closing price volatility contracts inside trading range volatility, it suggests potential energy buildup
**Provides Momentum Context**: Shows directional bias during compression periods
**Offers Multi-Dimensional Analysis**: Combines three different analytical approaches into one coherent system
**Delivers Real-Time Assessment**: Continuously monitors the relationship between different volatility types
Technical Innovation and Originality
While individual components (Bollinger Bands, Keltner Channels, Linear Regression) are standard, the innovation lies in:
1. **Volatility Relationship Detection**: The mathematical comparison between standard deviation bands and ATR channels creates a unique compression identification system
2. **Integrated Momentum Analysis**: Linear regression-based momentum calculation provides directional context specifically during volatility compression periods
3. **Multi-State Visualization**: The indicator provides clear visual encoding of different volatility states (compressed vs. normal) with momentum direction
4. **Adaptive Threshold System**: The squeeze detection automatically adapts to different instruments and timeframes without manual calibration
How the Components Work Together Analytically
The three components create a comprehensive volatility analysis framework:
**Standard Deviation Component**: Measures closing price dispersion around the mean
float bbBasis = ta.sma(close, bbLength)
float bbDev = bbMult * ta.stdev(close, bbLength)
float bbUpper = bbBasis + bbDev
float bbLower = bbBasis - bbDev
**ATR Channel Component**: Measures actual trading range volatility
float kcBasis = ta.ema(close, kcLength)
float kcRange = ta.atr(atrLength)
float kcUpper = kcBasis + kcRange * kcMult
float kcLower = kcBasis - kcRange * kcMult
**Squeeze Detection Logic**: Identifies when closing price volatility compresses within trading range volatility
bool squeezeOn = bbLower > kcLower and bbUpper < kcUpper
// This condition indicates closing prices are clustering more tightly
// than the typical trading range would suggest
**Momentum Context Component**: Provides directional bias during compression
float highestHigh = ta.highest(high, momLength)
float lowestLow = ta.lowest(low, momLength)
float momentum = ta.linreg(close - math.avg(highestHigh, lowestLow), momLength, 0)
float momSmooth = ta.sma(momentum, smoothLength)
The analytical relationship creates a system where:
- Squeeze detection identifies WHEN volatility compression occurs
- Momentum analysis shows WHERE price is positioned during compression
- Combined analysis provides both timing and directional context
How the Volatility Comparison Works
The indicator compares two volatility measurements:
Standard Deviation Bands
These measure how much closing prices deviate from their average. When prices cluster tightly around the average, the bands contract.
// Standard deviation bands calculation
float bbBasis = ta.sma(close, bbLength)
float bbDev = bbMult * ta.stdev(close, bbLength)
float bbUpper = bbBasis + bbDev
float bbLower = bbBasis - bbDev
ATR-Based Channels
These measure volatility using Average True Range—the typical distance between high and low prices. They respond to the actual trading range rather than closing price dispersion.
// ATR-based channels calculation
float kcBasis = ta.ema(close, kcLength)
float kcRange = ta.atr(atrLength)
float kcUpper = kcBasis + kcRange * kcMult
float kcLower = kcBasis - kcRange * kcMult
The Squeeze Condition
A "squeeze" is detected when the standard deviation bands are completely contained within the ATR channels:
// Squeeze detection
bool squeezeOn = bbLower > kcLower and bbUpper < kcUpper
This condition indicates that closing price volatility has compressed relative to the overall trading range.
The Momentum Component
The momentum oscillator measures where price sits relative to its recent high-low range, using linear regression for smoothing:
// Momentum calculation
float highestHigh = ta.highest(high, momLength)
float lowestLow = ta.lowest(low, momLength)
float momentum = ta.linreg(close - math.avg(highestHigh, lowestLow), momLength, 0)
float momSmooth = ta.sma(momentum, smoothLength)
Positive values indicate price is above the midpoint of its recent range; negative values indicate below.
Why Display Both Together
The squeeze detection shows WHEN volatility is compressed. The momentum reading shows the current directional bias of price within that compression. Together, they provide two pieces of information:
1. Is volatility currently compressed? (squeeze status)
2. Where is price leaning within the current range? (momentum)
These are observations about current conditions, not predictions about future movement.
Visual Elements
Momentum Histogram — Bars showing momentum value
- Green shades: Positive momentum (price above range midpoint)
- Red shades: Negative momentum (price below range midpoint)
- Brighter colors: Momentum increasing
- Faded colors: Momentum decreasing
Squeeze Dots — Circles on the zero line
- Red: Squeeze condition active
- Green: No squeeze condition
Release Markers — Triangle markers when squeeze condition ends
Dashboard — Current readings and status
Color Scheme
Squeeze Active — #FF5252 (red)
No Squeeze — #4CAF50 (green)
Momentum Positive — #00E676 / #81C784 (green shades)
Momentum Negative — #FF5252 / #E57373 (red shades)
Inputs
Standard Deviation Bands:
Length (default: 20)
Multiplier (default: 2.0)
ATR Channels:
Length (default: 20)
Multiplier (default: 1.5)
ATR Period (default: 10)
Momentum:
Length (default: 12)
Smoothing (default: 3)
How to Read the Display
Red dots indicate the squeeze condition is present
Green dots indicate normal volatility relationship
Histogram direction shows current momentum bias
Histogram color brightness shows whether momentum is increasing or decreasing
Alerts
Squeeze condition started
Squeeze condition ended
Squeeze ended with positive momentum
Squeeze ended with negative momentum
Extended squeeze (8+ bars)
Important Limitations and Realistic Expectations
Volatility compression detection is a mathematical relationship between calculations—it does not predict future price movements
Many compression periods do not result in significant price expansion or directional moves
Momentum direction during compression does not reliably indicate future breakout direction
This indicator analyzes current and historical volatility conditions only—it cannot predict future volatility
False signals are common—not every squeeze leads to tradeable price movement
Different parameter settings will produce different compression detection sensitivity
Market conditions, news events, and fundamental factors often override technical volatility patterns
No volatility indicator can predict the timing, direction, or magnitude of future price movements
This tool should be used as one component of comprehensive market analysis
Appropriate Use Cases
This indicator is designed for:
- Volatility state analysis and monitoring
- Educational study of volatility relationships
- Multi-dimensional volatility assessment
- Supplementary analysis alongside other technical tools
- Understanding market compression/expansion cycles
This indicator is NOT designed for:
- Standalone trading signal generation
- Guaranteed breakout prediction
- Automated trading system triggers
- Market timing precision
- Replacement of fundamental analysis
Understanding Volatility Analysis Limitations
Volatility analysis, while useful for understanding market conditions, has inherent limitations:
- Past volatility patterns do not guarantee future patterns
- Compression periods can extend much longer than expected
- Expansion periods may be brief and insufficient for trading
- External factors (news, fundamentals) often override technical patterns
- Different markets and timeframes exhibit different volatility characteristics
— Made with passion by officialjackofalltrades
Trinity Inside & 3-Candle Sweep Breakout with TargetsTrinity Intraday Inside Candle / 3-Candle Sweep + Breakout with Inside Bar Indicator
This Pine Script indicator is built specifically for **intraday trading on the 15-minute timeframe**, but can be used on any timeframes.
It identifies two closely related price action setups: the classic **Inside Candle Breakout** and the higher-probability **3-Candle Liquidity Sweep** (also called a reversal or false breakout setup). Both are filtered by Previous Day High/Low for directional bias, and the entire system is highly visual with customizable lines, labels, highlights, signals, and projected targets.
#### Core Functionality
When an **inside candle** forms (current candle’s high is below the previous candle’s high AND its low is above the previous candle’s low), the indicator activates the setup visualization. The previous candle becomes the **mother candle**, and its high and low define the consolidation range.
- **Inside Bar Highlight**: The current inside candle is filled with a solid color (default bright yellow) so you can instantly identify it on the chart.
- **Mother Candle Range Visualization**:
- A green dotted line with label “Range High - ” marks the mother candle’s high (the upside breakout level).
- A red dotted line with label “Range Low - ” marks the mother candle’s low (the downside breakout level).
These lines extend to the right, making it very clear what levels need to be broken for a valid signal.
- **Signals**:
- **Inside Candle Breakout**: Triggers when the candle after the inside bar closes decisively above the mother high (bullish) or below the mother low (bearish). Shows blue arrows for long, fuchsia arrows for short, plus clear labels (“LONG Inside Breakout” or “SHORT Inside Breakout”).
- **3-Candle Liquidity Sweep**: A more refined reversal setup. After the mother + inside, the third candle sweeps beyond the mother low (for longs) or high (for shorts) to grab liquidity, but closes back inside the mother range without breaking the opposite inside extreme. Shows large green/red triangles with labels (“LONG 3-Candle Sweep” or “SHORT 3-Candle Sweep”).
- **Directional Filter (PDH/PDL)**:
- Long signals only appear when price is above Previous Day High (PDH).
- Short signals only appear when price is below Previous Day Low (PDL).
This keeps you trading with intraday momentum rather than against it.
- **Targets**: Automatically plotted only on Inside Breakout signals (can be extended to sweeps if desired). Uses the mother candle range size multiplied by two customizable risk-reward factors:
- T1 = entry + (range × 0.56) for longs (or minus for shorts) – default partial target.
- T2 = entry + (range × 0.84) for longs (or minus for shorts) – default full target.
Shows dotted lines extending right with labels like “T1 - 208.20 (0.56) points” in blue for longs or orange for shorts.
- **Additional Elements**:
- Previous Day High/Low dashed lines with moving labels (“PDH” and “PDL”) that follow the price action.
- Optional 20-period and 50-period EMAs for trend context.
- All lines and labels clear automatically once a signal triggers to keep the chart clean.
#### How to Use It
1. Apply the indicator to a **15-minute chart** of any instrument (best on liquid stocks, indices, or futures).
2. Wait for an **inside bar** to form – you’ll see it highlighted in yellow and the green/red Range High/Low lines + labels appear.
3. Monitor for a close **above Range High** (potential long) or **below Range Low** (potential short), respecting the PDH/PDL filter.
4. If the third candle sweeps liquidity but reverses properly, you get the higher-conviction 3-candle sweep signal.
5. Enter on the close of the signal candle or a small retest.
6. Stop loss typically just beyond the swept extreme or mother range opposite side.
7. Take partial profits at T1 and let the rest run to T2 (or trail).
8. Use alerts (built-in alertconditions) for all four signal types.
#### All Settings (Customizable in TradingView Inputs)
- **Visibility toggles**: Turn on/off PDH/PDL lines, moving PDH/PDL labels, 20/50 EMAs, signals, inside breakout signals, targets, mother range lines/labels, and inside bar highlight.
- **Filters**: Toggle the PDH/PDL requirement for longs/shorts and separately for breakout signals.
- **Colors**: Every single element has its own color input – PDH/PDL lines & labels, EMAs, sweep signals (shapes & labels), inside breakout signals (shapes & labels), target lines & labels (long/short separately), mother range high/low lines & labels, and inside bar fill color.
- **Risk-Reward Multipliers**: Adjust the T1 multiplier (default 0.56) and T2 multiplier (default 0.84) to match your preferred measured-move projection.
The result is a clean, professional, all-in-one intraday tool that clearly shows consolidation, breakout levels, liquidity grabs, directional bias, and projected rewards, and helps you spot high-probability inside bar continuations or reversals quickly.
Note:
You can use this indicator with **either standard (normal) candlesticks or Heikin Ashi candles**, but **standard candles are strongly recommended** for the most accurate and reliable signals.
### Why Standard Candles Are Preferred
The entire logic of the indicator — inside candle detection, 3-candle liquidity sweep validation, breakout closes, and mother candle range measurement — is based on **actual price action** using real open, high, low, and close (OHLC) values.
- **Standard candles** show the true highs and lows where liquidity (stop-loss orders) actually sits, and where real breaks/sweeps occur.
- The setups (especially the liquidity sweep) rely on price **sweeping a prior low/high but closing back inside** — this is measured using the real candle extremes.
### What Happens with Heikin Ashi
Heikin Ashi candles are **averaged/smoothened** versions of price:
- Their highs and lows are calculated differently (not the true session extremes).
- Wicks are often shorter or artificial, and closes are averaged.
This can cause:
- False or missed inside candle detections.
- Incorrect range high/low measurements (the mother candle range won't match real price).
- Sweeps or breakouts that appear on Heikin Ashi but didn't actually happen in real price (or vice versa).
- Targets (T1/T2) projected from a distorted range size.
In short, Heikin Ashi will make the indicator **less accurate** and potentially generate misleading signals.
### Recommendation
- Use **standard candlesticks** on your 15-minute chart for this indicator.
- If you like the smoother look of Heikin Ashi for trend filtering, you can overlay it on a separate panel or use the built-in 20/50 EMAs for trend context instead.
Always backtest on your instruments and use proper risk management. This is not financial advice. Enjoy trading with it!
Swing Trade System# Swing Trade Strategy - Complete Guide
## Overview
This is a comprehensive swing trading indicator for TradingView that identifies high-probability trend continuation setups using multi-timeframe analysis, pullback patterns, and momentum confirmation. The strategy combines technical indicators with risk management tools to help traders capture swing moves with defined risk-reward parameters.
## What It Does
The indicator identifies two types of signals:
1. **Base Signals** (small markers) - Initial setup detection with basic criteria met
2. **High Confidence (HC) Signals** (large markers) - Fully confirmed setups with all filters passed, including optional higher timeframe confirmation
Once a HC signal triggers, the indicator automatically plots:
- Dynamic stop loss levels (trailing, break-even, or static)
- Partial take profit (TP1) at 1R
- Final take profit (TP2) at your chosen risk-reward multiple
- Real-time R-multiple tracking
- Confluence dashboard showing all conditions
## How It Works
### Core Signal Logic
The strategy identifies pullback-to-trend entries using this sequence:
**For LONG signals:**
1. **Trend Filter**: Fast EMA (20) above Slow EMA (50) = uptrend confirmed
2. **Pullback**: Previous candle closed between the two EMAs (pulled back but didn't break structure)
3. **RSI Swing Zone**: RSI between 40-60 (not overbought/oversold, just resting)
4. **Reclaim**: Current candle crosses back above Fast EMA (momentum returning)
5. **Volume Spike** (optional): Current volume > 1.5x the 20-period average
6. **HTF Confirmation** (optional): Daily timeframe shows: price > 50 EMA, RSI > 50, and rising momentum
**For SHORT signals:**
The same logic applies in reverse (downtrend, pullback above fast EMA, reclaim below, etc.)
### Risk Management Features
**Stop Loss Placement:**
- Initial stop: Swing low/high over the last 10 bars
- Can upgrade to ATR trailing stop (2x ATR below/above price)
- Can move to break-even after reaching 1R profit
**Take Profit Levels:**
- TP1: 1R (optional partial exit point)
- TP2: 2R default (adjustable to your preference)
**Position Monitoring:**
- Live R-multiple display shows current profit/loss in risk units
- Dynamic stop updates visually on chart
- Color-coded confidence score (0-100%) based on confluence of factors
## Best Way to Use These Signals
### 1. **Wait for High Confidence Signals Only**
- Don't trade every base signal (small markers)
- Only take trades when you see the large "HC L" or "HC S" markers
- These have passed all your filters including higher timeframe alignment
### 2. **Ideal Entry Timing**
**On the Signal Candle:**
- Enter at market close when HC signal fires
- This ensures all conditions were met by candle close
- Your stop and targets are calculated from this close price
**On the Next Candle (more conservative):**
- Wait for the candle after the signal
- Enter if price continues in the signal direction
- Helps avoid false breakouts but may miss some moves
### 3. **Position Sizing**
Use the automatic risk calculation:
- Your risk = Entry price - Stop loss
- Position size = (Account Risk %) ÷ (Entry - Stop)
- Example: Risk $100 on account, Entry $50, Stop $48 = $100 ÷ $2 = 50 shares
### 4. **Trade Management**
**Scaling Out:**
- Exit 50% position at TP1 (1R) to lock profits
- Move stop to break-even on remaining position
- Let rest run to TP2 (2R) or trail with ATR stop
**Manual Override:**
- If price action deteriorates (breaks below both EMAs, RSI divergence), consider early exit
- The dynamic stop is a guide, not gospel—trust price action
## Breakout vs. Retest Strategy
### Understanding Breakout Types
**1. First Touch Breakout (Aggressive)**
- HC signal fires on first touch of fast EMA after pullback
- Higher win rate if volume is strong
- Best in strongly trending markets
- Risk: Could be a false breakout if momentum weak
**2. Retest Entry (Conservative)**
- Wait for price to pull back *again* after initial HC signal
- Enter when price retests the fast EMA a second time
- Look for: lower volume on retest, RSI still in swing zone, fast EMA still above slow EMA
- Lower risk but may miss some fast moves
### Which Breakouts to Take
**Take the FIRST breakout (signal candle) when:**
- ✅ Higher timeframe is strongly aligned (HTF confirmation on)
- ✅ Volume spike is present (>1.5x average)
- ✅ Confidence score ≥70%
- ✅ Trend is fresh (EMAs recently crossed, not extended)
- ✅ Price closed strongly above/below fast EMA (not barely crossed)
- ✅ No major resistance/support nearby
**Wait for a RETEST when:**
- ⚠️ No volume confirmation on first signal
- ⚠️ Confidence score 40-69% (moderate)
- ⚠️ Price barely crossed the fast EMA (weak momentum)
- ⚠️ Trend is extended (price far from slow EMA)
- ⚠️ Major resistance/support level just ahead
- ⚠️ Late in the trading day/week (could see pullback)
### How to Trade Retests
**Setup:**
1. HC signal fires but you decide to wait
2. Price pulls back toward fast EMA over next 1-3 candles
3. Watch for second bounce at the fast EMA
**Confirmation for Retest Entry:**
- Price holds above fast EMA (for longs) without closing below it
- Volume decreases on the pullback (profit-taking, not reversal)
- RSI stays above 50 for longs (or below 50 for shorts)
- Bullish candlestick pattern forms (hammer, engulfing, etc.)
- Slow EMA is still providing support/resistance
**Retest Entry Trigger:**
- Enter when price crosses back in signal direction with momentum
- Or enter with a limit order at the fast EMA
- Use same stop loss as original signal (swing low/high)
- Targets remain the same (measured from your new entry)
## Dashboard Reference
The top confluence table shows real-time status:
- **Trend**: Current trend direction based on EMAs
- **HTF**: Higher timeframe alignment (if enabled)
- **RSI Zone**: Whether RSI is in the 40-60 swing zone
- **Volume**: Volume spike present or not
- **Signal**: Current signal status (HC LONG/SHORT or None)
- **R Risk**: Current profit/loss in R-multiples
- **Stop**: Current stop loss price
- **TP1/TP2**: Status of take profit levels
- **Conf %**: Overall confidence score (70%+ = high probability)
## Alert Setup
The indicator includes 8 alert types:
1. **HC LONG/SHORT ENTRY** - Main trade signals
2. **LONG/SHORT TP1 Reached** - Partial profit alerts
3. **LONG/SHORT Final TP Reached** - Full target hit
4. **LONG/SHORT Stop Hit** - Exit alerts
Set up alerts in TradingView:
- Click "Create Alert" on the indicator
- Choose the specific alert condition
- Set to "Once Per Bar Close" to avoid false alerts
- Configure notification method (app, email, webhook, etc.)
## Recommended Settings
**For Stock Swing Trading (4H-Daily):**
- Fast EMA: 20 | Slow EMA: 50
- Swing Lookback: 10
- RSI Zone: 40-60
- HTF: Daily (if trading 4H charts)
- Risk-Reward: 2R minimum
**For Crypto (faster moves):**
- Fast EMA: 12 | Slow EMA: 26
- Swing Lookback: 7
- RSI Zone: 35-65
- Volume Spike: ON
- Risk-Reward: 1.5-2R
**For Conservative Trading:**
- Enable HTF Confirmation
- Enable Volume Spike requirement
- Use Break-even stop (move after 1R)
- Only trade when Confidence ≥70%
- Wait for retests on marginal setups
## Risk Warning
This indicator is a tool, not a guarantee. Always:
- Use proper position sizing (risk 1-2% per trade)
- Respect the stop losses
- Consider market context (news, earnings, major levels)
- Backtest on your instruments before live trading
- Never override risk management for FOMO
The best signals combine technical confluence with good market conditions and disciplined execution.
Market Acceptance Envelope [Interakktive]The Market Acceptance Envelope (MAE) is a diagnostic tool that shows where price statistically belongs — not where it might go. Unlike traditional bands that expand with volatility, MAE expands with acceptance: regions where price rotates comfortably, efficiency drops, and the market agrees on fair value.
This is the anti-Bollinger thesis: bands should represent where price IS accepted, not where it MIGHT reach based on standard deviation.
█ USAGE
The filled corridor represents the current acceptance zone — where price has demonstrated rotational behavior with low directional efficiency. When price is inside the corridor, it's "home." When outside, it's exploring territory the market hasn't yet accepted.
For discretionary traders, MAE provides instant context: "Is price where it belongs, or is it extended?"
For systematic traders, the exported values (confidence, asymmetry, position) can inform position sizing and filter logic.
█ ACCEPTANCE CENTROID
Unlike traditional bands centered on a moving average, MAE uses an Acceptance Centroid — a time-weighted price level where acceptance behavior concentrates. The centroid is calculated by weighting price by:
• Inverse efficiency (low efficiency = high acceptance)
• Volatility stability (stable vol = higher weight)
• Dwell factor (time spent near level)
This means the centroid drifts toward where price actually rotates, not simply where it averages.
█ ASYMMETRIC BOUNDARIES
MAE calculates upper and lower boundaries independently. Markets rarely treat up and down equally — during uptrends, the upper boundary may be wider (more accepted upside exploration), while the lower boundary stays tight (quick rejection of dips).
This asymmetry is visible on the chart and exported as a metric (-1 to +1).
█ CONFIDENCE-BASED VISIBILITY
The corridor's opacity reflects acceptance confidence:
• High confidence → clearly visible corridor (price is in accepted rotation)
• Low confidence → faded corridor (trending/directional market, acceptance not established)
When the corridor fades, it's telling you: "Acceptance hasn't been earned here yet."
█ WHAT THIS INDICATOR IS
• A diagnostic acceptance envelope showing where price statistically belongs
• Asymmetric by design — upper and lower calculated independently
• Confidence-weighted visibility — fades when acceptance is not earned
• Non-repainting — uses closed-bar data only
█ WHAT THIS INDICATOR IS NOT
• NOT Bollinger Bands (no standard deviation around a mean)
• NOT Keltner Channels (no ATR-scaled envelope)
• NOT a signal generator — no touches = signals philosophy
• NO arrows, NO entries/exits, NO buy/sell recommendations
█ HOW IT WORKS
MAE uses an acceptance-weighted calculation approach:
1. ACCEPTANCE WEIGHT
Each bar receives a weight based on:
• Efficiency: (1 - efficiency) — low efficiency = rotational = high acceptance
• Volatility Stability: stable vol environment = higher weight
• Dwell Factor: price staying near central tendency = higher weight
2. ACCEPTANCE CENTROID
Weighted average of price using acceptance weights:
centroid = Σ(price × weight) / Σ(weight)
Smoothed adaptively — faster during drift, slower when stable.
3. ASYMMETRIC BOUNDARIES
Upper and lower distances calculated separately:
• rngUp = acceptance-weighted average of (price - centroid) when price > centroid
• rngDn = acceptance-weighted average of (centroid - price) when price < centroid
4. CONFIDENCE SCORE
Composite of average acceptance weight, volatility stability, and centroid stability.
Maps to corridor opacity: high confidence = visible, low confidence = faded.
█ SETTINGS
Market Acceptance Envelope — Core
• Acceptance Lookback (20): Bars to evaluate for acceptance conditions. Higher = smoother, slower response.
• Preset (Swing): Scalper = tight/fast, Swing = balanced, Position = wide/stable.
• Envelope Sensitivity (1.0): Width multiplier. Higher = wider corridor.
Market Acceptance Envelope — Visuals
• Show Corridor (true): Display the acceptance corridor.
• Show Centroid (false): Display the acceptance centroid line.
Market Acceptance Envelope — Data Window
• Show Data Window Values (false): Export MAE metrics for external use.
█ EXPORTED VALUES
When Data Window is enabled:
• mae_upper: Upper boundary value
• mae_lower: Lower boundary value
• mae_centroid: Acceptance centroid value
• mae_width: Corridor width (upper - lower)
• mae_asymmetry: Asymmetry ratio (-1 to +1, negative = lower wider)
• mae_confidence: Acceptance confidence (0-100)
• mae_position: Price position (-1 = below, 0 = inside, +1 = above)
█ SUITABLE MARKETS
Works on all markets: Stocks, Futures, Forex, Crypto, Indices.
Works on all timeframes. Higher timeframes show more stable acceptance zones.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management. This is a diagnostic tool — it provides context, not signals.
Supply & Demand Zones (Volume-Based)📌 Supply & Demand Zones (Volume-Based) — Indicator Description
Overview
This indicator visually highlights potential supply and demand price zones using historical candle structure combined with relative volume behavior.The zones are intended to help users observe areas of increased market activity where price has previously reacted. This tool is designed for visual analysis only.
How the Zones Are Identified
Demand zones are highlighted when price shows a strong bullish reaction following a bearish candle.Supply zones are highlighted when price shows a strong bearish reaction following a bullish candle.Relative volume is used as context, not as a predictive input, to classify zones into higher or lower activity levels.Zones automatically invalidate when price structurally breaks them.
About the Percentage Display
The percentage shown on a zone represents normalized relative volume strength at the time the zone was formed.This value is not a probability, not a success rate, and not a performance metric.It should not be interpreted as a prediction or trading signal.Percentages are displayed only for active zones and are removed once a zone is invalidated.
How This Indicator Is Intended to Be Used
As a visual reference tool for identifying historical supply and demand areas.As a contextual overlay alongside other forms of technical analysis.To observe how price behaves when revisiting previously active zones.This indicator does not suggest trade direction, entry timing, or exit levels.
Important Notes & Limitations
All zones are derived from historical price and volume data.Market conditions change, and historical zones may lose relevance over time.No trading decisions should be made based solely on this indicator.Users are encouraged to apply their own analysis and risk management.
Disclaimer
This indicator is provided for educational and informational purposes only.It does not constitute trading, investment, or financial advice.The author assumes no responsibility for decisions made using this tool.
Santhosh 3EMA Strict Sequential SignalsSanthosh 3EMA Strict Sequential Signals. Created with strict conditions to avoid wrong signals
Intraday Market Context (Trend & Risk)📌 Intraday Market Context (Trend & Risk)
Overview
Intraday Market Context (Trend & Risk) is a non-signal, informational indicator designed to provide a high-level view of current market conditions. Instead of generating buy or sell signals, this tool helps traders understand what kind of market they are operating in and how cautious or aggressive they should be.The output is shown as a clean, fixed on-chart box with plain-language guidance.
What This Indicator Shows
The indicator displays three simple elements:
1️⃣ Market Type
Identifies the current market environment:
Trending Market
Sideways Market
Expanding / Breakout Market
Unclear Market
2️⃣ Risk Mode
Provides a relative assessment of market risk:
Normal Risk
Medium Risk
High Risk
This is contextual information only and does not imply trade direction.
3️⃣ What to Do
Plain-language behavioral guidance, not trade instructions:
Trend is Friend
Range is Friend
Wait for Pullback
Stay Out
These phrases are meant to guide trader behavior, not trigger trades.
How to Use
Use this indicator as a market context filter, not as a trading signal
Decide when to trade, trade cautiously, or stay out
Use your own execution tools (price action, EMAs, VWAP, structure, etc.) for entries and exits
Respect “Stay Out” conditions to avoid over-trading in unfavorable environments
This indicator works best as a decision-support overlay, especially for intraday traders.
What This Indicator Is NOT
❌ Not a buy/sell signal
❌ Not a trading strategy
❌ Not predictive
❌ Not a replacement for risk management
Important Disclaimer
This indicator is provided for educational and informational purposes only.It does not constitute financial advice, investment advice, or a recommendation to trade any instrument.Trading involves risk, and losses can exceed expectations. Always use proper risk management and make your own trading decisions.






















