Hyper SAR Reactor Trend StrategyHyperSAR Reactor Adaptive PSAR Strategy
Summary
Adaptive Parabolic SAR strategy for liquid stocks, ETFs, futures, and crypto across intraday to daily timeframes. It acts only when an adaptive trail flips and confirmation gates agree. Originality comes from a logistic boost of the SAR acceleration using drift versus ATR, plus ATR hysteresis, inertia on the trail, and a bear-only gate for shorts. Add to a clean chart and run on bar close for conservative alerts.
Scope and intent
• Markets: large cap equities and ETFs, index futures, major FX, liquid crypto
• Timeframes: one minute to daily
• Default demo: BTC on 60 minute
• Purpose: faster yet calmer PSAR that resists chop and improves short discipline
• Limits: this is a strategy that places simulated orders on standard candles
Originality and usefulness
• Novel fusion: PSAR AF is boosted by a logistic function of normalized drift, trail is monotone with inertia, entries use ATR buffers and optional cooldown, shorts are allowed only in a bear bias
• Addresses false flips in low volatility and weak downtrends
• All controls are exposed in Inputs for testability
• Yardstick: ATR normalizes drift so settings port across symbols
• Open source. No links. No solicitation
Method overview
Components
• Adaptive AF: base step plus boost factor times logistic strength
• Trail inertia: one sided blend that keeps the SAR monotone
• Flip hysteresis: price must clear SAR by a buffer times ATR
• Volatility gate: ATR over its mean must exceed a ratio
• Bear bias for shorts: price below EMA of length 91 with negative slope window 54
• Cooldown bars optional after any entry
• Visual SAR smoothing is cosmetic and does not drive orders
Fusion rule
Entry requires the internal flip plus all enabled gates. No weighted scores.
Signal rule
• Long when trend flips up and close is above SAR plus buffer times ATR and gates pass
• Short when trend flips down and close is below SAR minus buffer times ATR and gates pass
• Exit uses SAR as stop and optional ATR take profit per side
Inputs with guidance
Reactor Engine
• Start AF 0.02. Lower slows new trends. Higher reacts quicker
• Max AF 1. Typical 0.2 to 1. Caps acceleration
• Base step 0.04. Typical 0.01 to 0.08. Raises speed in trends
• Strength window 18. Typical 10 to 40. Drift estimation window
• ATR length 16. Typical 10 to 30. Volatility unit
• Strength gain 4.5. Typical 2 to 6. Steepness of logistic
• Strength center 0.45. Typical 0.3 to 0.8. Midpoint of logistic
• Boost factor 0.03. Typical 0.01 to 0.08. Adds to step when strength rises
• AF smoothing 0.50. Typical 0.2 to 0.7. Adds inertia to AF growth
• Trail smoothing 0.35. Typical 0.15 to 0.45. Adds inertia to the trail
• Allow Long, Allow Short toggles
Trade Filters
• Flip confirm buffer ATR 0.50. Typical 0.2 to 0.8. Raise to cut flips
• Cooldown bars after entry 0. Typical 0 to 8. Blocks re entry for N bars
• Vol gate length 30 and Vol gate ratio 1. Raise ratio to trade only in active regimes
• Gate shorts by bear regime ON. Bear bias window 54 and Bias MA length 91 tune strictness
Risk
• TP long ATR 1.0. Set to zero to disable
• TP short ATR 0.0. Set to 0.8 to 1.2 for quicker shorts
Usage recipes
Intraday trend focus
Confirm buffer 0.35 to 0.5. Cooldown 2 to 4. Vol gate ratio 1.1. Shorts gated by bear regime.
Intraday mean reversion focus
Confirm buffer 0.6 to 0.8. Cooldown 4 to 6. Lower boost factor. Leave shorts gated.
Swing continuation
Strength window 24 to 34. ATR length 20 to 30. Confirm buffer 0.4 to 0.6. Use daily or four hour charts.
Properties visible in this publication
Initial capital 10000. Base currency USD. Order size Percent of equity 3. Pyramiding 0. Commission 0.05 percent. Slippage 5 ticks. Process orders on close OFF. Bar magnifier OFF. Recalculate after order filled OFF. Calc on every tick OFF. No security calls.
Realism and responsible publication
No performance claims. Past results never guarantee future outcomes. Shapes can move while a bar forms and settle on close. Strategies execute only on standard candles.
Honest limitations and failure modes
High impact events and thin books can void assumptions. Gap heavy symbols may prefer longer ATR. Very quiet regimes can reduce contrast and invite false flips.
Open source reuse and credits
Public domain building blocks used: PSAR concept and ATR. Implementation and fusion are original. No borrowed code from other authors.
Strategy notice
Orders are simulated on standard candles. No lookahead.
Entries and exits
Long: flip up plus ATR buffer and all gates true
Short: flip down plus ATR buffer and gates true with bear bias when enabled
Exit: SAR stop per side, optional ATR take profit, optional cooldown after entry
Tie handling: stop first if both stop and target could fill in one bar
Phân tích Xu hướng
ICT Liquidity Sweep Asia/London 1 Trade per High & Low🧠 ICT Liquidity Sweep Asia/London — 1 Trade per High & Low
This strategy is inspired by the ICT (Inner Circle Trader) concepts of liquidity sweeps and market structure, focusing on the Asia and London sessions.
It automatically identifies liquidity grabs (sweeps) above or below key session highs/lows and enters trades with a fixed risk/reward ratio (RR).
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
⚙️ Core Logic
-Asia Session: 8:00 PM – 11:59 PM (New York time)
-London Session: 2:00 AM – 5:00 AM (New York time)
-The script marks the Asia High/Low and London High/Low ranges for each day.
-When the market sweeps above a session high → potential Short setup
-When the market sweeps below a session low → potential Long setup
-A trade is triggered when the confirmation candle closes in the opposite direction of the sweep (bearish after a high sweep, bullish after a low sweep).
-Only one trade per sweep type (1 per High, 1 per Low) is allowed per session.
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
📈 Risk Management
-Configurable Risk/Reward Target (default = 2:1)
-Configurable Position Size (number of contracts)
-Each trade uses a fixed Stop Loss (beyond the wick of the sweep) and a Take Profit calculated from the RR setting.
-All trades are automatically logged in the Strategy Tester with performance metrics.
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
💡 Features
✅ Visual session highlighting (Asia = Aqua, London = Orange)
✅ Automatic liquidity line plotting (session highs/lows)
✅ Entry & exit labels (optional visual display)
✅ Customizable RR and contract size
✅ Works on any instrument (ideal for indices, futures, or forex)
✅ Compatible with all timeframes (optimized for 1M–15M)
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
⚠️ Notes
-Best used on New York time-based charts.
-Designed for educational and backtesting purposes — not financial advice.
-Use as a foundation for further optimization (e.g., SMT confirmation, FVG filter, or time-based restrictions).
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
🧩 Recommended Use
Pair this with:
-ICT’s concepts like CISD (Change in State of Delivery) and FVGs (Fair Value Gaps)
-Higher timeframe liquidity maps
-Session bias or daily narrative filters
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
Author: jygirouard
Strategy Version: 1.3
Type: ICT Liquidity Sweep Automation
Timezone: America/New_York
Volume Surprise [LuxAlgo]The Volume Surprise tool displays the trading volume alongside the expected volume at that time, allowing users to spot unexpected trading activity on the chart easily.
The tool includes an extrapolation of the estimated volume for future periods, allowing forecasting future trading activity.
🔶 USAGE
We define Volume Surprise as a situation where the actual trading volume deviates significantly from its expected value at a given time.
Being able to determine if trading activity is higher or lower than expected allows us to precisely gauge the interest of market participants in specific trends.
A histogram constructed from the difference between the volume and expected volume is provided to easily highlight the difference between the two and may be used as a standalone.
The tool can also help quantify the impact of specific market events, such as news about an instrument. For example, an important announcement leading to volume below expectations might be a sign of market participants underestimating the impact of the announcement.
Like in the example above, it is possible to observe cases where the volume significantly differs from the expected one, which might be interpreted as an anomaly leading to a correction.
🔹 Detecting Rare Trading Activity
Expected volume is defined as the mean (or median if we want to limit the impact of outliers) of the volume grouped at a specific point in time. This value depends on grouping volume based on periods, which can be user-defined.
However, it is possible to adjust the indicator to overestimate/underestimate expected volume, allowing for highlighting excessively high or low volume at specific times.
In order to do this, select "Percentiles" as the summary method, and change the percentiles value to a value that is close to 100 (overestimate expected volume) or to 0 (underestimate expected volume).
In the example above, we are only interested in detecting volume that is excessively high, we use the 95th percentile to do so, effectively highlighting when volume is higher than 95% of the volumes recorded at that time.
🔶 DETAILS
🔹 Choosing the Right Periods
Our expected volume value depends on grouping volume based on periods, which can be user-defined.
For example, if only the hourly period is selected, volumes are grouped by their respective hours. As such, to get the expected volume for the hour 7 PM, we collect and group the historical volumes that occurred at 7 PM and average them to get our expected value at that time.
Users are not limited to selecting a single period, and can group volume using a combination of all the available periods.
Do note that when on lower timeframes, only having higher periods will lead to less precise expected values. Enabling periods that are too low might prevent grouping. Finally, enabling a lot of periods will, on the other hand, lead to a lot of groups, preventing the ability to get effective expected values.
In order to avoid changing periods by navigating across multiple timeframes, an "Auto Selection" setting is provided.
🔹 Group Length
The length setting allows controlling the maximum size of a volume group. Using higher lengths will provide an expected value on more historical data, further highlighting recurring patterns.
🔹 Recommended Assets
Obtaining the expected volume for a specific period (time of the day, day of the week, quarter, etc) is most effective when on assets showing higher signs of periodicity in their trading activity.
This is visible on stocks, futures, and forex pairs, which tend to have a defined, recognizable interval with usually higher trading activity.
Assets such as cryptocurrencies will usually not have a clearly defined periodic trading activity, which lowers the validity of forecasts produced by the tool, as well as any conclusions originating from the volume to expected volume comparisons.
🔶 SETTINGS
Length: Maximum number of records in a volume group for a specific period. Older values are discarded.
Smooth: Period of a SMA used to smooth volume. The smoothing affects the expected value.
🔹 Periods
Auto Selection: Automatically choose a practical combination of periods based on the chart timeframe.
Custom periods can be used if disabling "Auto Selection". Available periods include:
- Minutes
- Hours
- Days (can be: Day of Week, Day of Month, Day of Year)
- Months
- Quarters
🔹 Summary
Method: Method used to obtain the expected value. Options include Mean (default) or Percentile.
Percentile: Percentile number used if "Method" is set to "Percentile". A value of 50 will effectively use a median for the expected value.
🔹 Forecast
Forecast Window: Number of bars ahead for which the expected volume is predicted.
Style: Style settings of the forecast.
Pivot Regime Anchored VWAP [CHE] Pivot Regime Anchored VWAP — Detects body-based pivot regimes to classify swing highs and lows, anchoring volume-weighted average price lines directly at higher highs and lower lows for adaptive reference levels.
Summary
This indicator identifies shifts between top and bottom regimes through breakouts in candle body highs and lows, labeling swing points as higher highs, lower highs, lower lows, or higher lows. It then draws anchored volume-weighted average price lines starting from the most recent higher high and lower low, providing dynamic support and resistance that evolve with volume flow. These anchored lines differ from standard volume-weighted averages by resetting only at confirmed swing extremes, reducing noise in ranging markets while highlighting momentum shifts in trends.
Motivation: Why this design?
Traders often struggle with static reference lines that fail to adapt to changing market structures, leading to false breaks in volatile conditions or missed continuations in trends. By anchoring volume-weighted average price calculations to body pivot regimes—specifically at higher highs for resistance and lower lows for support—this design creates reference levels tied directly to price structure extremes. This approach addresses the problem of generic moving averages lagging behind swing confirmations, offering a more context-aware tool for intraday or swing trading.
What’s different vs. standard approaches?
- Baseline reference: Traditional volume-weighted average price indicators compute a running total from session start or fixed periods, often ignoring price structure.
- Architecture differences:
- Regime detection via body breakout logic switches between high and low focus dynamically.
- Anchoring limited to confirmed higher highs and lower lows, with historical recalculation for accurate line drawing.
- Polyline rendering rebuilds only on the last bar to manage performance.
- Practical effect: Charts show fewer, more meaningful lines that start at swing points, making it easier to spot confluences with structure breaks rather than cluttered overlays from continuous calculations.
How it works (technical)
The indicator first calculates the maximum and minimum of each candle's open and close to define body highs and lows. It then scans a lookback window for the highest body high and lowest body low. A top regime triggers when the body high from the lookback period exceeds the window's highest, and a bottom regime when the body low falls below the window's lowest. These regime shifts confirm pivots only when crossing from one state to the other.
For top pivots, it compares the new body high against the previous swing high: if greater, it marks a higher high and anchors a new line; otherwise, a lower high. The same logic applies inversely for bottom pivots. Anchored lines use cumulative price-volume products and volumes from the anchor bar onward, subtracting prior cumulatives to isolate the segment. On pivot confirmation, it loops backward from the current bar to the anchor, computing and storing points for the line. New points append as bars advance, ensuring the line reflects ongoing volume weighting.
Initialization uses persistent variables to track the last swing values and anchor bars, starting with neutral states. Data flows from regime detection to pivot classification, then to anchoring and point accumulation, with lines rendered globally on the final bar.
Parameter Guide
Pivot Length — Controls the lookback window for detecting body breakouts, influencing pivot frequency and sensitivity to recent action. Shorter values catch more pivots in choppy conditions; longer smooths for major swings. Default: 30 (bars). Trade-offs/Tips: Min 1; for intraday, try 10–20 to reduce lag but watch for noise; on daily, 50+ for stability.
Show Pivot Labels — Toggles display of text markers at swing points, aiding quick identification of higher highs, lower highs, lower lows, or higher lows. Default: true. Trade-offs/Tips: Disable in multi-indicator setups to declutter; useful for backtesting structure.
HH Color — Sets the line and label color for higher high anchored lines, distinguishing resistance levels. Default: Red (solid). Trade-offs/Tips: Choose contrasting hues for dark/light themes; pair with opacity for fills if added later.
LL Color — Sets the line and label color for lower low anchored lines, distinguishing support levels. Default: Lime (solid). Trade-offs/Tips: As above; green shades work well for bullish contexts without overpowering candles.
Reading & Interpretation
Higher high labels and red lines indicate potential resistance zones where volume weighting begins at a new swing top, suggesting sellers may defend prior highs. Lower low labels and lime lines mark support from a fresh swing bottom, with the line's slope reflecting buyer commitment via volume. Lower highs or higher lows appear as labels without new anchors, signaling possible range-bound action. Line proximity to price shows overextension; crosses may hint at regime shifts, but confirm with volume spikes.
Practical Workflows & Combinations
- Trend following: Enter longs above a rising lower low anchored line after higher low confirmation; filter with rising higher highs for uptrends. Use line breaks as trailing stops.
- Exits/Stops: In downtrends, exit shorts below a higher high line; set aggressive stops above it for scalps, conservative below for swings. Pair with momentum oscillators for divergence.
- Multi-asset/Multi-TF: Defaults suit forex/stocks on 1H–4H; on crypto 15M, shorten length to 15. Scale colors for dark themes; combine with higher timeframe anchors for confluence.
Behavior, Constraints & Performance
Closed-bar logic ensures pivots confirm after the lookback period, with no repainting on historical bars—live bars may adjust until regime shift. No higher timeframe calls, so minimal repaint risk beyond standard delays. Resources include a 2000-bar history limit, label/polyline caps at 200/50, and loops for historical point filling (up to current bar count from anchor, typically under 500 iterations). Known limits: In extreme gaps or low-volume periods, anchors may skew; lines absent until first pivots.
Sensible Defaults & Quick Tuning
Start with the 30-bar length for balanced pivot detection across most assets. For too-frequent pivots in ranges, increase to 50 for fewer signals. If lines lag in trends, reduce to 20 and enable labels for visual cues. In low-volatility assets, widen color contrasts; test on 100-bar history to verify stability.
What this indicator is—and isn’t
This is a structure-aware visualization layer for anchoring volume-weighted references at swing extremes, enhancing manual analysis of regimes and levels. It is not a standalone signal generator or predictive model—always integrate with broader context like order flow or news. Use alongside risk management and position sizing, not as isolated buy/sell triggers.
Many thanks to LuxAlgo for the original script "McDonald's Pattern ". The implementation for body pivots instead of wicks uses a = max(open, close), b = min(open, close) and then highest(a, length) / lowest(b, length). This filters noise from the wicks and detects breakouts over/under bodies. Unusual and targeted, super innovative.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Turtle soupHi all!
This indicator will show you turtle soups. The logic is that pivots detected from a higher timeframe, with the pivot lengths of left and right in the settings, will be up for 'grabs' by price that spents more than one candle above/below the pivot.
If only one candle is beyond the pivot it's a liquidity sweep or grab. Liquidity sweeps can be discovered through my script 'Market structure' (), but this script will discover turtle soup entries with false breakouts that takes liquidity.
The turtle soup can have a confirmation in the terms of a change of character (CHoCH). The turtle soup strategy usually comes with some sort of confirmation, in this case a CHoCH, but it can also be a market structure shift (MSS) or a change in state of delivery (CISD).
Turtle soups (pivots that have been 'taken') within a turtle soup will also be visible (but not have a turtle).
Alerts are available for when a turtle soup setup occurs and you can set the alert frequency of your liking (to get early signals with a script that might repaint or wait for a closed candle).
I hope that this description makes sense, tell me otherwise. Also tell me if you have any improvements or feature requests.
Best of trading luck!
The chart in the publication contains a 4 hour chart with a daily timeframe and confirmations with CHoCH.
Dynamic Market Structure (MTF) - Dow TheoryDynamic Market Structure (MTF)
OVERVIEW
This advanced indicator provides a comprehensive and fully customizable solution for analyzing market structure based on classic Dow Theory principles. It automates the identification of key structural points, including Higher Highs (HH), Higher Lows (HL), Lower Lows (LL), and Lower Highs (LH).
Going beyond simple pivot detection, this tool visualizes the flow of the trend by plotting dynamic Breaks of Structure (BOS) and potential reversals with Changes of Character (CHoCH). It is designed to be a flexible and powerful tool for traders who use price action and trend analysis as a core part of their strategy.
CORE CONCEPTS
The indicator is built on the foundational principles of Dow Theory:
Uptrend: A series of Higher Highs and Higher Lows.
Downtrend: A series of Lower Lows and Lower Highs.
Break of Structure (BOS): Occurs when price action continues the current trend by creating a new HH in an uptrend or a new LL in a downtrend.
Change of Character (CHoCH): Occurs when the established trend sequence is broken, signaling a potential reversal. For example, when a Lower Low forms after a series of Higher Highs.
CALCULATION METHODOLOGY
This section explains the indicator's underlying logic:
Pivot Detection: The indicator's core logic is based on TradingView's built-in ta.pivothigh() and ta.pivotlow() functions. The sensitivity of this detection is fully controlled by the user via the Pivot Lookback Left and Pivot Lookback Right settings.
Structure Calculation (BOS/CHoCH): The script identifies market structure by analyzing the sequence of these confirmed pivots.
A bullish BOS is plotted when a new ta.pivothigh is confirmed at a price higher than the previous confirmed ta.pivothigh.
A bearish CHoCH is plotted when a new ta.pivotlow is confirmed at a price lower than the previous confirmed ta.pivotlow , breaking the established sequence of higher lows.
The logic is mirrored for bearish BOS and bullish CHoCH.
Invalidation Levels: This feature identifies the last confirmed pivot before a structure break (e.g., the last ta.pivotlow before a bullish BOS) and plots a dotted line from it to the breakout bar. This level is considered the structural invalidation point for that move.
MTF Confirmation: This unique feature provides confluence by analyzing a second, lower timeframe. When a pivot (e.g., a Higher Low) is confirmed on the main chart, the script requests pivot data from the user-selected lower timeframe. If a corresponding trend reversal is detected on that lower timeframe (e.g., a break of its own minor downtrend), the pivot is labeled "Firm" (FHL); otherwise, it is labeled "Soft" (SHL).
KEY FEATURES
This indicator is packed with advanced features designed to provide a deeper level of market insight:
Dynamic Structure Lines: BOS and CHoCH levels are plotted with clean, dashed lines that dynamically start at the old pivot and terminate precisely at the breakout bar, keeping the chart clean and precise.
Invalidation Levels: For every structure break, the indicator can plot a dotted "Invalidation" line (INV). This marks the critical support or resistance pivot that, if broken, would negate the previous move, providing a clear reference for risk management.
Multi-Timeframe (MTF) Confirmation: Add a layer of confluence to your analysis by confirming pivots on a lower timeframe. The indicator can label Higher Lows and Lower Highs as either "Firm" (FHL/FLH) if confirmed by a reversal on a lower timeframe, or "Soft" (SHL/SLH) if not.
Flexible Pivot Detection: Fully adjustable Pivot Lookback settings for the left and right sides allow you to tune the indicator's sensitivity to match any timeframe or trading style, from long-term investing to short-term scalping.
Full Customization: Take complete control of the indicator's appearance. A dedicated style menu allows you to customize the colors for all bullish, bearish, and reversal elements, including the transparency of the trend-based candle coloring.
HOW TO USE
Trend Identification: Use the sequence of HH/HL and LL/LH, along with the trend-colored candles, to quickly assess the current market direction on any timeframe.
Entry Signals: A confirmed BOS can signal a potential entry in the direction of the trend. A CHoCH can signal a potential reversal, offering an opportunity to enter a new trend early.
Risk Management: Use the automatically plotted "Invalidation" (INV) lines as a logical reference point for placing stop losses. A break of this level indicates that the structure you were trading has failed.
Confluence: Use the "Firm" pivot signals from the MTF analysis to identify high-probability swing points that are supported by price action on multiple timeframes.
SETTINGS BREAKDOWN
Pivot Lookback Left/Right: Controls the sensitivity of pivot detection. Higher numbers find more significant (but fewer) pivots.
MTF Confirmation: Enable/disable the "Firm" vs. "Soft" pivot analysis and select your preferred lower timeframe for confirmation.
Style Settings: Customize all colors and the transparency of the candle coloring to match your chart's theme.
Show Invalidation Levels: Toggle the visibility of the dotted invalidation lines.
This indicator is a powerful tool for visualizing and trading with the trend. Experiment with the settings to find a configuration that best fits your personal trading strategy.
Realtime RenkoI've been working on real-time renko for a while as a coding challenge. The interesting problem here is building renko bricks that form based on incoming tick data rather than waiting for bar closes. Every tick that comes through gets processed immediately, and when price moves enough to complete a brick, that brick closes and a new one opens right then. It's just neat because you can run it and it updates as you'd expect with renko, forming bricks based purely on price movement happening in real time rather than waiting for arbitrary time intervals to pass.
The three brick sizing methods give you flexibility in how you define "enough movement" to form a new brick. Traditional renko uses a fixed price range, so if you set it to 10 ticks, every brick represents exactly 10 ticks of movement. This works well for instruments with stable tick sizes and predictable volatility. ATR-based sizing calculates the average true range once at startup using a weighted average across all historical bars, then divides that by your brick value input. If you want bricks that are one full ATR in size, you'd use a brick value of 1. If you want half-ATR bricks, use 2. This inverted relationship exists because the calculation is ATR divided by your input, which lets you work with multiples and fractions intuitively. Percentage-based sizing makes each brick a fixed percentage move from the previous brick's close, which automatically scales with price level and works well for instruments that move proportionally rather than in absolute tick increments.
The best part about this implementation is how it uses varip for state management. When you first load the indicator, there's no history at all. Everything starts fresh from the moment you add it to your chart because varip variables only exist in real-time. This means you're watching actual renko bricks form from real tick data as it arrives. The indicator builds its own internal history as it runs, storing up to 250 completed bricks in memory, but that history only exists for the current session. Refresh the page or reload the indicator and it starts over from scratch.
The visual implementation uses boxes for brick bodies and lines for wicks, drawn at offset bar indices to create the appearance of a continuous renko chart in the indicator pane. Each brick occupies two bar index positions horizontally, which spaces them out and makes the chart readable. The current brick updates in real time as new ticks arrive, with its high, low, and close values adjusting continuously until it reaches the threshold to close and become finalized. Once a brick closes, it gets pushed into the history array and a new brick opens at the closing level of the previous one.
What makes this especially useful for debugging and analysis are the hover tooltips on each brick. Clicking on any brick brings up information showing when it opened with millisecond precision, how long it took to form from open to close, its internal bar index within the renko sequence, and the brick size being used. That time delta measurement is particularly valuable because it reveals the pace of price movement. A brick that forms in five seconds indicates very different market conditions than one that takes three minutes, even though both bricks represent the same amount of price movement. You can spot acceleration and deceleration in trend development by watching how quickly consecutive bricks form.
The pine logs that generate when bricks close serve as breadcrumbs back to the main chart. Every time a brick finalizes, the indicator writes a log entry with the same information shown in the tooltip. You can click that log entry and TradingView jumps your main chart to the exact timestamp when that brick closed. This lets you correlate renko brick formation with what was happening on the time-based chart, which is critical for understanding context. A brick that closed during a major news announcement or at a key support level tells a different story than one that closed during quiet drift, and the logs make it trivial to investigate those situations.
The internal bar indexing system maintains a separate count from the chart's bar_index, giving each renko brick its own sequential number starting from when the indicator begins running. This makes it easy to reference specific bricks in your analysis or when discussing patterns with others. The internal index increments only when a brick closes, so it's a pure measure of how many bricks have formed regardless of how much chart time has passed. You can match these indices between the visual bricks and the log entries, which helps when you're trying to track down the details of a specific brick that caught your attention.
Brick overshoot handling ensures that when price blows through the threshold level instead of just barely touching it, the brick closes at the threshold and the excess movement carries over to the next brick. This prevents gaps in the renko sequence and maintains the integrity of the brick sizing. If price shoots up through your bullish threshold and keeps going, the current brick closes at exactly the threshold level and the new brick opens there with the overshoot already baked into its initial high. Without this logic, you'd get renko bricks with irregular sizes whenever price moved aggressively, which would undermine the whole point of using fixed-range bricks.
The timezone setting lets you adjust timestamps to your local time or whatever reference you prefer, which matters when you're analyzing logs or comparing brick formation times across different sessions. The time delta formatter converts raw milliseconds into human-readable strings showing days, hours, minutes, and seconds with fractional precision. This makes it immediately clear whether a brick took 12.3 seconds or 2 minutes and 15 seconds to form, without having to parse millisecond values mentally.
This is the script version that will eventually be integrated into my real-time candles library. The library version had an issue with tooltips not displaying correctly, which this implementation fixes by using a different approach to label creation and positioning. Running it as a standalone indicator also gives you more control over the visual settings and makes it easier to experiment with different brick sizing methods without affecting other tools that might be using the library version.
What this really demonstrates is that real-time indicators in Pine Script require thinking about state management and tick processing differently than historical indicators. Most indicator code assumes bars are immutable once closed, so you can reference `close ` and know that value will never change. Real-time renko throws that assumption out because the current brick is constantly mutating with every tick until it closes. Using varip for state variables and carefully tracking what belongs to finalized bricks versus the developing brick makes it possible to maintain consistency while still updating smoothly in real-time. The fact that there's no historical reconstruction and everything starts fresh when you load it is actually a feature, not a limitation, because you're seeing genuine real-time brick formation rather than some approximation of what might have happened in the past.
AUTOMATIC ANALYSIS MODULE🧭 Overview
“Automatic Analysis Module” is a professional, multi-indicator system that interprets market conditions in real time using TSI, RSI, and ATR metrics.
It automatically detects trend reversals, volatility compressions, and momentum exhaustion, helping traders identify high-probability setups without manual analysis.
⚙️ Core Logic
The script continuously evaluates:
TSI (True Strength Index) → trend direction, strength, and early reversal zones.
RSI (Relative Strength Index) → momentum extremes and technical divergences.
ATR (Average True Range) → volatility expansion or compression phases.
Multi-timeframe ATR comparison → detects whether the weekly structure supports or contradicts the local move.
The system combines these signals to produce an automatic interpretation displayed directly on the chart.
📊 Interpretation Table
At every new bar close, the indicator updates a compact dashboard (bottom right corner) showing:
🔵 Main interpretation → trend, reversal, exhaustion, or trap scenario.
🟢 Micro ATR context → volatility check and flow analysis (stable / expanding / contracting).
Each condition is expressed in plain English for quick decision-making — ideal for professional traders who manage multiple charts.
📈 How to Use
1️⃣ Load the indicator on your preferred asset and timeframe (recommended: Daily or 4H).
2️⃣ Watch the blue line message for the main trend interpretation.
3️⃣ Use the green line message as a volatility gauge before entering.
4️⃣ Confirm entries with your own strategy or price structure.
Typical examples:
“Possible bullish reversal” → early accumulation signal.
“Compression phase → wait for breakout” → avoid premature trades.
“Confirmed uptrend” → trend continuation zone.
⚡ Key Features
Real-time auto-interpretation of TSI/RSI/ATR signals.
Detects both bull/bear traps and trend exhaustion zones.
Highlights volatility transitions before breakouts occur.
Works across all assets and timeframes.
No repainting — stable on historical data.
✅ Ideal For
Swing traders, position traders, and institutional analysts who want automated context recognition instead of manual indicator reading.
HTF Candles & ReversalsThis indicator, "HTF Candles & Reversals," provides multi-timeframe (HTF) candlestick overlays combined with advanced market structure and reversal detection, all on your main TradingView chart. It empowers traders to visualize the broader trend context, spot potential price reversals, and identify Fair Value Gaps (Imbalances) across up to eight user-selectable higher timeframes, supporting robust, efficient technical analysis.
Key Features
Multi-Timeframe Candle Display: Overlays up to eight higher timeframe candles (5m, 15m, 1H, 4H, 1D, 1W, 1M, 3M) on any chart. Each HTF candle features customizable body, border, and wick colors for bullish and bearish states.
Live Price Action Representation: HTF candle data is updated in real time, reflecting both completed and developing HTF candles for continuous context during current price moves.
Reversal Pattern Detection: Spots key bullish and bearish reversal patterns on both standard and HTF candles, marking them with green (bullish) and red (bearish) triangles beneath or above the main candles. HTF candles are optionally colored (lime/orange) upon identifying stronger reversal setups.
Fair Value Gap (Imbalance) Visualization: Automatically detects and highlights HTF imbalances (FVG) with transparent rectangles and mid-line overlays, indicating zones of potential price revisits and trading interest.
Day-of-Week Labels: For daily HTF candles, annotated with custom-positioned weekday labels (above/below), aiding in session structure recognition.
Customizable Visuals: Extensive settings for the distance, width, transparency, and buffer of overlaid candles, as well as label/timer position, alignment, sizing, and coloring—including per-element control for clarity and chart aesthetics.
HTF Timer & Labeling: Optionally display the HTF name and a remaining-time countdown for each candle, positioned at the top, bottom, or both, for improved situational awareness.
Performance Optimizations: Script is designed for overlay use with up to 500 candles, lines, and labels on charts with deep historical access (5,000 bars back).
How to Use
Apply the script to your chart and select the desired number of HTF candles to display.
Enable or disable triangles for reversal spotting and customize color schemes to match your workflow.
Leverage HTF overlays to validate lower timeframe signals, spot key levels, and monitor imbalances as price moves toward or away from high-interest zones.
Use settings to tune the look and adjust feature visibility for a clean, focused display.
Alerts
Built-in alert conditions are available for immediate notification when bullish or bearish reversal triangles appear—keeping you informed of critical setups in real time.
Use Case
Ideal for traders who want to:
Add higher-timeframe context and structure to their intraday or swing analysis
Quickly identify HTF-based support/resistance and potential reversal areas
Monitor market imbalances for order flow strategies or mean reversion plays
Access multi-timeframe price action cues without switching charts
Disclaimer: This indicator is intended for educational and analytical purposes. Always conduct your own analysis and manage risk appropriately when trading financial markets.
Constant Auto Trendlines (Extended Right)📈 Constant Auto Trendlines (Extended Right)
This indicator automatically detects market structure by connecting swing highs and lows with permanent, forward-projecting trendlines.
Unlike standard trendline tools that stop at the last pivot, this version extends each trendline infinitely into the future — helping traders visualize where price may react next.
🔍 How It Works
The script identifies pivot highs and lows using user-defined left/right bar counts.
When a new lower high or higher low appears, the indicator draws a line between the two pivots and extends it forward using extend.right.
Each new confirmed trendline stays fixed, creating a historical map of structure that evolves naturally with market action.
Optional filters:
Min Slope – ignore nearly flat trendlines
Show Latest Only – focus on the most relevant trendline
Alerts – get notified when price crosses the most recent uptrend or downtrend line
🧩 Why It’s Useful
This tool helps traders:
Spot emerging trends early
Identify dynamic support/resistance diagonals
Avoid redrawing trendlines manually
Backtest structure breaks historically
⚙️ Inputs
Pivot Left / Right bars
Min slope threshold
Line color, width, and style
Show only latest line toggle
Alert options
Trend Direction (ZigZag)This indicator is designed to visually identify and label key market structure points—Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL)—using a ZigZag algorithm that efficiently tracks trend reversals and swing pivots. It overlays dynamic lines, labels, and color-coded bars directly onto your TradingView chart, making it ideal for traders seeking a clearer view of price structure for strategy development and confirmation.
What the Indicator Does
Automatically plots a ZigZag line following swing highs and lows, filtered by a customizable look-back length, helping to remove minor “noise” and highlight true structural pivots.
Labels each significant high or low as HH, HL, LH, or LL, enabling instant recognition of bullish or bearish market conditions.
Distinguishes structural shifts (“Break of Structure,” or BOS) with optional colored bar backgrounds for enhanced visual clarity when trends change.
Offers flexible controls over line color, width, label visibility and size, making it adaptable for different charting styles and timeframes.
Features and Customization
ZigZag Settings: Choose your preferred length and visual styling to fine-tune swing detection, with the ability to show or hide zigzag lines and adjust colors and thickness.
Labeling Structure: Toggle on/off the display of HH/HL/LH/LL labels, with customizable text size, helping you focus on the information relevant to your strategy.
Breakout Confirmation (Fib Factor): Integrates Fibonacci factor logic for validating when a breakout (BOS) should be recognized, giving added confidence in market turns.
Bar Coloring: Automatically paints bars to match current market bias (bullish or bearish), highlighting moments of structural change for quicker response.
How it Helps Traders
Clarifies Trend Structure: Makes it simple to distinguish trend direction and strength at a glance, improving timing and confidence in trade decisions.
Ideal for Strategy Building: Supports a variety of market-structure-based trading strategies, such as trend continuation, reversal setups, and breakout confirmations.
Saves Analysis Time: Automates the complex process of marking and tracking price swings, so you can focus on execution and risk management.
This indicator offers powerful market structure visualization and analysis, suited for all levels of traders and especially those who use price-action and swing-based systems (Supply & Demand).
Statistical Projection over N Days (drift + σ) – v1.2 [EN]🧭 Overview
“Statistical Projection over N Days (drift + σ)” is a quantitative forecasting model that estimates the expected future price range of any asset over a chosen horizon (default = 10 days).
It combines average drift (trend direction) and historical volatility (σ) to produce a probabilistic cone of future price movement.
The indicator displays:
a blue dashed line (expected price path),
1σ / 2σ deviation bands (volatility envelopes),
and a summary table with the key forecast values and expected return.
⚙️ Core Logic (Explained Simply)
The indicator analyses recent price behavior to estimate two key elements:
the average daily tendency of the market (called drift), and
the average daily variability (called volatility).
Here’s how it works, step by step:
Measures daily percentage changes (using logarithmic returns) to understand how much the price typically moves from one bar to the next.
It then calculates the average of those returns over a chosen historical window (for example, 70 bars).
If the average is positive → the market has a rising tendency (upward drift).
If the average is negative → the market tends to decline (downward drift).
At the same time, it computes the standard deviation of those returns — this shows how “wide” the movements are, i.e. how volatile the asset is.
Using these two measures — drift and volatility — it estimates where the price is statistically expected to move over the next N bars:
The mean projection (blue dashed line) represents the most likely price path.
The 1σ and 2σ lines (teal and gray) define confidence zones, where price is expected to remain about 68% and 95% of the time, respectively.
The model updates continuously with every new bar, recalculating both drift and volatility, so the projection cone expands, contracts, or changes direction depending on the latest market behavior.
📉 Interpretation of the Blue Line
The blue dashed line (pMean) is the statistical forecast path of price over the next N bars.
🔹 When the blue line is below the current price
The recent drift (average log return) is negative → the model expects a gradual decline.
Interpretation:
The prevailing statistical bias is bearish — the market is expected to move lower toward equilibrium.
🔹 When the blue line is above the current price
The recent drift is positive → the model expects a continued rise.
Interpretation:
The price is statistically likely to trend upward, maintaining momentum in the direction of the current drift.
🔹 When the blue line is sloping upward
The mean projection pMean is rising with each new bar.
Indicates positive drift → the average daily return is positive.
Interpretation:
The asset is in a growth phase; volatility bands act as potential expansion corridors.
🔹 When the blue line is sloping downward
The mean projection pMean decreases bar after bar.
Indicates negative drift → average daily return is negative.
Interpretation:
The asset is in a corrective or declining phase, with volatility determining potential drawdown limits.
🔹 When the blue line is flat
The drift (μ) is approximately zero.
Interpretation:
The model sees no directional bias; price equilibrium dominates.
Expect a sideways range unless new volatility (σ) expansion occurs.
📈 How to Read the Entire Projection
Blue dashed line → expected mean path (most probable price trajectory).
Teal lines (±1σ) → statistically normal range (≈68% of future outcomes).
Gray lines (±2σ) → extreme bounds (≈95% of outcomes).
Labels on the right show exact forecast prices for each band.
If the actual price moves outside the gray 2σ range →
→ it signals volatility breakout or regime shift, meaning the past volatility no longer explains the present movement.
🧮 Summary Table
Located at the top-right corner, it provides:
Field Description
Projection (days) Number of bars used for projection (h).
Anchor price Starting close used for forecast.
Mean target (h) Expected price after h bars (blue line endpoint).
1σ Band (↓ / ↑) 68% confidence interval.
2σ Band (↓ / ↑) 95% confidence interval.
Expected return Projected % change from current close to mean target.
Colors can be customized — for example:
white headers,
aqua for anchor price,
lime for target,
orange/red for σ bands,
yellow for expected return.
🧠 Practical Meaning
Blue Line State Interpretation Bias
Above price, rising Ongoing positive drift Bullish
Below price, falling Negative drift Bearish
Flat, near price Neutral drift Sideways
Steep slope Strong directional momentum Trend confirmation
Price > +2σ band Excess volatility / overextension Possible correction
Price < −2σ band Undervaluation or panic Reversion likely
⚡ Summary
Aspect Description
Purpose Statistical forecast of expected price range
Method Drift (μ) + Volatility (σ) from log returns
Outputs Mean projection (blue), 1σ & 2σ bands, expected return
Interpretation Directional bias from blue line and its slope
Recommended timeframe Daily
Best use Trend confirmation, probabilistic target estimation, volatility analysis.
Symmetry Break Index | QRSymmetry Break Trend Scanner | QuantumResearch
What it does
This indicator detects trend regime shifts by measuring how persistently price deviates from its moving-average “symmetry.” It outputs a continuous Score and a binary Signal (Bullish / Bearish) when that score crosses user-defined thresholds:
Bullish (Long) when upside deviations dominate → sustained uptrend bias
Bearish (Short/Cash) when downside deviations dominate → sustained downtrend bias
It’s built for clarity and consistency: the plot is a single score with two horizontal decision lines so traders can quickly identify regime changes on a clean chart.
How it works (principle, not code)
Normalize price vs trend: Price is standardized against a moving average and its standard deviation to create a dimensionless “oscillator” series (how far above/below typical behavior price sits).
Symmetry count: For a user-defined range of reference levels, the script counts whether the standardized price is above or below each level. This builds a cumulative symmetry score: positive when upside presence is broad and persistent, negative when downside dominates.
Regime thresholds: Crossing the Uptrend Threshold or Downtrend Threshold flips the quantum state to Bullish or Bearish, minimizing noise compared with a single-level trigger.
This approach emphasizes persistence and breadth of deviation rather than one-off spikes, which can help filter chop.
Plots & visuals
Score (histogram/area fill): Positive area fills in the bullish color, negative area in the bearish color.
Zero line: Quick reference for balance between up/down deviations.
Two decision lines: Uptrend Threshold and Downtrend Threshold to mark regime flips.
Bar colors: Bars tint with the active regime (Bullish / Bearish) for fast reads.
Publish with a clean chart so the score and thresholds are clearly visible. Avoid extra indicators unless they are required and explained.
Inputs & customization
MA Length (default 40): Window for the baseline moving average and volatility. Shorter = more reactive; longer = smoother.
Source: Price input (e.g., close).
For Loop Range (Start / End, default −200…200): Breadth of reference levels in the symmetry count. Wider range = stronger smoothing and slower flips.
Uptrend / Downtrend Thresholds: Regime triggers. Tighten to react faster, widen to reduce whipsaws.
Color Mode: Choose a palette to match your chart.
Tip: Start with defaults, then tune MA Length and thresholds for your market/timeframe.
How to use it
Trend confirmation: Trade in the direction of the active regime; avoid counter-trend setups when the score is far beyond a threshold.
Risk controls: When the score retreats toward zero, consider reducing size or tightening stops—momentum is weakening.
Confluence: Combine with structure (S/R), volume, or volatility bands for entries/exits; the score provides context, not entries alone.
Originality & value
Unlike single-threshold oscillators, this method aggregates many standardized comparisons into one score, rewarding persistence and breadth of deviation. The result is a robust regime signal that tends to filter fleeting wiggles and highlight true symmetry breaks.
Limitations
Extremely range-bound markets can still produce false flips if thresholds are too tight.
Sudden volatility regime changes may require re-tuning MA Length or thresholds.
Standardization depends on the chosen window; there is no “one size fits all.”
Disclaimer
This tool is for research/education and is not financial advice. Markets involve risk, including loss of capital. Past performance does not predict or guarantee future results. Always test settings on your timeframe and use prudent risk management.
HTF Candles with PVSRA Volume Coloring (PCS Series)This indicator displays higher timeframe (HTF) candles using a PVSRA-inspired color model that blends price and volume strength, allowing traders to visualize higher-timeframe activity directly on lower-timeframe charts without switching screens.
OVERVIEW
This script visualizes higher-timeframe (HTF) candles directly on lower-timeframe charts using a custom PVSRA (Price, Volume & Support/Resistance Analysis) color model.
Unlike standard HTF indicators, it aggregates real-time OHLC and volume data bar-by-bar and dynamically draws synthetic HTF candles that update as the higher-timeframe bar evolves.
This allows traders to interpret momentum, trend continuation, and volume pressure from broader market structures without switching charts.
INTEGRATION LOGIC
This script merges higher-timeframe candle projection with PVSRA volume analysis to provide a single, multi-timeframe momentum view.
The HTF structure reveals directional context, while PVSRA coloring exposes the underlying strength of buying and selling pressure.
By combining both, traders can see when a higher-timeframe candle is building with strong or weak volume, enabling more informed intraday decisions than either tool could offer alone.
HOW IT WORKS
Aggregates price data : Groups lower-timeframe bars to calculate higher-timeframe Open, High, Low, Close, and total Volume.
Applies PVSRA logic : Compares each HTF candle’s volume to the average of the last 10 bars:
• >200% of average = strong activity
• >150% of average = moderate activity
• ≤150% = normal activity
Assigns colors :
• Green/Blue = bullish high-volume
• Red/Fuchsia = bearish high-volume
• White/Gray = neutral or low-volume moves
Draws dynamic outlines : Outlines update live while the current HTF candle is forming.
Supports symbol override : Calculations can use another instrument for correlation analysis.
This multi-timeframe aggregation avoids repainting issues in request.security() and ensures accurate real-time HTF representation.
FEATURES
Dual HTF Display : Visualize two higher timeframes simultaneously (e.g., 4H and 1D).
Dynamic PVSRA Coloring : Volume-weighted candle colors reveal bullish or bearish dominance.
Customizable Layout : Adjust candle width, spacing, offset, and color schemes.
Candle Outlines : Highlight the forming HTF candle to monitor developing structure.
Symbol Override : Display HTF candles from another instrument for cross-analysis.
SETTINGS
HTF 1 & HTF 2 : enable/disable, set timeframes, choose label colors, show/hide outlines.
Number of Candles : choose how many HTF candles to plot (1–10).
Offset Position : distance to the right of the current price where HTF candles begin.
Spacing & Width : adjust separation and scaling of candle groups.
Show Wicks/Borders : toggle wick and border visibility.
PVSRA Colors : enable or disable volume-based coloring.
Symbol Override : use a secondary ticker for HTF data if desired.
USAGE TIPS
Set the indicator’s visual order to “Bring to front.”
Always choose HTFs higher than your active chart timeframe.
Use PVSRA colors to identify strong momentum and potential reversals.
Adjust candle spacing and width for your chart layout.
Outlines are not shown on chart timeframes below 5 minutes.
TRADING STRATEGY
Strategy Overview : Combine HTF structure and PVSRA volume signals to
• Identify zones of high institutional activity and potential reversals.
• Wait for confirmation through consolidation or a pullback to key levels.
• Trade in alignment with dominant higher-timeframe structure rather than chasing volatility.
Setup :
• Chart timeframe: lower (5m, 15m, 1H)
• HTF 1: 4H or 1D
• HTF 2: 1D or 1W
• PVSRA Colors: enabled
• Outlines: enabled
Entry Concept :
High-volume candles (green or red) often indicate market-maker activity , such zones often reflect liquidity absorption by larger players and are not necessarily ideal entry points.
Wait for the next consolidation or pullback toward a support or resistance level before acting.
Bullish scenario :
• After a high-volume or rejection candle near a low, price consolidates and forms a higher low.
• Enter long only when structure confirms strength above support.
Bearish scenario :
• After a high-volume or rejection candle near a top, price consolidates and forms a lower high.
• Enter short once resistance holds and momentum weakens.
Exit Guidelines :
• Exit when next HTF candle shifts in color or momentum fades.
• Exit if price structure breaks opposite to your trade direction.
• Always use stop-loss and take-profit levels.
Additional Tips :
• Never enter directly on strong green/red high-volume candles, these are usually areas of institutional absorption.
• Wait for market structure confirmation and volume normalization.
• Combine with RSI, moving averages, or support/resistance for timing.
• Avoid trading when HTF candles are mixed or low-volume (unclear bias).
• Outlines hidden below 5m charts.
Risk Management :
• Use stop-loss and take-profit on all positions.
• Limit risk to 1–2% per trade.
• Adjust position size for volatility.
FINAL NOTES
This script helps traders synchronize lower-timeframe execution with higher-timeframe momentum and volume dynamics.
Test it on demo before live use, and adjust settings to fit your trading style.
DISCLAIMER
This script is for educational purposes only and does not constitute financial advice.
SUPPORT & UPDATES
Future improvements may include alert conditions and additional visualization modes. Feedback is welcome in the comments section.
CREDITS & LICENSE
Created by @seoco — open source for community learning.
Licensed under Mozilla Public License 2.0 .
Hyper Strength Index | QuantLapse🧠 Hyper Strength Index (HSI) | QuantLapse
Overview:
The Hyper Strength Index (HSI) is a composite momentum oscillator designed to unify multiple strength measures into a single, adaptive framework. It combines the Relative Strength Index (RSI), Chande Momentum Oscillator (CMO), Money Flow Index (MFI), and Stochastic RSI to deliver a refined, multidimensional view of market momentum and overbought/oversold conditions.
Unlike traditional oscillators that rely on a single formula, the HSI averages four distinct momentum perspectives — price velocity, directional conviction, volume participation, and stochastic behavior — offering traders a more balanced and noise-resistant reading of market strength.
⚙️ Calculation Logic:
The Hyper Strength Index is computed as the normalized average of:
📈 RSI — classic measure of relative momentum.
💪 CMO — captures directional bias and intensity of moves.
💵 MFI — integrates volume and money flow pressure.
🔄 Stochastic RSI (K-line) — identifies momentum extremes and short-term turning points.
This fusion creates a smoother, more comprehensive signal, mitigating the weaknesses of any single oscillator.
🎯 Interpretation:
Overbought Zone (Default: > 75):
Indicates potential exhaustion of bullish momentum — a cooling phase or reversal may follow.
Oversold Zone (Default: < 7):
Suggests bearish exhaustion — a rebound or accumulation phase may emerge.
Neutral Zone (Between 7 and 75):
Represents balanced market conditions or trend continuation phases.
Visual cues highlight key conditions:
🔺 Red Highlights — Overbought regions or downward inflection points.
🔻 Green Highlights — Oversold regions or upward inflection points.
Neutral zones are shaded with subtle gray backgrounds for clarity.
💡 Key Features:
🔹 Multi-factor strength analysis (RSI + CMO + MFI + StochRSI).
🔹 Adaptive overbought/oversold detection.
🔹 Visual alerts via colored backgrounds and bar markers.
🔹 Customizable smoothing and length parameters for fine-tuning sensitivity.
🔹 Intuitive visualization ideal for both short-term scalping and swing trading setups.
🧭 Usage Notes:
Works best as a momentum confirmation tool — pair with trend filters like EMA, SuperTrend, or ADX.
In trending markets, use crossovers from extreme zones as potential continuation or exhaustion signals.
In ranging markets, exploit overbought/oversold reversals for high-probability mean reversion trades.
📘 Summary:
The Hyper Strength Index | QuantLapse distills multiple dimensions of market strength into a single, cohesive oscillator. By merging price, volume, and directional momentum, it provides traders with a more robust, responsive, and context-aware perspective on market dynamics — a next-generation evolution beyond the limitations of RSI or CMO alone.
Relative Performance Tracker [QuantAlgo]🟢 Overview
The Relative Performance Tracker is a multi-asset comparison tool designed to monitor and rank up to 30 different tickers simultaneously based on their relative price performance. This indicator enables traders and investors to quickly identify market leaders and laggards across their watchlist, facilitating rotation strategies, strength-based trading decisions, and cross-asset momentum analysis.
🟢 Key Features
1. Multi-Asset Monitoring
Track up to 30 tickers across any market (stocks, crypto, forex, commodities, indices)
Individual enable/disable toggles for each ticker to customize your watchlist
Universal compatibility with any TradingView symbol format (EXCHANGE:TICKER)
2. Ranking Tables (Up to 3 Tables)
Each ticker's percentage change over your chosen lookback period, calculated as:
(Current Price - Past Price) / Past Price × 100
Automatic sorting from strongest to weakest performers
Rank: Position from 1-30 (1 = strongest performer)
Ticker: Symbol name with color-coded background (green for gains, red for losses)
% Change: Exact percentage with color intensity matching magnitude
For example, Rank #1 has the highest gain among all enabled tickers, Rank #30 has the lowest (or most negative) return.
3. Histogram Visualization
Adjustable bar count: Display anywhere from 1 to 30 top-ranked tickers (user customizable)
Bar height = magnitude of percentage change.
Bars extend upward for gains, downward for losses. Taller bars = larger moves.
Green bars for positive returns, red for negative returns.
4. Customizable Color Schemes
Classic: Traditional green/red for intuitive interpretation
Aqua: Blue/orange combination for reduced eye strain
Cosmic: Vibrant aqua/purple optimized for dark mode
Custom: Full personalization of positive and negative colors
5. Built-In Ranking Alerts
Six alert conditions detect when rankings change:
Top 1 Changed: New #1 leader emerges
Top 3/5/10/15/20 Changed: Shifts within those tiers
🟢 Practical Applications
→ Momentum Trading: Focus on top-ranked assets (Rank 1-10) that show strongest relative strength for trend-following strategies
→ Market Breadth Analysis: Monitor how many tickers are above vs. below zero on the histogram to gauge overall market health
→ Divergence Spotting: Identify when previously leading assets lose momentum (drop out of top ranks) as potential trend reversal signals
→ Multi-Timeframe Analysis: Use different lookback periods on different charts to align short-term and long-term relative strength
→ Customized Focus: Adjust histogram bars to show only top 5-10 strongest movers for concentrated analysis, or expand to 20-30 for comprehensive overview
Chronos Reversal Labs🧬 Chronos Reversal Lab - Machine Learning Market Structure Analysis
OVERVIEW
Chronos Reversal Lab (CRL) is an advanced market structure analyzer that combines computational intelligence kernels with classical technical analysis to identify high-probability reversal opportunities. The system integrates Shannon Entropy analysis, Detrended Fluctuation Analysis (DFA), Kalman adaptive filtering, and harmonic pattern recognition into a unified confluence-based signal engine.
WHAT MAKES IT ORIGINAL
Unlike traditional reversal indicators that rely solely on oscillators or pattern recognition, CRL employs a multi-kernel machine learning approach that analyzes market behavior through information theory, statistical physics, and adaptive state-space estimation. The system combines these computational methods with geometric pattern analysis and market microstructure to create a comprehensive reversal detection framework.
HOW IT WORKS (Technical Methodology)
1. COMPUTATIONAL KERNELS
Shannon Entropy Analysis
Measures market uncertainty using information theory:
• Discretizes price returns into bins (user-configurable 5-20 bins)
• Calculates probability distribution entropy over lookback window
• Normalizes entropy to 0-1 scale (0 = perfectly predictable, 1 = random)
• Low entropy states (< 0.3 default) indicate algorithmic clarity phases
• When entropy drops, directional moves become statistically more probable
Detrended Fluctuation Analysis (DFA)
Statistical technique measuring long-range correlations:
• Analyzes price series across multiple box sizes (4 to user-set maximum)
• Calculates fluctuation scaling exponent (Alpha)
• Alpha > 0.5: Trend persistence (momentum regime)
• Alpha < 0.5: Mean reversion tendency (reversal regime)
• Alpha range 0.3-1.5 mapped to trading strategies
Kalman Adaptive Filter
State-space estimation for lag-free trend tracking:
• Maintains separate fast and slow Kalman filters
• Process noise and measurement noise are user-configurable
• Tracks price state with adaptive gain adjustments
• Calculates acceleration (second derivative) for momentum detection
• Provides cleaner trend signals than traditional moving averages
2. HARMONIC PATTERN DETECTION
Identifies geometric reversal patterns:
• Gartley: 0.618 AB/XA, 0.786 AD/XA retracement
• Bat: 0.382-0.5 AB/XA, 0.886 AD/XA retracement
• Butterfly: 0.786 AB/XA, 1.272-1.618 AD/XA extension
• Cypher: 0.382-0.618 AB/XA, 0.786 AD/XA retracement
Pattern Validation Process:
• Requires alternating swing structure (XABCD points)
• Fibonacci ratio tolerance: 0.02-0.20 (user-adjustable precision)
• Minimum 50% ratio accuracy score required
• PRZ (Potential Reversal Zone) calculated around D point
• Zone size: ATR-based with pattern-specific multipliers
• Active pattern tracking with 100-bar invalidation window
3. MARKET STRUCTURE ANALYSIS
Swing Point Detection:
• Pivot-based swing identification (3-21 bars configurable)
• Minimum swing size: ATR multiples (0.5-5.0x)
• Adaptive filtering: volatility regime adjustment (0.7-1.3x)
• Swing confirmation tracking with RSI and volume context
• Maintains structural history (up to 500 swings)
Break of Structure (BOS):
• Detects price crossing previous swing highs/lows
• Used for trend continuation vs reversal classification
• Optional requirement for signal validation
Support/Resistance Detection:
• Identifies horizontal levels from swing clusters
• Touch counting algorithm (price within ATR×0.3 tolerance)
• Weighted by recency and number of tests
• Dynamic updating as structure evolves
4. CONFLUENCE SCORING SYSTEM
Multi-factor analysis with regime-aware weighting:
Hierarchical Kernel Logic:
• Entropy gates advanced kernel activation
• Only when entropy < threshold do DFA and Kalman accelerate scoring
• Prevents false signals during chaotic (high entropy) conditions
Scoring Components:
ML Kernels (when entropy low):
• Low entropy + trend alignment: +3.0 points × trend weight
• DFA super-trend (α>1.5): +4.0 points × trend weight
• DFA persistence (α>0.65): +2.5 points × trend weight
• DFA mean-reversion (α<0.35): +2.0 points × mean-reversion weight
• Kalman acceleration: up to +3.0 points (scaled by magnitude)
Classical Technical Analysis:
• RSI oversold (<30) / overbought (>70): +1.5 points
• RSI divergence (bullish/bearish): +2.5 points
• High relative volume (>1.5x): +0-2.0 points (scaled)
• Volume impulse (>2.0x): +1.5 points
• VWAP extremes: +1.0 point
• Trend alignment (Kalman fast vs slow): +1.5 points
• MACD crossover/momentum: +1.0 point
Structural Factors:
• Near support (within 0.5 ATR): +0-2.0 points (inverse distance)
• Near resistance (within 0.5 ATR): +0-2.0 points (inverse distance)
• Harmonic PRZ zone: +3.0 to +6.0 points (pattern score dependent)
• Break of structure: +1.5 points
Regime Adjustments:
• Trend weight: 1.5× in trend regime, 0.5× in mean-reversion
• Mean-reversion weight: 1.5× in MR regime, 0.5× in trend
• Volatility multiplier: 0.7-1.3× based on ATR regime
• Theory mode multiplier: 0.8× (Conservative) to 1.2× (APEX)
Final Threshold:
Base threshold (default 3.5) adjusted by:
• Theory mode: -0.3 (APEX) to +0.8 (Conservative)
• Regime: +0.5 (high vol) to -0.3 (low vol or strong trend)
• Filter: +0.2 if regime filter enabled
5. SIGNAL GENERATION ARCHITECTURE
Five-stage validation process:
Stage 1 - ML Kernel Analysis:
• Entropy threshold check
• DFA regime classification
• Kalman acceleration confirmation
Stage 2 - Structural Confirmation:
• Market structure supports directional bias
• BOS alignment (if required)
• Swing point validation
Stage 3 - Trigger Validation:
• Engulfing candle (if required)
• HTF bias confirmation (if strict HTF enabled)
• Harmonic PRZ alignment (if confirmation enabled)
Stage 4 - Consistency Check:
• Anticipation depth: checks N bars back (1-13 configurable)
• Ensures Kalman acceleration direction persists
• Filters whipsaw conditions
Stage 5 - Structural Soundness (Critical Filter):
• Verifies adequate room before next major swing level
• Long signals: must have >0.25 ATR clearance to last swing high
• Short signals: must have >0.25 ATR clearance to last swing low
• Prevents trades directly into obvious structural barriers
Dynamic Risk Management:
• Stop-loss: Placed beyond last structural swing ± 2 ticks
• Take-profit 1: Risk × configurable R1 multiplier (default 1.5R)
• Take-profit 2: Risk × configurable R2 multiplier (default 3.0R)
• Confidence score: Calibrated 0-99% based on confluence + kernel boost
6. ADAPTIVE REGIME SYSTEM
Continuous market state monitoring:
Trend Regime:
• Kalman fast vs slow positioning
• Multi-timeframe alignment (optional HTF)
• Strength: ATR-normalized fast/slow spread
Volatility Regime:
• Current ATR vs 100-bar average
• Regime ratio: 0.7-1.3 typical range
• Affects swing size filtering and cooldown periods
Signal Cooldown:
• Base: User-set bars (1-300)
• High volatility (>1.5): cooldown × 1.5
• Low volatility (<0.5): cooldown × 0.7
• Post-BOS: minimum 20-bar cooldown enforced
FOUR OPERATIONAL MODES
CONSERVATIVE MODE:
• Threshold adjustment: +0.8
• Mode multiplier: 0.8×
• Strictest filtering for highest quality
• Recommended for: Beginners, large accounts, swing trading
• Expected signals: 3-5 per week (typical volatile instrument)
BALANCED MODE:
• Threshold adjustment: +0.3
• Mode multiplier: 1.0×
• Standard operational parameters
• Recommended for: General trading, learning phase
• Expected signals: 5-10 per week
APEX MODE:
• Threshold adjustment: -0.3
• Mode multiplier: 1.2×
• Maximum sensitivity, reduced cooldowns
• Recommended for: Scalping, high volatility, experienced traders
• Expected signals: 10-20 per week
INSTITUTIONAL MODE:
• Threshold adjustment: +0.5
• Mode multiplier: 1.1×
• Enhanced structural weighting, HTF emphasis
• Recommended for: Professional traders, swing positions
• Expected signals: 4-8 per week
VISUAL COMPONENTS
1. Fibonacci Retracement Levels
• Auto-calculated from most recent swing structure
• Standard levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%, 127.2%, 161.8%, 200%, 261.8%
• Key levels emphasized (50%, 61.8%, 100%, 161.8%)
• Color gradient from bullish to bearish based on level
• Automatic cleanup when levels are crossed
• Label intensity control (None/Fib only/All)
2. Support and Resistance Lines
• Dynamic horizontal levels from swing clusters
• Width: 2px solid lines
• Colors: Green (support), Red (resistance)
• Labels show price and level type
• Touch-based validation (minimum 2 touches)
• Real-time updates and invalidation
3. Harmonic PRZ Boxes
• Displayed around pattern completion (D point)
• Pattern-specific colors (Gartley: purple, Bat: orange, etc.)
• Box height: ATR-based zone sizing
• Score-dependent transparency
• 100-bar active window before removal
4. Confluence Boxes
• Appear when confluence ≥ threshold
• Yellow/orange gradient based on score strength
• Height: High to low of bar
• Width: 1 bar on each side
• Real-time score-based transparency
5. Kalman Filter Lines
• Fast filter: Bullish color (green default)
• Slow filter: Bearish color (red default)
• Width: 2px
• Transparency adjustable (0-90%)
• Optional display toggle
6. Signal Markers
• Long: Green triangle below bar (tiny size)
• Short: Red triangle above bar (tiny size)
• Appear only on confirmed signals
• Includes alert generation
7. Premium Dashboard
Features real-time metrics with visual gauges:
Layout Options:
• Position: 4 corners selectable
• Size: Small (9 rows) / Normal (12 rows) / Large (14 rows)
• Themes: Supreme, Cosmic, Vortex, Heritage
Metrics Displayed:
• Gamma (DFA - 0.5): Shows trend persistence vs mean-reversion
• TCI (Trend Strength): ATR-normalized Kalman spread with gauge
• v/c (Relative Volume): Current vs average with color coding
• Entropy: Market predictability state with gauge
• HFL (High-Frequency Line): Kalman fast/slow difference / ATR
• HFL_acc (Acceleration): Second derivative momentum
• Mem Bias: Net bullish-bearish confluence (-1 to +1)
• Assurance: Confidence × (1-entropy) metric
• Squeeze: Bollinger Band / Keltner Channel squeeze detection
• Breakout P: Probability estimate from DFA + trend + acceleration
• Score: Final confluence vs threshold (normalized)
• Neighbors: Active harmonic patterns count
• Signal Strength: Strong/Moderate/Weak classification
• Signal Banner: Current directional bias with emoji indicators
Gauge Visualization:
• 10-bar horizontal gauges (█ filled, ░ empty)
• Color-coded: Green (strong) / Gold (moderate) / Red (weak)
• Real-time updates every bar
HOW TO USE
Step 1: Configure Mode and Resolution
• Select Theory Mode based on trading style (Conservative/Balanced/APEX/Institutional)
• Set Structural Resolution (Standard for fast markets, High for balanced, Ultra/Institutional for swing)
• Enable Adaptive Filtering (recommended for all volatile assets)
Step 2: Enable Desired Kernels
• Shannon Entropy: Essential for predictability detection (recommended ON)
• DFA Analysis: Critical for regime classification (recommended ON)
• Kalman Filter: Provides lag-free trend tracking (recommended ON)
• All three work synergistically; disabling reduces effectiveness
Step 3: Configure Confluence Factors
• Enable desired technical factors (RSI, MACD, Volume, Divergence)
• Enable Liquidity Mapping for support/resistance proximity scoring
• Enable Harmonic Detection if trading pattern-based setups
• Adjust base confluence threshold (3.5 default; higher = fewer, cleaner signals)
Step 4: Set Trigger Requirements
• Require Engulfing: Adds precision, reduces frequency (recommended for Conservative)
• Require BOS: Ensures structural alignment (recommended for trend-following)
• Require Structural Soundness: Critical filter preventing traps (highly recommended)
• Strict HTF Bias: For multi-timeframe traders only
Step 5: Adjust Visual Preferences
• Enable/disable Fibonacci levels, S/R lines, PRZ boxes, confluence boxes
• Set label intensity (None/Fib/All)
• Adjust transparency (0-90%) for overlay clarity
• Configure dashboard position, size, and theme
Step 6: Configure Alerts
• Enable master alerts toggle
• Select alert types: Anticipation, Confirmation, High Confluence, Low Entropy
• Enable JSON details for automated trading integration
Step 7: Interpret Signals
• Wait for triangle markers (green up = long, red down = short)
• Check dashboard for confluence score, entropy, DFA regime
• Verify signal aligns with higher timeframe bias (if using HTF setting)
• Confirm adequate space to take-profit levels (no nearby structural barriers)
Step 8: Execute and Manage
• Enter at close of signal candle (or next bar open)
• Set stop-loss at calculated level (visible in alert if JSON enabled)
• Scale out at TP1 (1.5R default), trail remaining to TP2 (3.0R default)
• Exit early if entropy spikes >0.7 or DFA regime flips against position
CUSTOMIZATION GUIDE
Timeframe Optimization:
Scalping (1-5 minutes):
• Theory Mode: APEX
• Anticipation Depth: 3-5
• Structural Resolution: STANDARD
• Signal Cooldown: 8-12 bars
• Enable fast kernels, disable HTF bias
Day Trading (15m-1H):
• Theory Mode: BALANCED
• Anticipation Depth: 5-8
• Structural Resolution: HIGH
• Signal Cooldown: 12-20 bars
• Standard configuration
Swing Trading (4H-Daily):
• Theory Mode: INSTITUTIONAL
• Anticipation Depth: 8-13
• Structural Resolution: ULTRA or INSTITUTIONAL
• Signal Cooldown: 20-50 bars
• Enable HTF bias, strict confirmations
Market Type Optimization:
Forex Majors:
• All kernels enabled
• Harmonic patterns effective
• Balanced or Institutional mode
• Standard settings work well
Stock Indices:
• Emphasis on volume analysis
• DFA critical for regime detection
• Conservative or Balanced mode
• Enable liquidity mapping
Cryptocurrencies:
• Adaptive filtering essential
• Higher volatility regime expected
• APEX mode for active trading
• Wider ATR multiples for swing sizing
IMPORTANT DISCLAIMERS
• This indicator does not predict future price movements
• Computational kernels calculate probabilities, not certainties
• Past confluence scores do not guarantee future signal performance
• Always backtest on YOUR specific instruments and timeframes before live trading
• Machine learning kernels require calibration period (minimum 100 bars of data)
• Performance varies significantly across market conditions and regimes
• Signals are suggestions for analysis, not automated trading instructions
• Proper risk management (stops, position sizing) is mandatory
• Complex calculations may impact performance on lower-end devices
• Designed for liquid markets; avoid illiquid or gap-prone instruments
PERFORMANCE CONSIDERATIONS
Computational Intensity:
• DFA analysis: Moderate (scales with length and box size parameters)
• Entropy calculation: Moderate (scales with lookback and bins)
• Kalman filtering: Low (efficient state-space updates)
• Harmonic detection: Moderate to High (pattern matching across swing history)
• Overall: Medium computational load
Optimization Tips:
• Reduce Structural Analysis Depth (144 default → 50-100 for faster performance)
• Increase Calc Step (2 default → 3-4 for lighter load)
• Reduce Pattern Analysis Depth (8 default → 3-5 if harmonics not primary focus)
• Limit Draw Window (150 bars default prevents visual clutter on long charts)
• Disable unused confluence factors to reduce calculations
Best Suited For:
• Liquid instruments: Major forex, stock indices, large-cap crypto
• Active timeframes: 5-minute through daily (avoid tick/second charts)
• Trending or ranging markets: Adapts to both via regime detection
• Pattern traders: Harmonic integration adds geometric confluence
• Multi-timeframe analysts: HTF bias and regime detection support this approach
Not Recommended For:
• Illiquid penny stocks or micro-cap altcoins
• Markets with frequent gaps (stocks outside regular hours without gap adjustment)
• Extremely fast timeframes (tick, second charts) due to calculation overhead
• Pure mean-reversion systems (unless using CONSERVATIVE mode with DFA filters)
METHODOLOGY NOTE
The computational kernels (Shannon Entropy, DFA, Kalman Filter) are established statistical and signal processing techniques adapted for financial time series analysis. These are deterministic mathematical algorithms, not predictive AI models. The term "machine learning" refers to the adaptive, data-driven nature of the calculations, not neural networks or training processes.
Confluence scoring is rule-based with regime-dependent weighting. The system does not "learn" from historical trades but adapts its sensitivity to current volatility and trend conditions through mathematical regime classification.
SUPPORT & UPDATES
• Questions about configuration or usage? Send me a message on TradingView
• Feature requests are welcome for consideration in future updates
• Bug reports appreciated and addressed promptly
• I respond to messages within 24 hours
• Regular updates included (improvements, optimizations, new features)
FINAL REMINDERS
• This is an analytical tool for confluence analysis, not a standalone trading system
• Combine with your existing strategy, risk management, and market analysis
• Start with paper trading to learn the system's behavior on your markets
• Allow 50-100 signals minimum for performance evaluation
• Adjust parameters based on YOUR timeframe, instrument, and trading style
• No indicator guarantees profitable trades - proper risk management is essential
— Dskyz, Trade with insight. Trade with anticipation.
Quantum Reservoir Computing⚛ Quantum Reservoir Computing - Multi-Scale Market Analysis
OVERVIEW
This indicator combines three structural analysis kernels (Energy, Resonance, Topology) with a 6-spin reservoir computing network to provide multi-dimensional market state monitoring. It is designed to detect structural shifts, coherence alignment, and potential entry timing through visual analytics and optional signal markers.
WHAT MAKES IT ORIGINAL
Unlike single-indicator approaches, QRC fuses complementary analysis methods and uses a reservoir computing layer (coupled oscillator network) to capture temporal market structure. The system uses entropy-compensated signal logic to maintain directional alignment across kernels with inverted mathematical properties.
HOW IT WORKS (Technical Details)
1. ENERGY KERNEL
Measures compression state through two components:
• Entropy: Volatility-normalized return distribution, inverted (low volatility = high compression energy)
• ATR Compression: Short-period ATR divided by longer-period baseline ATR
• Final Energy: Weighted average of both components, ranging 0 to 1
2. RESONANCE KERNEL
Calculates cross-timeframe coherence using:
• 6 exponential moving averages (periods: 9, 14, 20, 30, 48, 84)
• Slope calculation for each EMA
• Amplitude weighting based on user-selected mode (Close/ATR/StDev)
• Coherence Index (CI): Measures directional agreement across all timeframes
• Mode Persistence: Stability of CI over 20 bars
3. TOPOLOGY KERNEL
Analyzes path geometry through:
• Turn density: Rate of price directional changes
• Curvature: Second-order price differences normalized by ATR
• Combined into a 0-1 topology change metric
4. RESERVOIR COMPUTING (6-Spin Network)
Six coupled state variables (spins) arranged in a ring topology:
• Drive signal combines directional consensus, price z-score, volume, and ATR regime
• Each spin updates via hyperbolic tangent activation with neighbor coupling
• Psi (Ψ): Coherence measure (average pairwise spin correlation)
• Spin Direction: Signed average of all spins
• Pulse detection: Positive changes in Ψ, z-scored to detect energy releases
5. FUSION & SCORING
• Magnitude: Weighted combination of all kernels (0 to 1 scale)
• Direction: Blend of EMA slope consensus, basis slope, and spin direction (-1 to 1)
• ScoreSigned: Direction multiplied by Magnitude (drives visuals)
• GateScore: Amplified score used only for signal threshold checks
• Heat: Entanglement measure combining Ψ, CI, and Magnitude
SIGNAL LOGIC (Important: Entropy-Compensated Inversion)
Because the entropy kernel naturally inverts (low volatility = bullish compression), signal logic compensates to maintain directional alignment:
• LONG signals fire when GateScore crosses below the short threshold (bearish GateScore + bullish structure)
• SHORT signals fire when GateScore crosses above the long threshold (bullish GateScore + bearish structure)
This inversion has been visually validated through metric plotting and maintains correct alignment with Resonance and Topology kernels.
Signal gates require:
• Two-of-three pass: CI ≥ minimum, Mode Persistence ≥ minimum, Ψ ≥ minimum
• Heat ≥ minimum threshold
• OR recent pulse window active (ΔΨ edge within N bars)
• Minimum bar spacing between signals (prevents clustering)
VISUAL COMPONENTS
1. Contained Ribbon (Recommended Mode)
• Center line: Basis EMA
• Edge: Positioned by ScoreSigned value
• Fill color: Green (bullish) or Red (bearish)
• Width: ATR-adaptive with configurable floor/ceiling
2. Quantum Aurora (Multi-Layer Energy Bands)
• 5-8 harmonic layers with phase-driven oscillations
• Colors shift with Heat level (cool blue at low Heat, warm orange/magenta at high Heat)
• Creates visual texture that reflects market state dynamics
3. Interference Mesh
• Subtle oscillating overlay modulated by CI and ScoreSigned
• Provides depth perception without visual clutter
4. Resonance Cloud
• Width proportional to Coherence Index
• Wide cloud = strong cross-timeframe alignment
• Narrow cloud = weak structural coherence
5. Energy Particles
• Floating micro-dots with density mapped to Magnitude
• Color-coded by Heat level (gold/cyan/gray)
• Provides continuous conviction feedback
6. Regime Atmosphere
• Background tint indicating market mode:
- Green: Coherent trend (CI>0.65, Ψ>0.55)
- Red: Choppy regime (CI<0.45, Ψ<0.40)
- Purple: Transition state
DASHBOARDS
1. Main Dashboard (Moveable, Resizable)
• Regime indicator with color-coded status
• Horizontal meter gauges for Ψ, CI, Heat, Magnitude
• Signal strength bars for Score and Gate
• Status indicators (dots) for ΔΨ, Heat, CI health
• Directional arrows and bars-since-signal counter
• Size options: Tiny, Small, Normal, Large
• Position: All four corners available
2. Heat HUD (Entanglement Matrix)
• Multi-row gradient display of last N bars (configurable 10-120)
• Metrics: Heat, Psi, CI, Magnitude, Pulse Z-score, Gate proximity
• Color-coded blocks show metric intensity over time
• Live footer with current values
• Resizable and moveable
HOW TO USE
Step 1: Monitor Regime and Structure
• Check Dashboard regime indicator (Trend/Chop/Transition)
• Observe Aurora flow (smooth = stable, erratic = unstable)
• Wide Resonance Cloud indicates strong multi-timeframe alignment
Step 2: Watch Entanglement Heat
• Heat HUD shows persistent structure as amber/red runs
• Green status dots indicate healthy metrics
• Rising Heat + rising Ψ suggests mode-locking
Step 3: Confirm Gate Conditions
• Dashboard displays effective thresholds (dynamically relaxed after dry periods)
• Two-of-three gate (CI/ModePersistence/Ψ) must pass OR recent pulse active
• Strength bars show conviction level
Step 4: Interpret Signals
• Enable "Show Diagnostic Plots" to verify metric behavior on your symbols
• Signals appear as tiny triangles (green below bars = long, red above = short)
• Best confluence: Heat rising + fresh pulse cluster + strong CI
Step 5: Risk Management
• Place stops beyond opposite ribbon edge plus 0.5 ATR buffer
• Trail stops following basis ± ATR fraction while Heat/Psi remain elevated
• Exit early if CI or Ψ collapse (status dots turn yellow/red)
CUSTOMIZATION
Extensive settings available:
• Core: EMA length, ATR length, pulse thresholds, heat minimum
• Signals: Mode (Aggressive/Normal/Conservative), thresholds, spacing, gain
• Visuals: Ribbon mode, Aurora layers, particle density, all show/hide toggles
• Dashboards: Size, position for both main dashboard and heat HUD
• Diagnostics: Optional metric plots for validation
IMPORTANT DISCLAIMERS
• This indicator does not predict future price movements
• Signals use entropy-compensated inversion (explained above); verify on your symbols
• Always backtest on your specific markets and timeframes before live trading
• Past performance does not guarantee future results
• Heavy visuals may impact performance on lower-end devices (use Performance toggles)
• Designed for liquid markets (major indices, forex, crypto); may underperform on illiquid symbols
• Complex system with learning curve; read full guide embedded in code
DIAGNOSTIC MODE
Enable "Show Diagnostic Plots" in settings to verify metric behavior:
• Heat, Psi, CI, Magnitude plotted in lower pane
• ScoreSigned and GateScore normalized to 0-1 scale
• Reference lines at 0.25, 0.5, 0.75 for threshold context
• Observe metric alignment with price action on YOUR symbols
METHODOLOGY NOTE
The "Quantum" terminology refers to the reservoir computing methodology (coupled oscillator network), not actual quantum mechanics. The 6-spin network uses hyperbolic tangent activation functions to model temporal market structure. This is a deterministic mathematical model, not a quantum computing system.
BEST SUITED FOR
• Liquid markets: Major indices (ES, NQ), forex majors (EUR/USD, GBP/USD), large-cap crypto (BTC, ETH)
• Timeframes: 5-minute through daily (works on all, but designed for intraday to swing)
• Trading styles: Structure-based entries, multi-timeframe confluence, visual state monitoring
• Experience level: Intermediate to advanced (complex system with learning curve)
PERFORMANCE CONSIDERATIONS
• Heavy calculations (6 spins, 6 EMAs, Aurora layers, particles) may lag on lower-end devices
• Use "Dashboard Size: Tiny" and reduce "Aurora Layers" to 2-3 for better performance
• Consider disabling "Energy Particles" on mobile devices
• Script is optimized with array capping and label recycling, but complexity remains high
SUPPORT & UPDATES
• Questions about usage or settings? Send me a message - I respond within 24 hours
• Feature requests are welcome for consideration in future updates
• Bug reports appreciated and addressed promptly
• Script will be maintained and updated as needed
FINAL REMINDERS
• This is an analytical tool, not a trading system
• Always backtest on YOUR symbols and timeframes before live use
• Use proper risk management - stops, position sizing, etc.
• Past performance does not guarantee future results
• Start with demo/paper trading to learn the system
— Dskyz, Trade with insight. Trade with anticipation.
SerenitySerenity: Find Serenity in Market Chaos
Every trader starts somewhere, often diving headfirst into the markets with charts cluttered by layers of lines, oscillators, and signals. It's easy to get caught up testing one approach after another—adding more tools, tweaking strategies, chasing the latest idea that promises clarity. The cycle repeats: overload the setup, second-guess every move, switch things up when results don't click right away. Over time, it becomes clear that jumping between setups rarely builds the consistency needed to navigate the ups and downs.
That's where the idea for Serenity came from—a way to step back from the noise and focus on a structured approach that encourages sticking to a plan and building consistency.
Built on the philosophy that no single perspective captures the full picture, Serenity offers two complementary views—Skye and Shade—to provide a more rounded interpretation of the market. Serenity’s logic builds on core market concepts—trend, momentum, and volume—combining them through carefully structured conditions that work across multiple timeframes. By focusing on where these elements align, it highlights key moments in the market while filtering out noise, providing clear and meaningful visual cues for analysis.
Skye focuses on faster-moving trends and momentum shifts, highlighting potential opportunities with a riskier, more agile approach. Shade takes a more conservative stance, emphasizing broader confirmations through volume and market structure. By integrating multiple timeframes and carefully crafted conditions, Serenity identifies key moments where price action, momentum, and market strength converge. Whether you're a scalper chasing quick moves, a day trader riding intraday waves, or a swing trader eyeing longer trends, Serenity adapts to any trading style, offering a flexible lens for both risk-tolerant and cautious approaches. Used together, Skye and Shade create a balanced view, filtering out distractions without overcomplicating the chart.
Even with its structure, Serenity remains a framework for interpretation—built on trend, momentum, and volume concepts that distill complex market movement into clear, visual markers like color shifts or highlighted zones. It’s a tool to see through the chaos, not a definitive answer.
Understanding Serenity’s Two Perspectives
Serenity is built around two complementary perspectives—Skye and Shade—each designed to interpret market behavior through a distinct lens. While they share the same foundation of trend, momentum, and volume analysis, they differ in speed, sensitivity, and purpose.
Skye
Skye focuses on the faster side of market behavior. It reacts quickly to changes in trend and momentum, making it well-suited for traders who prefer agility and earlier entries. Skye thrives in environments where price moves sharply and timing matters.
Its logic leans on short-term structure shifts, refined momentum cues, and cross-timeframe alignment to highlight areas where strength is building or fading. The perspective is intentionally more responsive—capturing movement before it’s fully confirmed, at the cost of increased sensitivity.
Shade
Shade takes a steadier, more measured approach. Where Skye seeks opportunity in early momentum, Shade looks for confirmation—aligning trend, volume, and structure to reinforce conviction.
It filters out minor fluctuations to focus on broader conditions, offering a cleaner perspective on established direction and underlying market strength. This makes it particularly suited for traders who value confirmation over speed—day traders looking for solid follow-through or swing traders aiming for consistency across larger moves.
Serenity’s Reversal Signals
In addition to its dual perspectives, Serenity provides two signal markers designed to highlight potential reversal areas:
Twilight Reversal
Twilight draws attention to areas where upward momentum might begin to build. It serves as a visual cue for zones where buying interest could be forming, helping you focus on potential opportunities for a positive shift in market behavior.
Eclipse Reversal
Eclipse highlights areas where downward pressure may be emerging. It marks zones where sellers could be gaining influence, guiding your attention to potential points where market strength may start to wane.
Together, these signals act as complementary tools to Skye and Shade, helping you interpret the market by showing areas where momentum could be shifting, all while keeping the chart clean and structured.
Saty ATR Levels w/labelsSatys ATR Levels with labels, Allows for the user to plot ATR levels and see labels with the addition of this script
Flip to GreenPurpose:
This indicator applies a Lorentzian-distance–based machine-learning model to classify market conditions and highlight probable momentum shifts.
Where traditional indicators react to price movement, this one uses statistical pattern recognition to predict when momentum is likely to flip direction — the classic “flip to green” signal.
Concept:
Financial markets don’t move linearly; they bend and distort around major catalysts (news, FOMC meetings, earnings, etc.) in a way similar to how gravity warps space-time.
This indicator accounts for that distortion by measuring distance in Lorentzian space instead of the usual Euclidean space.
In simple terms: it adapts to volatility “warping,” allowing the model to detect structural momentum changes that normal math misses.
Core logic:
Imports two custom libraries:
MLExtensions for machine-learning utilities
KernelFunctions for advanced distance calculations
Computes relationships among multiple features (e.g., RSI, ADX, or other inputs).
Uses Lorentzian geometry to weight how recent price-time behavior influences current classification.
Outputs a visual “flip” cue when the probability of trend reversal exceeds threshold confidence.
Why it matters:
Most indicators measure what has already happened.
Lorentzian Classification attempts to capture what’s about to happen by comparing the present market state to a trained historical distribution under warped “price-time” geometry.
It’s particularly useful for spotting early accumulation or exhaustion zones before they become obvious on standard momentum tools.
Recommended use:
Run it as a background trend classifier or color overlay.
Combine it with volume-based confirmation tools (e.g., Dollar Volume Ownership Gauge) and structural analysis.
A “flip to green” suggests buyers are regaining control; a fade or flip to red implies control returning to sellers.
Dollar Volume Ownership GaugePurpose:
DVOG tracks the real money moving through a ticker by converting share volume into dollar volume (price × volume). It helps identify when institutional-sized players enter, defend, or unload positions — information that plain volume bars often hide.
How it works:
Each bar represents 4-minute aggregated dollar volume.
Green bars = moderate sponsorship ($400 K–$1 M per 4 min).
Red bars = heavy sponsorship ($1 M+ per 4 min).
Black bars = normal retail flow (under $400 K).
Optional horizontal guides mark both thresholds for quick reference.
Alerts:
Green Bar Alert: fires every time a bar exceeds $400 K, signaling fresh institutional activity.
Cross Alerts: trigger once when dollar volume crosses the $400 K or $1 M levels, perfect for automation or notifications.
Why it’s useful:
DVOG visually confirms when a breakout, knife-and-reclaim, or coil is being driven by real capital rather than low-liquidity noise.
It turns abstract volume into a direct measure of who’s actually in control.
Recommended use:
Run it in a separate pane below price. Combine with your normal structure analysis — higher lows, double bottoms, coils, etc. — and act only when structure and sponsorship line up.
VWAP H/L Break - NQVWAP crossover with fib targets
bar closing over VWAP(high) go long
bar closing under VWAP (low) go short
fib targets based on closing candle and previous candle.






















