ATR ZLEMA [QuantAlgo]🟢 Overview
The ATR ZLEMA indicator identifies trend direction and reversal points using a Zero Lag Exponential Moving Average (ZLEMA) combined with volatility-adjusted dynamic trailing stops. It eliminates the inherent lag of traditional moving averages while incorporating Average True Range (ATR) volatility measurement to create adaptive support and resistance levels that automatically adjust to market conditions, with optional noise filtering to reduce whipsaws in choppy markets, helping traders and investors identify trend changes, maintain positions during trending markets, and exit when momentum shifts across multiple timeframes and asset classes.
🟢 How It Works
The indicator's core methodology lies in its zero-lag trend detection system combined with volatility-adaptive trailing stops, where the ZLEMA eliminates moving average lag while ATR-based bands provide dynamic support and resistance levels:
lag = math.floor((zlemaLength - 1) / 2)
rawZlema = ta.ema(source + (source - source ), zlemaLength)
The Zero Lag EMA calculation uses lag reduction through data compensation, adding the difference between current price and lagged price to eliminate the delay inherent in traditional exponential moving averages, providing faster response to trend changes while maintaining smoothness.
The script incorporates an optional ATR-based noise filter that prevents the ZLEMA from updating during insignificant price movements, helping to reduce false signals in choppy, range-bound markets:
if enableNoiseFilter
noiseThreshold = atr * noiseFilter
priceChange = math.abs(rawZlema - zlema)
if priceChange > noiseThreshold
zlema := rawZlema
First, the indicator calculates the Average True Range to measure current market volatility, then applies a user-defined multiplier to determine the distance of the trailing stop from the ZLEMA:
atr = ta.rma(ta.tr(true), atrLength)
atrBand = atr * atrMultiplier
Next, dynamic trend detection occurs through a state-based system where the indicator tracks whether the ZLEMA is above or below the ATR trailing line, automatically adjusting the trailing stop position:
if trend == 1
if zlema < zlemaATR
trend := -1
zlemaATR := zlema + atrBand
else
zlemaATR := math.max(zlemaATR, zlema - atrBand)
The ATR trailing line acts as a volatility-adjusted stop that follows the ZLEMA during trends but never moves against the trend direction. It ratchets upward with the ZLEMA in uptrends and ratchets downward in downtrends, creating a protective barrier that adapts to market volatility.
Finally, trend reversal signals are generated when the ZLEMA crosses the ATR trailing line, indicating a shift in market momentum:
bullSignal = trend == 1 and trend == -1
bearSignal = trend == -1 and trend == 1
This creates a volatility-adaptive trend-following system that combines ZLEMA with dynamic support/resistance levels and optional noise filtering, providing traders with responsive directional signals and automatic stop-loss levels that adjust to both price momentum and market volatility conditions.
🟢 Signal Interpretation
▶ Bullish Trend (Green): ZLEMA trading above ATR trailing line with indicator showing bullish color, indicating established upward momentum with zero-lag confirmation = Long/Buy opportunities
▶ Bearish Trend (Red): ZLEMA trading below ATR trailing line with indicator showing bearish color, indicating established downward momentum with zero-lag confirmation = Short/Sell opportunities
▶ ATR Trailing Line as Dynamic Support: In uptrends, the trailing line acts as volatility-adjusted support level that rises with ZLEMA, never declining = Use as potential stop-loss reference for long positions = ZLEMA holding above indicates trend strength and momentum continuation
▶ ATR Trailing Line as Dynamic Resistance: In downtrends, the trailing line acts as volatility-adjusted resistance level that falls with ZLEMA, never rising = Use as potential stop-loss reference for short positions = ZLEMA holding below indicates trend weakness and momentum continuation
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading styles and market conditions. "Default" provides balanced configuration suitable for swing trading on daily and 4-hour charts with standard ZLEMA and ATR periods, moderate multiplier, and moderate noise filtering that works across most market conditions. "Fast Response" delivers aggressive configuration designed for intraday trading and scalping on 5-minute to 1-hour charts with shorter ZLEMA period for quick trend detection, reduced ATR period for rapid volatility adaptation, tighter multiplier for early entries/exits, and minimal noise filtering for maximum responsiveness. This is ideal for active traders monitoring positions closely but expect more frequent signals and potential whipsaws in choppy conditions. "Smooth Trend" focuses on conservative configuration for position trading and long-term trend following on daily to weekly charts with extended ZLEMA period for smoother trend identification, longer ATR period for stable volatility measurement, wide multiplier to filter minor corrections, and aggressive noise filtering to ensure only strong sustained trends trigger signals. This is best for patient traders focused on major trend moves with fewer reversals.
▶ Built-in Alerts: Three alert conditions enable comprehensive automated monitoring of trend changes and zero-lag momentum shifts. "Bullish Trend" triggers when the ZLEMA crosses above the ATR trailing line and trend state changes from bearish to bullish, signaling potential long entry opportunities with lag-eliminated confirmation. "Bearish Trend" activates when the ZLEMA crosses below the ATR trailing line and trend state changes from bullish to bearish, signaling potential short entry or long exit points with immediate momentum detection. "Any Trend Change" provides a combined alert for any trend reversal regardless of direction, allowing traders to be notified of all zero-lag momentum shifts without setting up separate alerts. These notifications enable traders to capitalize on trend changes and protect positions without continuous chart monitoring, leveraging the indicator's zero-lag technology for faster trend change alerts.
▶ Color Customization: Six visual themes (Classic, Aqua, Cosmic, Ember, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast for identifying bullish versus bearish trends across various trading environments. The adjustable cloud fill transparency control (0-100%) allows fine-tuning of the gradient area prominence between the ATR trailing line and ZLEMA, with higher transparency values (70-95) creating subtle background context without overwhelming the chart while lower values (20-40) produce bold, prominent trend zone emphasis for instant recognition. Optional bar coloring with adjustable transparency (0-100%) extends the trend color directly to the price bars themselves based on ZLEMA trend state, providing immediate visual reinforcement of current trend direction without requiring reference to the indicator lines.
Volatilidad
25GN-Intraday Reversals and MomentumThe 25GN-Intraday Suite is a high-performance visual interface designed for professional traders on the 5m, 10m, and 15m timeframes. This master version combines two distinct proprietary signal paths into one streamlined overlay.
CORE CAPABILITIES
Precision Reversal Bubbles (25GN-B / 25GN-S): Identifies significant trend exhaustion and pivot points using a multi-layered validation engine.
Trend Momentum Triangles: Real-time identification of high-velocity breakout phases.
Price Action Lock: An automated filtering system that invalidates signals during periods of market indecision or low-conviction price action.
OPERATIONAL GUIDELINES
Strict Timeframe Optimization: Engineered specifically for the 5-minute, 10-minute, and 15-minute charts.
Smart Alerts: Fully compatible with TradingView alerts for modular trade automation.
Plug-and-Play: Designed to work out of the box with calibrated defaults for the supported timeframes.
This script is strictly for educational and informational purposes and does not constitute financial, investment, or trading advice. It is not an investment or trade suggestion. Users must evaluate all signals and execute trades based on their own independent analysis and risk assessment. Past performance is not indicative of future results. Trading involves significant risk of loss.
RSI Momentum & Trend Suite - O59 Elite QuantRSI Momentum & Trend Suite – O59 Elite Quant
Professional Market Structure & Momentum Analysis Tool
RSI Momentum & Trend Suite – O59 Elite Quant is a comprehensive technical analysis indicator designed to help traders better understand market momentum, trend structure, price reactions, and key support & resistance zones directly on the chart.
This indicator combines RSI-based momentum analysis, dynamic bar coloring, price action signals, and automatic trend & support/resistance detection into a single, clean visual framework.
🔹 Momentum & Bar Coloring Logic
The indicator includes a custom RSI momentum engine that evaluates short-term price changes and momentum strength.
Candles are automatically colored when momentum reaches critical zones:
Above 70 → Strong bullish momentum
Below 30 → Strong bearish momentum
This candle coloring helps traders instantly recognize momentum extremes without switching to a separate RSI pane.
🔺 Buy & Sell Triangle Signals
The script generates triangle-based buy and sell signals based on a combination of:
RSI oversold / overbought conditions
Short-term price action behavior
Candle structure and confirmation logic
These signals are intended to highlight potential reaction zones, not to predict the market.
They work best when used together with trend direction and support/resistance levels.
📈 Automatic Trend Detection
The indicator automatically identifies ascending and descending trend structures using pivot-based swing analysis.
Trendlines are drawn dynamically based on higher lows and lower highs
Broken trendlines are automatically removed to keep the chart clean
Both bullish and bearish trends are visually distinguished
This allows traders to quickly assess whether the market is trending or losing structure.
🟦 Dynamic Support & Resistance Levels
Key support and resistance levels are detected using recent pivot points:
Levels extend forward in real time
Broken levels are removed automatically
Helps identify potential reaction, rejection, and liquidity zones
These levels are designed to adapt continuously as market structure evolves.
🧾 Information Table & Visual Themes
A customizable information table is displayed on the chart, showing:
Indicator name
Current symbol
Active timeframe
Author branding
Users can choose between multiple visual themes, allowing better readability and personal preference while maintaining a professional appearance.
⚠️ Important Notes & Risk Disclaimer
This indicator is designed as a technical analysis support tool only.
It does not provide financial advice
Signals and visual elements should not be used alone
Always confirm signals with your own strategy, risk management, and market context
⚠️ Special caution is advised during:
Low-volume sessions
Weekend price action
High-impact news events
Thin liquidity hours
Market conditions during these periods may produce false signals or reduced reliability.
📌 Final Disclaimer
This indicator is for educational and analytical purposes only.
It is not investment advice.
All trading decisions remain the sole responsibility of the use
Ultimate ORB ArchitectThe Ultimate ORB Architect is a high-precision volatility and range-expansion tool designed for intraday traders. It specializes in the Initial Balance (IB)—the high and low established during the first session of the trading day—and projects mathematically significant expansion levels for price discovery.
Unlike standard opening range indicators, this script utilizes a Smart-Swap Calculation Engine, allowing traders to toggle between Standard Deviation and Fibonacci sequences instantly while maintaining a clean, professional chart aesthetic.
Key Features
1. Dual Calculation Engines
- Standard Deviation Mode: Projects targets based on whole-unit range expansions ($1.0, 2.0, 3.0, 4.0$). Ideal for Mean Reversion and classic IB breakout trading.
- Fibonacci Sequence Mode: Projects targets based on the Golden Ratio and its extensions ($0.618, 1.618, 2.618, 4.236$). Perfect for trend exhaustion and harmonic target setting.
2. "Smart-Swap" Internal Levels
The script intelligently adapts its internal support and resistance lines based on your selected mode:
-In SD Mode: Displays 25% and 75% (Quarters)—the standard institutional "Fair Value" levels within a range.
-In Fibonacci Mode: Displays 38.2% and 61.8% (Golden Retracements)—the primary zones for range-bound reversals.
3. Institutional Timing & Projection
Time-Locked Execution: Custom sessions allow you to define the ORB window (e.g., the first 30 or 60 minutes).
5:00 PM EST Hard Cutoff: To prevent "infinite lines" that clutter your chart, all projections are hard-coded to terminate at the NYSE close (17:00 EST), providing a clear visual end to the trading day.
4. Professional Visual Suite
Adaptive Lookback: Choose to view only today’s action for a "clean" chart or look back up to 5 days to analyze historical range behavior.
Customizable Hierarchy: Every level—from the 50% Midpoint to the Level 4 "Runner"—features independent color, style (Solid/Dashed/Dotted), and label size controls.
How to Use
Define the Session: Set your ORB Session (default is 09:30–10:30).
Select Your Mode: Use the Calculation Mode dropdown to switch between Fibonacci or Standard Deviation targets depending on the day’s volatility.
Monitor the Midpoint: The 50% line (Mid) acts as the "Pivot of Power." Price holding above the Mid indicates bullish bias; below indicates bearish bias.
Target the Runner: Use the Level 4 Runner as your ultimate take-profit on high-momentum trend days.
Technical Specifications
Language: Pine Script® V6
Compatibility: Works on all intraday timeframes (1m, 5m, 15m).
Timezone: Optimized for America/New_York (EST) but adaptable to global sessions via inputs.
Relative Strength Leadership Engine v2.0Relative Strength Leadership Engine v2.0OverviewThe Relative Strength Leadership Engine v2.0 is a context-first diagnostic tool designed to identify true market leadership. Instead of simple ratio lines, this script employs a multi-layered scoring model to determine if a symbol is truly outperforming its benchmark (e.g., SPY) or simply riding market beta.The Problem It SolvesMany relative strength indicators fail to distinguish between idiosyncratic leadership and market correlation. A stock might look strong simply because it is a high-beta names moving in lockstep with a rising index. This engine uses Pearson Correlation Filtering and Volatility Normalization to decouple these factors.How It Works (The Math)To ensure full transparency for the TradingView community, the "Leadership Score" (0–100) is calculated based on four proprietary technical pillars:Baseline Alignment (30 pts): Measures if the $Price / Benchmark$ ratio is above its 21-period EMA.Volatility-Normalized Momentum (25 pts): We calculate a Z-score of the RS slope and divide it by the asset's ATR % of price. This ensures momentum is measured by "clean" price action rather than high-beta volatility spikes.Beta-Decoupling (20 pts): Using ta.correlation, the script penalizes "Market Huggers." Points are awarded when a stock shows strength independent of the benchmark's immediate fluctuations.Freshness & Highs (25 pts): Points are awarded for proximity to 252-day relative strength highs, identifying stocks entering a "Power Zone" of leadership.Interpreting the StatesThe dashboard in the bottom-right identifies three distinct permission states:ENGAGE (Score 80+): Full leadership permission. The asset is outperforming with idiosyncratic strength and clean momentum (See FDX example in the gallery).OBSERVE (Score 50–79): Leadership is present but aging or overly correlated to the market (See MU example in the gallery).STAND DOWN (Score <50): Leadership is broken; the asset is a relative laggard (See CBLL example in the gallery).Technical FeaturesMulti-Timeframe Validation: Optional Weekly/Monthly RS confirmation to filter out "noise."Benchmark Timing Filter: A built-in gate that checks if the broader market (Benchmark) is in a "Risk-Off" regime.Non-Repainting: All security calls use lookahead=barmerge.lookahead_off to ensure historical accuracy.Customizable UI: Toggle the dashboard on/off via the "Style" menu for a cleaner workspace.DisclaimerThis script is an informational diagnostic tool and does not generate trade signals, entries, or exits. Educational use only.
Core IC 2.0
## 📌 NIFTY Weekly Option Seller — Core Regime & Risk Framework
This indicator is designed for **systematic weekly option selling on NIFTY**, focused on **Iron Condors (IC), Put Credit Spreads (PCS), and Call Credit Spreads (CCS)**.
It is **not a scalping tool** and **not a signal generator**.
Instead, it provides a **structured decision framework** to help option sellers decide:
* *What structure to deploy* (IC / PCS / CCS)
* *How aggressive to be* (position size & distance)
* *When to adjust* (defend / harvest / regime change)
---
## 🔍 What the Indicator Does
### 1️⃣ Market Regime Detection
The script continuously evaluates the market and classifies it into one of three regimes:
* **IC (Range / Mixed)** – neutral, mean-reverting conditions
* **PCS (Trend Up)** – bullish trend continuation
* **CCS (Trend Down)** – bearish trend continuation
Regime selection is based on:
* EMA structure
* ADX (trend strength)
* VWAP positioning
* Higher timeframe (daily) trend alignment
---
### 2️⃣ Independent Conviction Scores
The indicator computes **three independent scores (0–5)**:
```
IC / PCS / CCS
```
These scores represent **conviction strength**, not trade signals.
* Higher score = stronger suitability for that structure
* All three scores are always visible for transparency
Only **one active score** (based on the current regime) is used for:
* Position sizing
* Strike distance suggestions
* Risk management logic
---
### 3️⃣ Risk-First Position Guidance
Based on the active score, the indicator suggests:
* **Position Size** (100% / 50% / 25%)
* **Short strike distance** (ATR-based, dynamic)
* **Defend / Harvest conditions**
* **Regime change alerts**
This helps traders remain **consistent and disciplined**, especially during volatile weeks.
---
### 4️⃣ Visual Decision Panel
A compact panel displays all key information at a glance:
* Regime (IC / PCS / CCS)
* ATR & ADX
* Suggested size
* Suggested short distance
* IC / PCS / CCS scores
* Key reference levels (H3 / L3, VWAP)
No guesswork, no over-trading.
---
## 🕒 Recommended Usage
* **Best timeframe:** 1H or 4H
* **Ideal style:** End-of-day or limited-check traders
* **Designed for:** Weekly option sellers (not intraday scalpers)
Adjustments are intended to be made **at fixed checkpoints**, not every candle.
---
## ⚠️ Important Notes
* This is **not financial advice**
* The indicator does **not place trades**
* Works best when combined with:
* Defined stop-loss rules
* Fixed risk-reward discipline
* Proper position sizing
---
## 🎯 Who This Is For
✔ Rule-based option sellers
✔ Traders focused on consistency over excitement
✔ Professionals who value structure and risk control
❌ Not for discretionary scalpers
❌ Not for beginners without options knowledge
TradeX ORB SniperTradeX ORB Sniper — Multi-Range Opening Breakout Framework
TradeX ORB Sniper is a closed-source analytical framework designed to study how price interacts with structured opening ranges across different market regimes.
It is not a simple ORB line tool and is not a mashup of existing indicators. All logic is developed in-house and operates under a unified internal rule engine.
The script’s purpose is to standardize how opening ranges are defined, measured, and visualized so traders can objectively evaluate breakout behavior across multiple session models.
Core Concept
ORB Sniper implements four internally coded range definitions. Each mode calculates its range differently based on time, session structure, and market behavior:
• Pre-market session range
• 5-minute opening range
• 15-minute opening range
• Volume-adaptive range model
Rather than using generic fixed boxes, each range model applies a consistent internal rule set so breakout behavior can be studied within a controlled and repeatable structure.
This allows users to compare how price reacts to different opening range constructions without changing tools or visual logic.
Breakout Detection Logic
A breakout is defined only when a candle closes outside the active range.
When this occurs, the framework highlights that candle as a visual event marker (“Get Ready Candle”).
This highlight is informational only.
It does not generate trade signals and does not imply entry or exit instructions.
Its purpose is to clearly identify when price has structurally exited the defined range area according to the framework’s rules.
Range-Based Projection Zones
To provide contextual structure after a breakout, the framework projects two calculated zones:
Risk Zone
Derived directly from the size and structure of the selected opening range.
Continuation Zone
Projected from the same range logic using proportional displacement.
These zones are not random drawings or static multipliers.
They are mathematically linked to the internally calculated range and update dynamically based on the active mode.
The purpose of these zones is to visually map potential expansion and retracement behavior relative to the opening range, allowing users to study how price behaves after range resolution.
Customization & Inputs
All visual components can be adjusted through user inputs:
• Range Mode (V1–V4)
• Risk zone color
• Continuation zone color
• Breakout candle highlight color
• Optional status line display
This allows traders to adapt the framework to different chart layouts while preserving the underlying logic.
Development Methodology
The range models and projection logic were originally prototyped and tested in Python using historical market data.
Variations in volume behavior, volatility structure, and session timing were iterated to refine how ranges are defined and how post-range behavior is measured.
The most stable rule sets were then implemented into Pine Script as a closed-source framework to ensure consistency and prevent discretionary reinterpretation of the model.
Intended Use
This script is designed for visual and structural market analysis only.
It does not:
• generate trade signals
• execute trades
• claim profitability
• provide automated entries or exits
It is intended to help users objectively observe how price behaves around different opening range definitions under a unified framework.
Default settings are provided for demonstration purposes only.
Users should adjust configurations based on their own instruments, sessions, and timeframes.
Originality Statement
TradeX ORB Sniper is a proprietary TradeX Labs framework.
While it utilizes well-known market concepts such as opening ranges and volume behavior, it applies them through an original internal rule structure governing:
• how ranges are calculated
• how breakouts are defined
• how projections are derived
• how all modes remain behaviorally consistent
It is not a mashup of public indicators and does not rely on built-in strategy templates or public-domain scripts.
OB/OS Environment MTFThis indicator identifies overbought and oversold price environments — not reversal signals — using a multi-timeframe regime filter combined with volatility-adjusted stretch and confluence logic.
The goal is to highlight when price is objectively extended relative to trend, so traders can:
reduce chasing,
size appropriately,
manage risk,
or look for mean-reversion / pause scenarios without assuming a top or bottom.
How it works
1. Higher-Timeframe Regime (Stable)
Intraday charts → Daily regime
Daily charts → Weekly regime
Weekly charts → Monthly regime
Monthly charts → Monthly regime
Regime is determined using HTF close vs HTF EMA (optionally slope-filtered).
This keeps environments stable and avoids intrabar regime flipping.
2. Volatility-Adjusted Stretch
Price extension is measured as:
distance from EMA
normalized by ATR (z = (price − EMA) / ATR)
This allows the same logic to work across:
5m / 30m / 1h
Daily / Weekly / Monthly
3. Confluence Scoring (N-of-M)
An OB/OS environment only triggers when stretch and a minimum number of confirmations are present:
RSI extreme
Bollinger %B excursion
Stretch percentile vs its own history
Large candle relative to ATR
User-configurable confirmation count helps reduce noise.
4. Environment State (Sticky)
Once an overbought or oversold environment is detected:
the state persists until price decompresses or regime breaks
optional background shading visualizes the environment
arrows mark entry into the environment (not exits)
What this is / is not
This is:
an environment/context tool
multi-timeframe aware
volatility-normalized
designed to work across assets and timeframes
This is NOT:
a buy/sell signal
a reversal system
predictive of timing tops or bottoms
Strong trends can remain overbought/oversold for extended periods — by design.
Best use cases:
Risk management in strong trends
Avoiding late entries
Scaling decisions
Mean-reversion setups with confirmation
Context for options traders (IV, spreads, diagonals)
Feedback welcome
This is an early public release.
I’m specifically interested in feedback on:
confluence logic
regime behavior
parameter defaults by timeframe
false positives vs missed environments
If you have ideas or improvements, please comment — especially if you test across multiple markets or higher timeframes.
Volume Weighted LR Z ScoreThis indicator calculates the Volume Weighted Linear Regression
Z-Score (VWLRZS). Unlike a standard Z-Score which measures
deviation from a static mean, this oscillator measures the
statistical distance of price from a dynamic Volume-Weighted
Linear Regression Line (Analysis of Residuals).
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
standard Regression Residuals using the selected `Source`
for both the regression line (baseline) and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and fits the Linear Regression
through these statistical centers. This creates a
stable, trend-following expectation model.
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this regression line.
(Result: A Z-Score that measures deviations from the current
trend slope rather than a flat average).
2. **Visual Decomposition Logic:** Total Standard Deviation (of
Residuals) is the primary metric displayed. Since Standard
Deviations are not linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)),
this indicator calculates the *exact* Total Z-Score and partitions
the area underneath based on the Variance Ratio. This ensures the
displayed total volatility remains mathematically accurate while
showing relative composition.
3. **Normalization (Exponential Regression):** Includes an optional
'Normalize' mode. When enabled, the indicator calculates the
Linear Regression on logarithmic data. Mathematically, this
transforms the baseline into an **Exponential Regression Curve**,
making it ideal for analyzing assets with compounding growth
characteristics (constant percentage trend).
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted Z ScoreThis indicator calculates the Volume Weighted Z-Score (VWZS), a
statistical oscillator that measures the number of standard deviations
the price is removed from its mean. It combines robust volatility
decomposition with advanced divergence detection.
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
a simple (Volume-Weighted) Standard Deviation using the
selected `Source` for both the baseline and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and volatility. This creates a
stable, mathematically idealized expectation value (mu).
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this statistical baseline.
(Result: A Z-Score that combines a noise-filtered trend
baseline with a highly reactive price signal).
2. **Visual Decomposition Logic:** Total Standard Deviation is the
primary metric displayed. Since Standard Deviations are not
linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)), this indicator
plots the *exact* Total StdDev and partitions the area underneath
based on the Variance Ratio. This ensures the displayed total
volatility remains mathematically accurate while showing relative
composition.
3. **Normalization (Geometric Average):** Includes an optional
'Normalize' mode. When enabled, the indicator uses a
Geometric Moving Average (GMA) as its baseline and applies a
statistical correction for the log-normal distribution
ensuring symmetry between upside and downside movements.
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Bit Secure - Index Structure Engine ( Hybrid )Bit Secure – Index Structure Engine
( RSI Caution + No-Trade Range)
Bit Secure – Index Structure Engine is a structure-first intraday indicator designed for index traders (NIFTY / BANKNIFTY / FINNIFTY) who want clarity, discipline, and noise-free execution.
This tool focuses on EMA structure, VWAP context, priority opening moves, and intelligent RSI caution signals — without blocking valid trades.
🔹 Core Philosophy
“Trade structure first, momentum second, confirmation last.”
The indicator separates:
Trend entries (CORE & FAST)
Opening opportunity (PRIORITY)
Early reversal awareness (RSI Caution)
Sideways / no-trade zones (Manual Range Filter)
🚀 FEATURES
✅ EMA STRUCTURE ENGINE
EMA 9 & EMA 21 for core trend detection
EMA 5–21 fast entries (optional)
Clean crossover-based logic (no repaint)
⚡ CORE & FAST SIGNALS
BUY / SELL CORE → Main trend confirmation
FAST signals → Early continuation entries
Fully optional, toggle-controlled
🎯 PRIORITY OPENING ENTRY (09:15–09:45)
One-time high-probability retest / crossover entry
Designed for first 30 minutes volatility
Automatically resets every trading day
📉 VWAP NOISE FILTER (Optional)
Blocks trades when price is too close to VWAP
Helps avoid choppy & mean-reversion zones
⚠️ RSI CAUTION SIGNALS (NON-BLOCKING)
⚠️ These are alerts, NOT trade entries
RSI caution appears only when:
Cross happens inside OB / OS
Cross on zone exit
Cross just after zone exit
❌ No random mid-zone RSI noise
❌ No sideways false alerts
Perfect for:
Spotting early trend exhaustion
Managing open trades
Avoiding over-trading in trends
🚫 MANUAL NO-TRADE RANGE (Power Feature)
Manually define price range
ALL signals blocked inside this zone
(CORE / FAST / PRIORITY / RSI)
Range is visually highlighted on chart
Best use cases:
Event days
Option decay zones
Choppy consolidation areas
🎛️ FULL CONTROL
Every module is independently switchable:
FAST EMA
PRIORITY Entry
VWAP Filter
RSI Caution
Manual No-Trade Range
👉 Trade your style, not forced logic.
📊 BEST TIMEFRAMES
5-minute (Recommended)
Works on Index charts only
NIFTY
BANKNIFTY
FINNIFTY
⚠️ IMPORTANT NOTE
This is NOT a buy/sell recommendation
RSI signals are caution alerts, not entries
Use with proper risk management
💡 WHO IS THIS FOR?
✔️ Serious intraday traders
✔️ Price-action + structure followers
✔️ Traders tired of over-signals
✔️ Those who want clarity over complexity
🔒 Built for discipline.
🔥 Designed for structure.
🎯 Powered by context, not noise.
ATR Box Compact TR vs ATR 2.0Updates to ATR Box:
Fields added to set the location of ATR Box on the chart.
Daily Range is shown (also with %) to the ATR D1 14.
The color of the box can be modified to the % of the TR (five levels can be definened).
Application of the ATR Box
This indicator is used when trading stock reversals. It is used in conjunction with other indicators. I needed additional, concise information about the daily range compared to the ATR D1 14. For better visualization, I created different levels, color-coded according to the percentage value of the TR compared to the ATR.
Beta Coefficient & RSI Table (Midcaps vs Majors)Beta Coefficient & RSI Table (Midcaps vs Majors)
This script builds a comprehensive beta comparison framework between midcap assets and majors for benchmarks, enhanced with a simple RSI midline strategy for clean entry and exit signaling.
In addition to beta-based relative analysis, the script:
Computes raw RSI values on midcap assets for standalone trend qualification
Evaluates every midcap/major ratio combination using the same RSI-based regime logic
Produces binary (0 / 1) signals suitable for systematic filtering and automation
Designed with automation in mind, this script is perfect for daily alerts that can send webhooks externally, and is fully compatible to reliably daily close updates for:
Ratio beta comparisons (midcaps vs majors)
Binary RSI crossover signals on each ratio
Base midcap trend state (RSI > 45 indicating an active uptrend) - 45 made for a slightly faster entry signal if used as a preliminary filter
This makes the table ideal for automated system building, signal aggregates, and hands-off portfolio logic.
Full credits to @MarktQuant and @NianiaFrania🐸 for the original script source.
ADR% - Average Daily Range % by TrinhDuongSMWThe ADR% (Average Daily Range Percentage) is a volatility measurement tool designed to help traders understand the typical price movement of a stock over a specific period. Unlike the standard ATR (Average True Range) which uses absolute price points, ADR% expresses volatility as a percentage of the stock's price, making it easier to compare volatility across different tickers regardless of their share price.
Squeeze Momentum + ADX MemoThis indicator is a comprehensive technical analysis tool that combines the volatility detection of the Squeeze Momentum with the trend strength of the ADX (Average Directional Index). It is optimized to provide a clear reading of price action across multiple timeframes.
Unlike standard oscillators, this customized version by Memo integrates a dynamic Multi-Timeframe (MTF) info panel and a visual scaling system, allowing you to monitor strength and momentum in a single pane without cluttering your price chart.
🛠 KEY FEATURES
Squeeze Momentum: Identifies compression phases (red dots) and volatility breakouts (green dots).
Dynamic ADX: ADX and DI+/DI- lines are proportionally scaled to the histogram for intuitive visualization.
Multi-Timeframe Analysis (MTF): A dedicated dashboard shows trend strength and direction (EMA 200) for both the current chart and a higher timeframe (e.g., 1D).
Divergence Detector: Automatically identifies Bullish and Bearish divergences (BULL/BEAR DIV).
Signal Labels: LONG and SHORT markers triggered when trend strength is confirmed.
📘 DETAILED USER GUIDE
1. Understanding the Elements
Histogram: Cyan/Blue (Bullish), Red/Maroon (Bearish).
Center Dots: Red dots indicate the market is "squeezing" (price compression/accumulation). Green dots indicate the squeeze has released and a trend is underway.
White Line (ADX): Above the Critical Level (23) indicates a strong trend. Below 23 suggests a range-bound or "choppy" market.
2. Trading Strategy (High Probability Setup)
LONG Entry (Buy):
Squeeze: Red dots must be present (accumulation phase).
Shift: Histogram starts moving up or changes to recovery colors.
Strength: The ADX (white line) crosses above the critical level (23).
Confirmation: DI+ (green) must be above DI- (red).
Macro Filter: The dashboard must show a BULLISH trend on the Higher Timeframe.
SHORT Entry (Sell):
Squeeze: Red dots must be present.
Shift: Histogram starts dropping with increasing momentum.
Strength: The ADX crosses above the critical level (strength is gaining on the downside).
Confirmation: DI- (red) must be above DI+ (green).
Macro Filter: The dashboard must show a BEARISH trend on the Higher Timeframe.
3. Divergences & Exits
Use the BULL DIV and BEAR DIV labels as warning signals. A divergence against your current position is a clear sign to take profits or tighten your Stop Loss.
4. Info Panel (Dashboard)
ADX Metric: If both timeframes (Current and Higher) are green, the probability of a successful trend trade increases significantly.
Trend: Based on the 200 EMA. Memo's Golden Rule: Avoid trading against the higher timeframe trend to stay away from "fakeouts."
Reverse/Bounce LiteReverse/Bounce Indicator Lite
(EN) Indicator shows expected price rebound/reverse positions.
Calculations starts at first tick of every new bar/candlestick. In settings you can set range for calculations, text on label, label color and text color. Alerts working only on 15M timeframe or less. Feel free to contact me and leave comments when you have questions or suggestions.
(RU) Индикатор показывает ожидаемые места отскока/разворота цены.
Расчеты начинаются с первого тика каждой новой свечи/бара. В настройках вы можете задать диапазон для расчетов, текст на метке, цвет метки и цвет текста. Оповещения работают только на таймфрейме 15 минут или меньше. По вопросам и предложениям обращайтесь пишите в личные сообщения или оставляйте комментарии.
Mid Line📌 Mid Line – Volatility-Based Equilibrium Levels
This indicator draws horizontal mid lines at the midpoint of high-volatility candles.
When a candle exceeds the defined volatility threshold, its midpoint is marked as a potential short-term equilibrium level. These levels often act as temporary support or resistance, especially after strong impulsive moves.
If price pulls back, it may react around the mid line before continuing or breaking, helping traders identify reaction zones, pullback areas, and momentum shifts.
Key features:
Detects strong candles based on body volatility
Draws midpoint equilibrium levels automatically
Adjustable line length (up to 6 bars)
Designed for clean price action and intraday analysis
Best used on lower and intraday timeframes after impulsive moves.
[AboBassel] RS + RS.ROC + Inverted ATR (Unified Channel)
This is a multi-indicator channel tool combining Relative Strength (RS), RS Rate of Change (RS.ROC), and Inverted ATR Percentage (ATRP) into a single unified channel for clear visual trend analysis.
Features:
• All three lines are normalized into one visual channel with five distinctive threshold levels (Upper/Lower Curbs, Inner Bands, and Middle).
• RS , ATR , ROC Lines all are invertable for better follow up on trends
• RS.ROC period and timeframe are editable independently from RS.
• ATR time frame and lookback period are fully adjustable.
• Channel thresholds are fully editable. Lines can exceed upper/lower curbs, showing extreme conditions.
• Suitable for trend detection, swing trading, and risk assessment.
Usage Tips:
• Look for lines crossing bands or curbs for potential trade setups.
• Observe background color for overall market sentiment.
• Major blue arrows indicate strong shifts in trend direction.
Ideal For: Swing traders, trend followers, and advanced technical analysts who want combined momentum, volatility, and relative strength insights in a single chart.
Manual "Frozen" ATR Multi-Levels [Fixed Fibonacci Style]Overview
This tool is designed for traders who use ATR (Average True Range) to set their take-profit and stop-loss levels but are tired of standard ATR indicators that "wiggle" or move as volatility changes during the trade.
Unlike standard indicators, this tool behaves like a drawing tool (similar to a Fibonacci Retracement). You click your entry price once, input the current ATR value, and the script "freezes" 8 perfectly horizontal, dashed levels on your chart.
Key Features
Custom Entry Anchor: Click anywhere on the chart to set your "Open Price."
No-Wiggle Levels: Once placed, the lines stay perfectly straight, regardless of how the live ATR fluctuates.
Strategic Labels:
+1 to +5 ATR: Clear upside targets for scaling out.
-2 ATR STOP LOSS: Automatically labeled for disciplined risk management.
-3 ATR EMER STOP: A final "Emergency Stop" level for high-volatility events.
High Visibility: Heavy dashed lines with color-coded labels (Green for Profit, Red for Risk, Gray for Entry).
Fully Customizable: Toggle any level on/off to keep your chart clean.
How to Use
Note the current ATR value from your preferred timeframe.
Load this script and click your Entry/Open Price on the chart.
In the Settings box that appears, type the ATR value into the "Manual ATR Value" field.
VolumeX Candle Engine By GRID N GRITSWhat it is
Volume X Candle Engine is a price-action + volume system that converts raw candles into a clear control narrative — using candle anatomy, relative volume, and a buyer/seller control heatmap to show who’s actually in charge of price.
It’s built to answer one question fast:
Is this move real, or is it just noise?
Core Features
1) Volume-Weighted Candle Classification
Candles are evaluated in relative volume context, not isolation.
You immediately see:
high-participation candles (real intent)
low-participation candles (drift / chop)
volume spikes (events, stops, forced moves)
exhaustion vs continuation (same size candle, different meaning)
2) Candle Strength & Control Readout
Candle bodies vs wicks are combined with volume to identify:
Control candles → clean bodies, follow-through favored
Rejection candles → dominant wicks, failed attempts
Indecision candles → balance, no clear winner
Wicks tell the story. Volume tells whether the story matters.
3) Buyer / Seller Control Heatmap (Background)
A background heatmap visually shows who has control:
buyer-dominant zones
seller-dominant zones
fading control / transition areas
This lets you:
see trend pressure without staring at indicators
spot shifts in control before price fully reacts
instantly recognize when moves are being absorbed or supported
It’s contextual, not noisy — meant to support the candles, not override them.
4) “Decision Candle” Detection
The engine highlights candles that tend to matter most:
first break of structure
first failed reclaim
first control flip at key levels
These are your pay-attention moments, not random signals.
5) Trend vs Chop Filtering
Helps separate:
trend conditions → continuation more likely
chop conditions → fakeouts & whipsaws more likely
So you stop forcing trades in environments that punish impatience.
6) Momentum Shift & Fatigue Awareness
Detects early warning signs:
rising price + declining volume
repeated wick rejection at the same level
large candle with no follow-through
volume spikes after extended moves (climax risk)
This is about risk awareness, not prediction.
7) Reversal Risk Zones
Identifies areas where continuation becomes fragile:
extended runs with waning participation
heavy rejection inside control zones
control heatmap fading near prior structure
Not calling tops or bottoms — just showing when odds shift.
8) Lower-Timeframe Structure Clarity
On 5m / 15m / 30m:
clearer reads on who’s winning the fight
earlier clues of control shifts
better alignment with higher-timeframe structure
Lower TF doesn’t predict higher TF — it gives a glimpse into pressure.
9) Clean, Readable Visual Design
Designed for speed:
minimal noise
candle-first visuals
background heatmap for context
no cluttered dashboards or signal spam
StradihgyOverview
This is a structured intraday trading framework built around identifying when market conditions are actually worth participating in. Instead of forcing trades, the system is designed to engage when price behavior shows alignment, participation, and directional intent.
The goal is not signal volume. The goal is quality control.
Core Design
* Multi-layer confluence must align before a setup appears
* Filters are in place to reduce participation during unstable or inefficient price conditions
* Focuses on sustained movement rather than emotional spikes
* Context and structure are evaluated together, not in isolation
The framework behaves more like a decision engine than a traditional indicator.
Adaptive Participation
While the system is naturally selective, it is also built with adaptive engagement logic.
When market conditions become favorable such as clean structure, sustained flow, and strong participation, the model can be configured to increase trade frequency and take advantage of extended opportunity windows.
In quieter or less organized environments, it scales back automatically.
This allows traders to shift between:
Precision mode (high selectivity)
Opportunity mode (increased participation during strong conditions)
Trade Management Philosophy
Management is a defining component of the framework:
* Trades aim to capture efficient portions of movement
* Exposure is reduced when structure weakens or opposing pressure builds
* Exit logic is systematic and condition based
This keeps performance driven by process rather than hope.
Performance Style
Traders can expect:
* Structured setups during organized price action
* Lower noise compared to reactive indicators
* A process driven approach
* Stability focused trade behavior
The design prioritizes consistency mechanics over aggressive risk exposure.
Who This Fits
Best suited for traders who value:
* Rule based execution
* Context-aware setups
* Risk conscious participation
* A system that adapts instead of forcing trades
Closing Note
This is a process-first trading framework built around structure, control, and adaptability. It is designed to operate in real market conditions not idealized ones and can be tuned for both selectivity and opportunity expansion when conditions justify it.
Use responsibly alongside proper risk management. Not financial advice. Feel free to message me for access.
NWOG/NDOG + Quarterly Theory (Dark Theme)Description: NWOG/NDOG + Quarterly Theory (Integrated)
This indicator combines two powerful price action concepts into a single, cohesive tool designed for intraday and swing traders. By merging Opening Gaps with Time-Based Quarterly Theory, traders can identify high-probability institutional footprints and manipulation cycles on a single chart.
🌓 The Concept
This script bridges the gap between Static Price Levels (Opening Gaps) and Dynamic Time Windows (Quarterly Cycles). It allows you to see how price reacts to structural gaps during specific phases of the weekly market cycle (Accumulation, Manipulation, Distribution).
🚀 Key Features
1. NWOG & NDOG (New Week/Day Opening Gaps)
Based on ICT concepts, these gaps represent "true" institutional openings.
Automatic Gap Detection: Plots New Week (NWOG) and New Day (NDOG) gaps.
Consequent Encroachment (C.E.): Optional toggle to view the 50% equilibrium level of every gap.
Historical Tracking: Look back at previous gaps to find "Event Horizons" where multiple gaps overlap or align.
Dark Mode Optimized: Clean, high-contrast UI tailored for dark-themed terminals.
2. Quarterly Theory (Weekly Cycles)
Divides the trading week into four distinct "Quarters," each with a specific institutional objective:
Q1 (Monday): Accumulation – Defines the initial range.
Q2 (Tuesday): Manipulation – Features the "Judas Swing" and Fakeouts.
Q3 (Wednesday): Distribution – The primary trend expansion of the week.
Q4 (Thursday): Extension/Reversal – The final push or weekly profit-taking.
3. Confluence Tools
Weekly True Open: Highlights the Tuesday 00:00 opening price, a critical pivot for bullish or bearish bias.
Fakeout Detection: Identifies potential traps when price sweeps the Monday range but fails to hold, confirmed by VWAP and True Open confluence.
Monday Range Box: Automatically draws the high/low boundary of the first quarter.
🛠 How to Use
Identify the Bias: Use the Weekly True Open (Red Line). If price is above the True Open during Q3, look for long distribution.
Locate Liquidity: Look for NWOG/NDOG levels that sit just outside the Monday Range. These are prime targets for the Q2 Manipulation phase.
Entry Confluence: A "Fakeout" signal occurring at a New Day Opening Gap level provides a high-probability "SMT-style" or "Stop Run" entry.
⚖️ Credits & Original Authors
This script is a collaborative merge and refinement of existing institutional logic:
NWOG/NDOG Logic: Based on the framework by cryptonnnite.
Quarterly Theory Logic: Based on the Weekly Quarters/Time-Price theory.
Refinement: Optimized for standalone performance (library-free) and Dark Theme visibility.
Disclaimer: Trading involves significant risk. This tool is for educational purposes and should be used in conjunction with a complete trading plan.
Multi-Asset Rotation ModelOverview
This indicator provides a quantitative framework for analyzing a dual-leg rotation model between growth assets (Equities) and defensive assets (Precious Metals). It uses a mathematical approach—selectable between DMI-based Trend Spread or Rate of Change (ROC)—to determine relative strength and simulate a hypothetical rebalanced portfolio.
How it Works
The script evaluates two primary "legs" of a portfolio:
Domestic Growth: Rotates between Midcap (NSE:NIFTYMIDSML400) and Metals based on relative momentum.
International Growth: Rotates between NASDAQ-100 (NSE:MON100) and Metals.
Hedge Logic: When the model shifts to defensive mode, it further splits the allocation between Gold and Silver based on their internal relative strength.
Key Features
Dual Signal Engine: Toggle between a DMI (Directional Movement Index) spread or simple ROC (Rate of Change) to suit your research style.
Friction Modeling: Includes a user-defined "Slippage" input to account for the impact of transaction costs and tracking errors in hypothetical historical data.
Performance Dashboard: Displays total return, CAGR (Average Annual Return), Sharpe Ratio, and Rolling Returns for the model vs. benchmarks.
Dynamic Visualization: The Strategy NAV line changes color based on the model's current regime (Aggressive vs. Defensive).
Compliance & Risk Warning
Hypothetical Performance: This script displays a "Net Asset Value" (NAV) line based on historical data. These results are hypothetical and do not represent actual trading.
Educational Use Only: This tool is intended for research and backtesting analysis. It does not provide trade signals or investment advice.
No Future Predictions: Past performance, as modeled here, is not indicative of future market behavior.






















