Gold Macro Projection ModelGOLD MACRO PROJECTION MODEL
Multi-Factor Fair Value Estimation for Gold
OVERVIEW
The Gold Macro Projection Model estimates gold's fair value based on its historical relationships with key macroeconomic drivers. By synthesizing data from silver , M2 money supply , the US Dollar Index , TIPS (real rates proxy) , and major equity indices , this indicator projects where gold should theoretically be trading—helping traders identify potential overvaluation and undervaluation conditions.
HOW IT WORKS
This indicator employs three complementary projection methodologies :
Correlation-Weighted Z-Score Composite (50% weight)
Calculates rolling correlations between gold and each input factor. Factors with stronger correlations receive more influence. Each factor is normalized to a z-score, combined into a composite, then converted back to gold's price scale.
Silver/Gold Ratio Mean Reversion (35% weight)
The silver/gold ratio historically exhibits mean-reverting behavior. This component projects gold's implied price based on current silver prices and the historical average ratio.
M2 Money Supply Relationship (15% weight)
Gold tracks monetary expansion over long time horizons. This anchors the projection to the fundamental relationship between gold and the monetary base.
INPUT FACTORS
Silver — Strong positive correlation; precious metals move together
M2 Money Supply — Positive correlation; gold as inflation hedge
US Dollar Index (DXY) — Typically negative correlation; inverse relationship
TIPS ETF — Real interest rate proxy; gold responds to real yields
Equity Indices — Variable correlation; risk-on/risk-off dynamics
VISUAL ELEMENTS
Yellow Line — Actual gold price
Aqua Line — Projected fair value
Green Fill — Gold trading below projection (potentially undervalued)
Red Fill — Gold trading above projection (potentially overvalued)
Aqua Bands — Standard deviation envelope around projection
INFO TABLE
The indicator displays a real-time information panel showing:
Current actual vs. projected price
Divergence percentage and Z-score
Rolling correlations for each factor
Dynamic weight allocation
Buy/Sell signal based on divergence extremes
SIGNAL INTERPRETATION
STRONG BUY — Z-score below -2 (extremely undervalued)
BUY — Z-score between -2 and -1 (moderately undervalued)
NEUTRAL — Z-score between -1 and +1 (fairly valued)
SELL — Z-score between +1 and +2 (moderately overvalued)
STRONG SELL — Z-score above +2 (extremely overvalued)
SETTINGS
Correlation Period — Lookback for correlation calculations (default: 60)
Regression Period — Lookback for mean/standard deviation (default: 120)
Smoothing Period — EMA smoothing for projection line (default: 10)
Auto Weights — Toggle between correlation-based or manual weights
Band Multiplier — Standard deviation multiplier for bands (default: 1.5)
ALERTS
Gold Extremely Undervalued — Z crosses below -2
Gold Extremely Overvalued — Z crosses above +2
Gold Crossed Above Projection
Gold Crossed Below Projection
BEST PRACTICES
Use on daily timeframe for most reliable signals
Combine with the companion Gold Divergence Oscillator for timing
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Always use proper risk management.
Educational
Silver Projection DivergenceSILVER PROJECTION DIVERGENCE
Standardized Fair Value Divergence Oscillator
OVERVIEW
The Silver Projection Divergence oscillator is the companion indicator to the Silver Macro Projection Model. It quantifies the gap between silver's actual price and its projected fair value, displaying this divergence as a standardized z-score. This format makes it easier to identify extreme conditions and time entries/exits based on mean reversion.
HOW IT WORKS
The oscillator converts raw divergence (Actual Silver - Projected Silver) to a z-score by normalizing against its historical distribution:
Z-Score > 0 - Silver trading ABOVE projected value (overvalued)
Z-Score < 0 - Silver trading BELOW projected value (undervalued)
Z-Score > 2 - Extreme condition (2 standard deviations)
VISUAL ELEMENTS
Main Plot
Green line/histogram - Negative divergence (undervalued)
Red line/histogram - Positive divergence (overvalued)
Color intensity increases when divergence is expanding
Reference Lines
+2 sigma / -2 sigma (dashed) - Extreme zones
+1 sigma / -1 sigma (dotted) - Moderate deviation
Zero line - Fair value equilibrium
Signal Markers
Green Triangle (bottom) - Z-score crosses below -2 (STRONG BUY)
Red Triangle (top) - Z-score crosses above +2 (STRONG SELL)
Background
Light red background - Extreme overvaluation (Z > 2)
Light green background - Extreme undervaluation (Z < -2)
SIGNAL INTERPRETATION
Z > +2.0 - Extreme Overvaluation - STRONG SELL / Take profits
Z +1.0 to +2.0 - Moderate Overvaluation - Caution / Reduce exposure
Z -1.0 to +1.0 - Fair Value Range - Neutral / Hold
Z -2.0 to -1.0 - Moderate Undervaluation - Accumulate / Scale in
Z < -2.0 - Extreme Undervaluation - STRONG BUY signal
COMPONENT TABLE
The bottom-right table breaks down divergence by factor:
Gold Ratio - Deviation from gold-implied fair value
M2 Supply - Divergence from monetary-implied value
DXY Signal - Dollar strength bullish/bearish indication
Equities - Equity market positioning signal
OVERALL - Combined signal with Z-score
TRADING APPLICATIONS
Mean Reversion Strategy
Enter LONG when Z < -2 and begins rising
Enter SHORT when Z > +2 and begins falling
Use zero-line crossings for trend confirmation
Trend Following Filter
Only take long trades when Z < 0 (undervalued)
Only take short trades when Z > 0 (overvalued)
Divergence Confirmation
Bearish: Price makes new highs while Z-score makes lower highs
Bullish: Price makes new lows while Z-score makes higher lows
ALERTS
Extreme Undervaluation - Z crosses below -2
Extreme Overvaluation - Z crosses above +2
Divergence Turned Positive - Crossed above zero
Divergence Turned Negative - Crossed below zero
COMBINED USAGE
For best results, use both with Silver Macro Projection Model - indicator:
Main Indicator - Visual context of actual vs. projected on price chart
Divergence Oscillator - Precise measurement for timing decisions
The main indicator (Silver Macro Projection Model - ) shows where silver should be; this oscillator shows how extreme the mispricing is and when to act.
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Market conditions can alter historical relationships. Always use proper risk management.
Silver Macro Projection ModelSILVER MACRO PROJECTION MODEL
Multi-Factor Fair Value Estimation for Silver
OVERVIEW
The Silver Macro Projection Model estimates silver's fair value based on its historical relationships with key macroeconomic drivers. By synthesizing data from gold, M2 money supply, the US Dollar Index, and major equity indices, this indicator projects where silver should theoretically be trading, helping traders identify potential overvaluation and undervaluation conditions.
HOW IT WORKS
This indicator employs three complementary projection methodologies:
Correlation-Weighted Z-Score Composite (50% weight) - Calculates rolling correlations between silver and each input factor. Factors with stronger correlations receive more influence. Each factor is normalized to a z-score, combined into a composite, then converted back to silver's price scale.
Gold/Silver Ratio Mean Reversion (35% weight) - The gold/silver ratio historically exhibits mean-reverting behavior. This component projects silver's implied price based on current gold prices and the historical average ratio.
M2 Money Supply Relationship (15% weight) - Silver tracks monetary expansion over long time horizons. This anchors the projection to the fundamental relationship between silver and the monetary base.
INPUT FACTORS
Gold - Strong Positive - Precious metals move together; silver amplifies gold
M2 Supply - Positive - Inflation hedge; expands with monetary base
DXY - Negative - Dollar strength pressures commodity prices
S&P 500 - Variable - Risk sentiment indicator
Dow Jones - Variable - Industrial/economic health proxy
Nasdaq 100 - Variable - Growth/risk appetite indicator
Russell 2000 - Variable - Small-cap risk sentiment
VISUAL ELEMENTS
Silver Line (Gray) - Actual silver price
Yellow Line - Model's projected fair value
Green Fill - Silver trading BELOW projection (potentially undervalued)
Red Fill - Silver trading ABOVE projection (potentially overvalued)
INFORMATION TABLE
The indicator displays a real-time panel showing:
Current correlation coefficients for each factor
Dynamic weight allocation based on correlation strength
Z-scores for each input factor
Actual vs. projected silver price
Percentage divergence from fair value
Signal classification (Strong Buy to Strong Sell)
SETTINGS
Lookback Settings
Correlation Period (default: 60) - Bars used for rolling correlations
Regression Period (default: 120) - Bars for z-score normalization
Smoothing Period (default: 10) - EMA smoothing on projection
Weight Settings
Use Auto Correlation Weights - Weights adjust dynamically based on correlation strength
Manual Weights - Override with custom factor weights
ALERTS
Silver Extremely Undervalued (Z < -2)
Silver Extremely Overvalued (Z > +2)
Price crossed above projection
Price crossed below projection
BEST PRACTICES
Use on daily timeframe for most reliable signals
Combine with the companion Divergence Oscillator for timing
Extreme divergences (>2 sigma) historically precede mean reversion
Consider macro environment as correlations shift during different regimes
Longer regression periods (150-250) for investing; shorter (60-90) for trading
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Always use proper risk management.
ADIBABA - 4x EMAThis indicator is based on the Exponential Moving Average (EMA) and is designed to help traders identify trend direction, momentum, and price structure with clarity.
The script provides fully customizable EMA length along with an optional Smoothing EMA (SMS), allowing traders to fine-tune the indicator according to their trading style and market conditions.
It is suitable for intraday, swing, and positional traders and works well across multiple asset classes.
How It Works
• The primary EMA follows price movement and defines the trend
• The smoothing EMA reduces market noise and improves signal quality
• Price above EMA indicates a bullish bias
• Price below EMA indicates a bearish bias
This combination helps filter false signals and provides stronger trend confirmation.
Sarhan Smart Map 📌 SARHAN Smart Map – Smart Money Market Visualization Tool
SARHAN Smart Map is a multi-feature market visualization indicator designed to assist traders in analyzing market structure, liquidity behavior, and price imbalances using concepts commonly associated with Smart Money and institutional-style analysis.
The indicator combines several analytical tools into a single, configurable framework intended for chart analysis and educational use. All components are optional and can be enabled or disabled based on the user’s preferences and trading style.
🔍 Indicator Components Overview
1. Market Structure (BOS & CHoCH)
Description:
Identifies structural shifts using swing high/low logic.
Break of Structure (BOS): Occurs when price breaks a previous swing in the direction of the prevailing structure.
Change of Character (CHoCH): Occurs when price breaks structure against the current directional bias.
Purpose:
Helps visualize potential continuation or transition phases in market structure.
2. Order Blocks
Description:
Order Blocks are highlighted based on the last bullish or bearish candle preceding a significant structural break.
Zones are automatically tracked and updated based on price interaction.
Purpose:
Provides visual reference areas where price previously reacted with momentum.
3. Fair Value Gaps (FVG)
Description:
Detects price imbalances formed when a candle range does not fully overlap with adjacent candles.
These areas are displayed as potential rebalancing zones.
Purpose:
Helps visualize inefficiencies in price movement.
4. Liquidity Grabs
Description:
Highlights scenarios where price temporarily exceeds recent highs or lows before reversing.
Purpose:
Used to visualize potential stop-run behavior around key levels.
5. Buy-Side & Sell-Side Liquidity Zones
Description:
Identifies clusters of recent highs and lows that may act as areas of interest.
Zones are displayed above or below current price.
Purpose:
Provides insight into where price may interact with previously formed levels.
6. Premium & Discount Zones
Description:
Divides the recent price range into upper (Premium) and lower (Discount) areas.
Purpose:
Used as a contextual reference to evaluate price location within a defined range.
7. Trend Filter
Description:
An optional moving average–based filter that reflects directional slope.
Visual effects may include candle coloring or background shading.
Purpose:
Assists in visualizing general directional conditions.
8. Market Sessions Overlay
Description:
Displays session ranges for:
Asian Session
London Session
New York Session
Purpose:
Helps visualize when specific price behaviors occur during different trading hours.
🧠 General Usage Notes
The indicator is not a standalone trading system.
All tools are intended to be used as visual references alongside the user’s own analysis.
Settings can be adjusted to suit different markets and timeframes.
Users are encouraged to combine components selectively rather than relying on all tools simultaneously.
⚠️ Script Attribution & Logic
This script incorporates original implementations inspired by commonly known technical analysis concepts such as:
Market structure visualization
Fair value gaps
Liquidity zones
All logic has been independently implemented and unified within a single framework.
📎 Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not provide financial, investment, or trading advice.
Past price behavior does not guarantee future results.
Users are responsible for their own trading decisions and risk management.
Developed by: Mahmoud Sarhan
Order Blocks+swl - Dual MTF Fixed ExtendedOrder Blocks+SWL - Dual MTF with Swing Validation
Overview
This advanced TradingView indicator combines Multi-Timeframe Order Block detection with Swing High/Low validation to identify high-probability supply and demand zones. The tool displays order blocks from higher timeframes and current timeframe, then highlights those that align with swing points for enhanced reliability.
🔧 Key Features
Multi-Timeframe Order Block Detection
- Current Timeframe: Detects order blocks on the chart's native timeframe
- HTF1 & HTF2: Two customizable higher timeframes (default: 60m, 240m)
- Independent Toggles: Enable/disable each timeframe's OBs separately
Smart Order Block Logic
- Long Order Blocks: Formed when current candle's LOW > middle candle's HIGH
- Short Order Blocks: Formed when current candle's HIGH < middle candle's LOW
- Persistent Display: Boxes extend until price fills the zone
- Color Coding:
- Current TF: Green (long) / Red (short)
- HTF1: Orange (long) / Maroon (short)
- HTF2: Blue (long) / Purple (short)
Swing Point Integration
-Swing Lows (SWL) & Swing Highs (SWH): Automatically detected using pivots
-Validation Overlay: Highlights order blocks that coincide with swing points
- Lime boxes: Long OBs with SWL confirmation
- Fuchsia boxes: Short OBs with SWH confirmation
Visual Elements
- Order Block Boxes: Semi-transparent zones with bold borders
- Entry Markers: Triangle shapes below/above bars for visual confirmation
- Swing Labels: SWL/SWH labels at pivot points
- Valid OB Overlay: Distinctive colored boxes for validated zones
⚙️ Input Parameters
Display Controls
- `Show Long OBs`: Toggle long order block display
- `Show Short OBs`: Toggle short order block display
- `Show Current TF OBs`: Display order blocks from current timeframe
- `Use HTF1/HTF2 OBs`: Enable higher timeframe order blocks
- `HTF1/HTF2`: Customizable timeframe strings
Technical Settings
- `My Input`: Maximum unfilled boxes to display (50-50000, default: 1000)
- `Swing Lookback / Forward Length`: Pivot detection sensitivity (default: 10)
📊 How It Works
1. Order Block Detection: The indicator scans three timeframes for specific candlestick patterns that indicate potential supply/demand zones.
2. Swing Point Detection: Simultaneously identifies swing highs and lows using pivot logic.
3. Validation Overlay: When an order block forms on the same candle as a swing point, it creates a special highlighted zone indicating higher probability.
4. Memory Management: Automatically manages box count to prevent performance issues while maintaining historical context.
🎯 Trading Applications
- Trend Continuation: Validated order blocks in trend direction offer high-probability entries
- Reversal Zones: Swing-aligned order blocks at key levels suggest potential reversals
- Multi-Timeframe Analysis: Higher timeframe OBs provide stronger support/resistance
- Zone Trading: Trade bounces from or breaks through validated zones
💡 Usage Tips
1. Prioritize Validated Zones: Focus on lime/fuchsia boxes as they have swing confirmation
2. Timeframe Hierarchy: HTF2 (240m) > HTF1 (60m) > Current TF for zone strength
3. Combine with Price Action: Use zones alongside candlestick patterns and volume
4. Risk Management: Place stops beyond opposite side of order block
⚠️ Limitations
- Not a standalone trading system - combine with other analysis
- May repaint on current bar until close
- Higher timeframes require sufficient historical data
- Swing detection sensitivity depends on length parameter
---
Note: This tool is for educational purposes. Always practice proper risk management and backtest strategies before live trading.
HaP RSIComprehensive Guide to HaP RSI Indicator
Introduction
The HaP RSI indicator is a custom technical analysis tool designed to replicate the logic and structure of the HaP MACD indicator but applied to the Relative Strength Index (RSI). This indicator combines traditional RSI concepts with advanced smoothing techniques, dynamic signal generation, and visual cues to help traders identify potential entry and exit points, trend strength, and momentum shifts.
This document provides an exhaustive explanation of the indicator's logic, its components, and practical strategies for trading with it.
Logic and Structure of HaP RSI
The HaP RSI indicator is built on the foundation of the RSI oscillator, which measures the speed and change of price movements to identify overbought and oversold conditions. The indicator enhances RSI by incorporating the following elements:
RSI Calculation: Uses a customizable length (default 10) and allows selection of smoothing type (EMA or SMA) for flexibility.
Signal Line: A moving average of the RSI (default length 9) that acts as a reference for crossovers and trend confirmation.
DEMA Logic: Double Exponential Moving Average applied to RSI and its signal line to generate dynamic dot signals for entries and exits.
Visual Elements: Midline at 50, Overbought/Oversold levels at 70 and 30, color-coded dots (Blue, Green, Orange, Red) for intuitive interpretation.
Conditions and Signal Generation
The indicator uses a sophisticated set of conditions to determine market states and generate actionable signals:
Buy Condition: Triggered when the DEMA of RSI is above the DEMA of its signal line AND the DEMA signal line is rising. This indicates strengthening bullish momentum.
First Signal Dot: Appears as a Blue dot when the buy condition becomes true for the first time after being false. This marks the start of a potential bullish phase.
Ongoing Signal Dot: Appears as Green if RSI is rising or Orange if RSI is falling while the buy condition remains true. This provides real-time feedback on momentum strength.
Exit Dot: Appears as Red when the buy condition turns false after being true, signaling a potential end to the bullish phase.
Crossovers: RSI crossing above its signal line (bullish) or below (bearish) are calculated but hidden by default, offering additional confirmation if enabled.
Trading Strategies Using HaP RSI
The HaP RSI indicator can be used in multiple ways to enhance trading decisions. Below are detailed strategies and best practices:
1. Entry Strategies
Enter long positions when a Blue dot appears, confirming the start of bullish momentum. Ideally, combine this with RSI above the midline (50) and price action breaking resistance.
Add to positions or scale in when Green dots appear, indicating continued bullish strength.
2. Exit Strategies
Exit or tighten stops when a Red dot appears, signaling weakening momentum.
Consider partial exits on Orange dots if momentum slows but the trend remains intact.
3. Trend Confirmation
Use the midline (50) as a regime filter: RSI above 50 generally favors long trades, while below 50 favors shorts.
Overbought/Oversold levels (70/30) can help identify exhaustion points for reversals or caution zones.
4. Risk Management
Always combine HaP RSI signals with stop-loss placement based on recent swing lows/highs.
Avoid chasing signals in low-volatility environments; confirm with volume or higher timeframe trend.
Advanced Usage and Best Practices
Combine HaP RSI with other indicators like moving averages or price action patterns for confluence.
Use alerts for Blue and Red dots to automate monitoring and reduce missed opportunities.
Backtest the indicator on multiple timeframes (H1 recommended) to optimize settings for your trading style.
Summary
HaP RSI is a powerful tool that blends RSI's simplicity with advanced signal logic, making it suitable for trend-following, momentum trading, and swing strategies. Its visual clarity and dynamic alerts allow traders to act decisively while managing risk effectively.
MRI - Micro Resolution ImagingThe MRI - Micro Resolution Imaging Indicator: A Comprehensive Analysis
What Is In the Script
The MRI (Micro Resolution Imaging) Pine Script is a sophisticated technical analysis tool designed to perform forensic-level examinations of market data by peering inside the standard price candlesticks. At its core, the script utilizes the advanced request.security_lower_tf function available in Pine Script version 6 to fetch intrabar data—specifically 1-second, 5-second, or 1-minute data—while the user views a higher timeframe chart. This allows the indicator to deconstruct the internal composition of a single bar to calculate metrics that are usually invisible to standard charting tools. The script is structured around several distinct analytical modules that process this micro-data simultaneously. First, it includes a robust Delta Analysis engine that calculates the net difference between buying and selling pressure, tracking cumulative delta, delta at price extremes, and identifying delta reversals. This is paired with an Absorption and Exhaustion module, which hunts for anomalies where high volume fails to move price (absorption) or where price moves on diminishing volume or climatic volume (exhaustion).
Furthermore, the script incorporates a comprehensive Session Management system specifically tuned for the Indian Standard Time (IST) market hours by default, though it remains adjustable. This system segments the trading day into four critical phases: the Opening Drive, the Initial Balance (IB), the Mid-Session, and the Closing Drive. By tracking the specific price action and volume characteristics within these time windows, the script applies Auction Market Theory principles to determine the day's structural bias. The script also features a dynamic VWAP (Volume Weighted Average Price) calculation that not only plots the session VWAP but analyzes price behavior relative to it, counting reclaims, rejections, and differentiating between initiative and responsive volume flow. Additionally, the script includes a Sweep Detection mechanism that identifies when liquidity has been grabbed below previous lows or above previous highs, differentiating between significant external sweeps and minor internal structure sweeps.
All these disparate data points—delta, volume, structure, time, and volatility—are fed into a central Scoring Algorithm. This algorithm applies user-defined weights to each category (for example, weighting Delta at 25% and Sweeps at 15%) to generate a composite "Confidence Score" ranging from 0 to 100. This score determines the overall market bias (Bullish, Bearish, or Neutral) and the strength of that bias. The output is visualized through a complex display system involving a detailed dashboard table fixed to the bottom of the screen, chart overlay signals such as triangles for entry zones, text labels for specific events like "Sweeps" or "Exhaustion," and dynamic lines representing key levels like the Initial Balance High/Low and the Delta Point of Control (POC).
Specialty of the Script
The primary specialty of the MRI script lies in its ability to synthesize "Order Flow" and "Price Action" into a singular, objective metric. Most technical indicators rely solely on the open, high, low, and close of the current timeframe, which often masks the true intent of market participants. For instance, a candle might close green and look bullish on a 5-minute chart, but the MRI script might reveal that the buying occurred entirely at the bottom of the wick and was followed by massive passive selling (absorption) at the top. This capability to visualize the "texture" of the volume is its greatest strength. It specializes in identifying the difference between aggressive participation and passive positioning. By calculating metrics like "Iceberg Detection"—where sustained volume hits a price level without moving it—the script specializes in revealing institutional footprints that retail traders often miss.
Another significant specialty is its temporal awareness. Unlike a Moving Average or RSI which treats every minute of the trading day equally, the MRI script understands that volume and price action mean different things at different times of the day. A breakout during the "Opening Drive" is treated with different logic and weighting than a move during the "Mid-Session" doldrums. This temporal specialty allows the script to align with the natural rhythm of the market auctions, specifically emphasizing the "Closing Drive" as a period of institutional positioning. The script is also specialized for "Trap Trading." By explicitly coding logic for sweeps of previous session highs and lows followed by a recovery, it is fine-tuned to catch "Turtle Soup" style setups where breakout traders are trapped, and the market reverses. This makes it particularly potent for mean-reversion strategies and fading false breakouts, a specialty that is often difficult to program into standard trend-following indicators.
Uniqueness of the Approach
What renders the MRI script unique is its composite scoring methodology. In the fragmented world of trading indicators, traders often have to look at a Delta oscillator, a separate VWAP indicator, a separate session range indicator, and price action patterns individually, trying to mentally synthesize conflicting signals. The MRI script automates this synthesis. It creates a weighted index of bullishness or bearishness that adjusts in real-time. This uniqueness allows for a reduction in cognitive load; instead of asking "Is delta diverging? Is VWAP holding? Did we sweep the low?", the trader can look at the Confidence Score and the "Confirmations" count in the dashboard. The script’s ability to detect "Imbalance Stacking" adds another layer of uniqueness. It tracks consecutive bars of strong buying or selling imbalances, creating a memory of aggressive order flow that persists beyond the current bar, providing a context that standard indicators lack.
The uniqueness also extends to the "Initiative vs. Responsive" volume analysis relative to VWAP. Standard tools simply show volume. The MRI script categorizes volume based on where it occurs relative to value (VWAP). Buying above value is considered "Initiative" (continuation), while buying below value is considered "Responsive" (bargain hunting). This nuance, derived from Market Profile theory but applied via algorithmic code to intrabar data, provides a unique lens on market psychology that is rarely found in public Pine Scripts. Furthermore, the visualization of the "Delta Point of Control" (δPOC) as a dynamic line on the chart is a unique feature. It highlights the specific price level within the recent range where the most aggressive buying or selling took place, serving as a magnet or support/resistance level that traditional volume-at-price indicators might obscure if they are not configured correctly.
How to Use the Script
To utilize the MRI script effectively, a trader must first apply it to a chart with a timeframe higher than the intrabar timeframe setting. For example, if the script is set to analyze 1-second or 5-second data, the chart should be set to a 5-minute or 15-minute timeframe. This ensures the script has a container (the chart bar) within which to analyze the micro-data. Upon loading, the user should configure the Session Settings to match their specific exchange's opening and closing times, as the default is set to Indian Standard Time (IST). The "Opening Drive" and "Initial Balance" durations should be adjusted to reflect the volatility characteristics of the specific asset being traded. Once configured, the primary interface for usage is the Dashboard located at the bottom center of the screen.
The user should observe the "MRI BIAS" cell in the dashboard, which provides the headline signal (e.g., "BULLISH 72%"). This serves as the primary filter. If the bias is Bullish, the trader should primarily look for long setups. The user should then scan the dashboard rows for corroborating data. For instance, if the bias is Bullish, the user should check if "Delta" is positive, if "Sweeps" shows a checkmark next to "Low," and if price is "Above" VWAP. On the chart itself, the user should look for the colored triangular labels. A green triangle pointing up indicates a bullish signal generated by the algorithm. However, these signals should not be followed blindly. The user must verify the signal against the "Levels" drawn on the chart. An ideal usage involves waiting for price to interact with a key level—such as the dotted line of the Previous Session Low or the dashed line of the IB Low—and then looking for a confirmation signal from the MRI script in the form of a label or a high confidence score.
Interpretations of the Data
Interpreting the MRI data requires understanding the narrative the script is constructing. When the "Absorption" metric in the dashboard highlights high "Bid Absorption" (sellers trying to push down but failing) while the price is at a support level, this should be interpreted as institutional accumulation. It implies that a large limit order is soaking up the selling pressure, often a precursor to a reversal. Conversely, if "Iceberg Detections" are high and the Confidence Score is dropping while price is rising, this should be interpreted as a distribution phase where a major player is hiding their selling inside the upward momentum, signaling a potential top. The "Delta" interpretation goes beyond simple green or red. If the price makes a new high but the "Delta" metric on the dashboard or the cumulative delta plot shows a lower high, this is a "Delta Divergence." It suggests the move is driven by weak retail participation rather than aggressive institutional buying, interpreting the breakout as likely to fail.
The "Sweeps" data interpretation is critical for identifying stop runs. If the dashboard shows "Low Sweeps: 1" and the chart shows a "SWEEP" label at the bottom of a wick, it indicates that the market dipped below a significant structural low to trigger stop-loss orders and attract breakout sellers, only to reverse. This is interpreted as a "Liquidity Grab" and is a strong bullish factor. The "Time Segment" interpretation involves comparing the Opening Drive to the Closing Drive. If the Opening Drive was bullish (Green) and the Closing Drive is also bullish (Green), it interprets the day as having strong, sustained conviction. However, if the Opening Drive was Bullish but the Closing Drive is Bearish, it indicates intra-day rejection and a failure to hold gains, suggesting weakness carrying over into the next session. The VWAP interpretation focuses on "Reclaims." If the counter for "Reclaims" in the dashboard increases, it means price fell below the average but buyers aggressively bid it back up above value, interpreting the average price as a floor of support.
How to Use for Trading
Integrating the MRI script into a live trading strategy involves a process of filtering and execution based on the composite score. A robust trading strategy using this script begins with defining the bias. A trader might decide only to take long trades when the MRI Confidence Score is above 60% and short trades only when it is below 40%. In a trend-following strategy, the trader would look for the "Opening Drive" to establish a direction. If the opening drive bias is Bullish and price breaks above the "IB High" (indicated by the dashed yellow line), the trader enters a long position. The stop loss would be placed below the VWAP line. The trade is held as long as the dashboard indicates "Strong" or "Moderate" bullish strength, and the trader would exit if the bias flips to Neutral or if an "Exhaustion" signal appears at the highs.
For a reversal or counter-trend strategy, the trader focuses entirely on the "Sweep" and "Absorption" metrics. The setup begins when price approaches a "Previous Session Low" (dotted line). The trader waits for price to dip below this line. They do not enter yet. They watch the MRI dashboard for a "Bid Absorption" spike or a "Bullish Divergence" in Delta. Once the candle closes back above the level and the MRI generates a green triangle signal or a "SWEEP" label, the trader enters long. This "Trap and Reverse" strategy uses the MRI’s micro-analysis to confirm that the breakout was false. The target for this trade would be the opposing end of the range, such as the VWAP or the IB High. Finally, the script can be used for risk management. If a trader is in a long position, but the "Iceberg Detection" starts flashing on the ask side and the "Initiative" volume turns negative, the trader uses this early warning to tighten stop losses or take partial profits before the reversal becomes visible on the price chart. The MRI script essentially serves as the trader's copilot, validating the health of the trend or signaling the imminent danger of a reversal through its multi-dimensional scoring system.
TradeCraftly - Previous OHLC Levels📌 TradeCraftly – Previous OHLC Levels
TradeCraftly OHLC plots the most important higher-timeframe price levels directly on your chart, helping you identify key support, resistance, and reference zones with clarity.
🔹 What this indicator shows
Previous Day OHLC (High, Low, Open, Close)
Previous Week OHLC
Previous Month OHLC
Today’s Open (no historical clutter)
All levels are drawn as clean horizontal rays and extend only into the current session, keeping the chart focused and readable.
🔹 Key Features
Individual enable / disable controls for Day, Week, and Month levels
No historical clutter – only the most relevant levels are shown
Labels aligned to today’s first candle for quick level identification
Custom line width, color, and style (solid / dashed / dotted)
Works seamlessly on all intraday and higher timeframes
🔹 Why use Previous OHLC levels?
Previous period OHLC levels are widely used by:
Intraday traders
Swing traders
Index & futures traders
They often act as:
Strong support & resistance
Liquidity zones
Breakout / rejection levels
🔹 Best Use Cases
Market open bias using Today’s Open
Intraday trades around PDH / PDL
Weekly range reactions near PWH / PWL
Higher-timeframe context using Monthly levels
⚠️ Disclaimer
This indicator is for educational purposes only and does not provide trading signals or financial advice. Always manage risk and confirm with your own analysis.
TTE Elite Market Signals - ProTTE Elite Market Signals – Pro
TTE Elite Market Signals Pro includes all analytical frameworks and core engines available in the Semi‑Pro version, then extends them with a more advanced institutional, machine‑learning, and professional workflow stack. It is designed for traders who actively manage risk across multiple instruments, timeframes, and asset classes and want deeper control over exits, sizing, routing, and regime behavior.
What Pro Adds Beyond Semi‑Pro
Release notes – Pro‑only enhancements (relative to Semi‑Pro):
Forward‑looking ML “intelligence provider”: Dedicated neural and Q‑learning engine that feeds regime and quality scores into entries, exits, and master control without curve‑fitting past trades.
Auto Exit Engine Selector: Option to let the system switch between Hybrid, Risk‑Based, Equity‑Based, and Vol‑ATR exit profiles based on live volatility and performance conditions, while still respecting global clamps.
Enhanced institutional microstructure diagnostics: Deeper order‑flow, liquidity, stop‑hunt, and gap‑fill analytics that drive both entries and adaptive exits, including manipulation‑aware partial reductions.
Futures/FX routing and contract adapter: Integrated asset‑class routing for FX and futures, with pip/tick aware stops, contract multipliers, spread filters, and micro/mini/front‑month aware position scaling.
Universal Mastermind Engine: A higher‑order sizing overlay that adapts to win streaks, profit factor, and drawdown, with master‑control caps and equity‑aware scaling.
Dynamic profit‑locking and runner management: Multi‑stage profit capture, value‑area reversal exits, nuclear loss clamps, and runner logic tuned by volatility and liquidity regime.
Enhanced Sushi Roll / HTF Reversal suite: Pro‑level counter‑trend and HTF reversal logic that uses Fib+VP confluence, bear/bull context scores, and volatility/structure filters before allowing any counter‑trade.
Universal quantity engine with Pro‑grade safety: A universal sizing layer that understands stocks, crypto, forex, and futures, and enforces instrument‑specific risk ceilings and equity caps.
Pro Workflow and Control
The Pro version is built around the same visualization and learning principles as Semi‑Pro, but with more knobs for traders who need fine control.
Global Risk Scalar and Auto‑regime sizing: Adjusts global position sizes and stop distances based on win rate, profit factor, drawdown and ML confidence, with explicit defensive bias in mediocre regimes.
Enhanced ML integration: ML can influence entries, exits, regime choice, and sizing simultaneously, with separate confidence thresholds for entry boosting, exit tightening, and emergency shutdown.
Advanced volatility regime engine: Multi‑component ATR, price, and volume volatility model that adapts targets, ATR multipliers, and trailing stops by volatility band (ultra‑low to extreme).
Professional visualization: In addition to the universal dashboard, Pro adds more detailed diagnostics, regime indicators, and value‑area reversal annotations for exit decisions.
Who Pro Is For
Full‑time or semi‑professional traders managing multiple instruments or asset classes who need robust, adaptive sizing and exit behavior.
Users comfortable with concepts like regime‑switching, ML confidence, futures contract structure, and multi‑session workflow.
Traders who want the Semi‑Pro feature set as a baseline, but require additional tools to route orders by asset class, manage advanced exits, and fine‑tune risk overlays.
For documentation, examples, and configuration guidance across Semi‑Pro and Pro, visit: ttecommunity.com
Fair Value Gaps w Signals fair value gaps for resistance and support. It is important to understand ranges with this. An open bearish fair value gaps can indicate a bearish range. A bullish fair value gaps in premium can indicate retracement into the bearish range. A fair value gaps on a high time frame in discount of the range can be a indicator to go long. one can play the fair value gaps in discount or a range back into it for longs. negation of the fair value gaps candle bearish or bullish is stop loss. One would want to see a small time frame turn around story within the fair value gaps you are trading. FVG are support and resistance until the market is balanced. A bearish fair value gaps untouched can indicate the end of a range. The candle before the 1st bullsih fair value gaps could be the beginning of the range. all time frames
Absorption and DisplacementAn indicator to show potential reversal points using absorption, and potential entry points using displacement.
Educational content. Not financial advice.
VWAP Institutional Trading Engine INDICATORVWAP Institutional Trading Engine
Adaptive Market Regime & Trading Model Indicator
🔍 Overview
The VWAP Institutional Trading Engine is an advanced, rule-based market analysis indicator designed to replicate institutional decision-making logic using VWAP, volatility, and session-based market behavior.
This indicator does not predict price.
Instead, it answers a more important question:
“What type of trading is appropriate right now – if any?”
The engine continuously evaluates:
Market regime (trend, range, dead market)
Volatility conditions
VWAP acceptance and deviation
Trading session (Asia / London / New York)
Based on this, it dynamically activates one of three trading models:
TREND
MEAN REVERSION
OFF (no trading)
This makes it ideal for:
Discretionary traders
Systematic traders
Risk-focused trading
Educational / portfolio-style trading approaches
🧠 Core Philosophy
Professional trading is not about finding more signals.
It is about knowing when not to trade.
This indicator is built around three institutional principles:
VWAP defines fair value
Volatility defines opportunity or danger
Different sessions require different behavior
⚙️ Indicator Components
1️⃣ VWAP & Statistical Deviation Bands
VWAP represents institutional fair price
±1σ bands indicate acceptance zones
±2σ bands represent statistical extremes
Used for:
Mean reversion zones
Trend acceptance confirmation
Go Score calculation
2️⃣ Volatility Engine
Volatility is measured using ATR relative to price
Compared against its own moving average
Classifications:
Low volatility → dead / untradable market
Normal volatility → structured behavior
High volatility → trend or liquidation events
3️⃣ Market Regime Detection
The engine classifies each moment into one regime:
Regime Meaning
TREND Price accepts above or below VWAP with volatility
RANGE Price rotates near VWAP
DEAD Low volatility, no opportunity
MIXED Unclear structure
4️⃣ Active Trading Model (Most Important)
Displayed in the dashboard as Model:
Model Interpretation
TREND Trade with momentum and continuation
MEAN_REVERT Trade extremes back to VWAP
OFF Do not trade
The Model tells you HOW you are allowed to trade right now.
5️⃣ Session Awareness (UTC)
The indicator adapts behavior based on session logic:
Session Preferred Behavior
Asia Mean Reversion
London Trend
New York Selective / adaptive
Trades are only allowed when model + session are aligned.
6️⃣ Go Score – Trade Quality Filter
Each potential setup receives a Go Score (0–100), based on:
Distance from VWAP
Market regime quality
Volatility penalties
Go Score Interpretation
≥ 80 High-quality (A+)
65–79 Acceptable
< 65 No trade
7️⃣ Risk Guidance (Informational)
The indicator outputs a Risk % suggestion, based on:
Go Score
Simulated drawdown logic
⚠️ This is guidance only, not position sizing.
📈 Visual Signals
The indicator plots contextual signals, not blind entries:
Mean Reversion Signals
▲ Long below −2σ
▼ Short above +2σ
Trend Signals
↑ Long after acceptance above +1σ
↓ Short after acceptance below −1σ
Signals appear only when trading is allowed by:
Model
Session
Go Score
🧩 Dashboard Explanation
The top-right dashboard displays real-time engine state:
Field Description
Session Current UTC session
Regime Detected market condition
Go Score Trade quality score
Risk % Suggested relative risk
Drawdown % Virtual defensive metric
Model Active trading model
If Model = OFF → do nothing.
🧭 Practical Trading Manual (Step-by-Step)
Step 1 – Check the Model
TREND → look for continuation
MEAN_REVERT → look for extremes
OFF → do not trade
Step 2 – Confirm Session Alignment
Asia + Mean Reversion ✔
London + Trend ✔
Misalignment = caution
Step 3 – Check Go Score
Below 65 → skip
65+ → proceed
Step 4 – Use Chart Structure
VWAP = anchor
σ bands = context
Signal = permission, not obligation
Step 5 – Manage Risk Manually
Use your own SL/TP rules
Follow the Risk % as guidance, not law
❌ What This Indicator Is NOT
Not a signal spam tool
Not a prediction system
Not a “holy grail”
It is a decision framework.
✅ Best Use Cases
Futures
Indices
Forex
Crypto
Intraday & swing trading
Recommended timeframes:
5m – 1H (intraday)
4H (contextual swing)
🏁 Final Notes
This indicator is intentionally transparent and rule-based.
It is designed to help traders:
Think in regimes
Trade with structure
Avoid overtrading
Protect capital
If you trade with the Model, not against it,
you will already be ahead of most market participants.
[PickMyTrade] Trend strategy for LongThis strategy detects descending trend resistance using pivot-based trendlines and enters long positions when price confirms a breakout above a validated trendline. It is designed to capture bullish trend reversals with strict risk control and flexible exit management.
The system focuses on structural market behavior rather than indicators, making it suitable for traders who prefer price-action-based decision making.
USAGE
This strategy automatically builds trendlines from confirmed pivot highs. A trendline is considered valid only when price has interacted with it a user-defined number of times, ensuring that trades are taken only from well-formed market structures.
A trade is triggered when price closes above a validated descending trendline while optional session and position limits are respected.
All risk and position sizing are calculated automatically based on the selected risk amount and stop-loss distance.
HOW IT WORKS
The strategy identifies swing highs using pivot logic and connects them into descending trendlines. Each trendline must meet a minimum number of touch confirmations before becoming eligible for trading.
When price closes above a valid trendline, the strategy calculates:
Stop-loss placement below the most recent pivot low
Position size based on fixed monetary risk
Profit targets based on the selected exit method
EXIT METHODS
Three exit models are supported:
Risk–Reward Ratio
Uses a fixed multiple of the defined risk distance to set the take-profit level.
Lookback Candle Exit
Exits trades when price shows structural reversal behavior based on recent candles.
Fibonacci Targets
Uses Fibonacci extensions derived from recent swing structure to trail profits dynamically.
An optional trailing stop can also be enabled to protect open profits.
FEATURES
Automatic pivot-based trendline detection
Multi-trendline or single-trendline operation
Dynamic position sizing based on monetary risk
Pivot-based stop-loss placement
Multiple exit methodologies
Optional trailing stop
Optional trading session filter
Fully visualized trendlines, stop levels, and profit targets
SETTINGS
Trend Detection
Pivot Length for Trend
Touch Number
Validation Percentage
Optional Pivot-to-Pivot Confirmation
Risk Management
Fixed Risk Amount
Default Contract Size Option
Stop-Loss Buffer
Trailing Stop Toggle
Take-Profit
Exit Method Selection
Risk-Reward Ratio
Lookback Candle Length
Fibonacci Extension Levels
Session Filter
Enable/Disable Session Trading
Trading Session Time Window
Supertrend BUY Only - Optimized for Gold M15 TimeframeOverview
The Supertrend BUY Only - Production Optimized is a high-performance trend-following indicator specifically tuned for XAUUSD (Gold) on the 15-minute timeframe. Unlike standard Supertrend scripts, this version focuses exclusively on bullish cycles to align with long-term upward bias and uses parameters discovered through deep data analysis of over 20,000 bars of historical market data.
Key Features
Data-Optimized Parameters: Defaults are set to ATR Period 7 and Multiplier 2.1, which backtesting has shown to provide a superior balance between sensitivity and noise reduction for Gold.
Production-Ready Alerts: Includes built-in alertcondition triggers for both BUY (Trend Flip) and STOP BUY (Trend Exit), complete with dynamic messages that include price and interval.
Trailing Support Band: Uses a trailing logic that locks in support levels during upward moves, preventing the band from dropping until the trend officially reverses.
Clean Visuals: Focuses on chart clarity by only plotting the support line during active uptrends and utilizing clean shape labels for entries and exits.
How to Use
Entry (BUY): When the Supertrend line flips from Red to Green and a "BUY" label appears. This indicates bullish momentum has overcome recent volatility.
Exit (STOP BUY): When the price closes below the Green support line. The indicator will plot a red "X" and clear the green background.
Setting Alerts: * Click the Alerts icon in TradingView.
Select this indicator under "Condition."
Choose "BUY Signal" for entries and "STOP BUY / EXIT" for managing your trade or taking profit.
Technical Details
The script allows users to toggle between the TradingView (RMA) ATR calculation and the Standard (SMA) method. For production and live trading, the RMA method is recommended as it provides a smoother response to volatility spikes common in the Gold market.
NY Opening Range [LuckyAlgo]
This custom ORM (Opening Range Move) indicator is designed as a tool for traders who focus not just on where a range is, but on the magnitude of the expansion following the initial morning volatility.
Here is a summary of the indicator and how it differentiates itself from standard Opening Range Breakout (ORB) tools.
Indicator Summary
The script captures the high and low of the market during the first 30 minutes of the NY session (09:30–10:00 AM EST). Once this range is set, it tracks the "Expansion Move" - the point distance from the range's boundary to the current session's high or low. It visualizes this through color-coded zones, dynamic labels at the session extremes, and a statistical table that benchmarks today's volatility against the recent past.
What specific questions does this indicator answer?
While most indicators tell you "the range is broken," this indicator answers quantitative questions vital for trade management:
1. "How far has the market stretched relative to the breakout?"
The indicator provides the exact point distance (+/-) from the range high/low. This helps you determine if the move is just beginning or if it has already extended significantly.
2. "Is the current move 'normal' or an outlier?"
By using the Stats Table, you can see if the current 40-point move on NQ is typical or if the average move over the last 10 days is actually 80 points. This prevents you from "fading" a move that still has average room to grow, or taking a "pro-trend" trade when the market is already exhausted.
3. "Where is the session extreme located?"
The inclusion of the dashed High of Day (HOD) and Low of Day (LOD) lines with attached labels tells you exactly where the "Move" calculation is peaking. If the HOD line hasn't moved for two hours, you know the bullish expansion has stalled.
4. "When is the data no longer relevant?"
Because of the 17:00 EST reset logic, the indicator answers the "end of day" question for futures traders. It stops measuring at the settlement/close of the electronic session, ensuring your charts are clean for the overnight (Globex) session or ready for the next morning.
Technical Advantage
Most scripts use a single "point in time" to reset. This script uses a Trading Window logic, which is much more robust. If a bar is missing at exactly 17:00 due to low volume or a data glitch, the indicator won't "break" or keep drawing old lines - it understands the entire window of time it is allowed to exist in.
Credit to @LuxAlgo for his initial Opening Range Breakout indicator used as a base to develop this version.
Volatility Regimes | GainzAlgo📊 OVERVIEW:
=========
This is a comprehensive ATR-based trading system designed for professional
traders who need advanced volatility analysis, precise trade management, and
intelligent market regime detection. The indicator combines multiple proven
volatility concepts into one powerful, customizable tool.
⭐ WHY THIS SYSTEM IS UNIQUE AND WORTHY OF PUBLICATION:
====================================================
This is not simply a collection of ATR-based indicators placed together.
It represents a unified volatility analysis framework where each component
is specifically designed to work in concert with the others, creating a
complete trading workflow that cannot be replicated by using multiple
separate indicators.
🔗 SYNERGISTIC INTEGRATION - How Components Work Together:
🧠 1. CONTEXT-AWARE ANALYSIS
The Volatility Regime Detection acts as the "brain" of the system,
classifying market conditions into 4 distinct phases. Every other
component then adapts its behavior based on this regime classification:
- ATR Bands expand/contract with regime changes
- Stop Loss distances automatically adjust (tighter in compression,
wider in high volatility)
- Take Profit targets scale proportionally to current regime
- Signal sensitivity filters itself based on market phase
📐 2. UNIFIED VOLATILITY FOUNDATION
All calculations share a single ATR baseline calculation, ensuring
internal consistency across the entire system. When ATR changes, every
element updates in perfect synchronization:
- Bands recalculate from the same ATR value
- Risk management levels use the same volatility measurement
- Regime classification and signals reference identical data
🛡️ 3. INTEGRATED RISK MANAGEMENT
The system doesn't just show WHERE to enter - it calculates HOW MUCH
to risk:
- Dynamic Stop Loss adapts to current ATR automatically
- Position Size Calculator uses the dynamic stop to compute exact quantities
- Take Profit levels scale proportionally, maintaining optimal risk:reward
✅ 4. TWO-STAGE SIGNAL CONFIRMATION
The alert system creates a logical progression:
Step 1: Volatility Breakout → Market energy is building
Step 2: Trend Confirmation → Direction confirmed with volatility support
This prevents false breakouts by requiring both volatility AND direction.
🏦 5. PROFESSIONAL WORKFLOW INTEGRATION
The system mirrors how institutional traders analyze markets:
Phase 1: Assess regime → What's the market doing?
Phase 2: Identify setup → Where's the opportunity?
Phase 3: Calculate risk → What's my exposure?
Phase 4: Set targets → Where do I take profit?
Phase 5: Monitor regime → When do conditions change?
❌ WHY NOT USE SEPARATE INDICATORS?
- Separate ATR Bands: Don't know about regime changes, remain static
- Separate Regime Indicator: Doesn't automatically adjust stop/targets
- Separate Position Calculator: Doesn't know your actual ATR-based stop
- Manual Integration: Requires constant mental calculation and cross-referencing
🧮 DETAILED CALCULATION METHODOLOGY:
=================================
📏 ATR (AVERAGE TRUE RANGE) CALCULATION:
- True Range = Maximum of:
1. Current High - Current Low
2. Absolute value of (Current High - Previous Close)
3. Absolute value of (Current Low - Previous Close)
- ATR = Simple Moving Average of True Range over specified period (default: 14)
📊 DYNAMIC ATR BANDS:
- Upper Band = Current Close + (ATR × Band Multiplier)
- Lower Band = Current Close - (ATR × Band Multiplier)
- Band 1: 1.0× ATR (closest support/resistance)
- Band 2: 2.0× ATR (intermediate zone)
- Band 3: 3.0× ATR (extended zone)
🌡️ VOLATILITY REGIME CLASSIFICATION:
Step 1: Calculate ATR Baseline
- Baseline ATR = SMA or EMA of ATR over long period (default: 50 bars)
- This represents "normal" volatility for the instrument
Step 2: Calculate ATR Ratio
- ATR Ratio = Current ATR ÷ Baseline ATR
- Example: If current ATR = 70 and baseline = 50, ratio = 1.40
Step 3: Classify Regime Based on Ratio
- COMPRESSION: Ratio < 0.70 (ATR is 30% below normal)
Market consolidating, volatility contracting, energy building
- EXPANSION: Ratio between 1.15 and 1.40 (ATR is 15-40% above normal)
Volatility breaking out, early phase of directional movement
- HIGH VOLATILITY: Ratio > 1.40 (ATR is 40%+ above normal)
Strong sustained trend with high participation
- EXHAUSTION: ATR declining after high volatility period
Requires: Previous high ratio + declining ATR over X bars (default: 5)
Trend maturity, potential reversal or consolidation approaching
🛑 DYNAMIC STOP LOSS CALCULATION:
- For Long Positions: Stop Loss = Entry Price - (ATR × SL Multiplier)
- For Short Positions: Stop Loss = Entry Price + (ATR × SL Multiplier)
- Default Multiplier: 2.0× ATR
- Adjusts automatically: Wider in high volatility, tighter in compression
🎯 TAKE PROFIT LEVELS:
- TP1 = Entry Price ± (ATR × TP1 Multiplier)
- TP2 = Entry Price ± (ATR × TP2 Multiplier)
- TP3 = Entry Price ± (ATR × TP3 Multiplier)
- Direction (+ or -) depends on trade direction
📦 POSITION SIZE CALCULATION:
Formula: Position Size = Account Risk Amount ÷ Stop Loss Distance
Step-by-step:
1. Risk Amount = Account Size × (Risk Percentage ÷ 100)
2. Stop Distance = |Entry Price - Stop Loss Price|
3. Position Size = Risk Amount ÷ Stop Distance
📈 ATR PERCENTILE RANKING:
- >80% = Extremely high volatility
- 20-80% = Normal volatility range
- <20% = Extremely low volatility
🌀 VOLATILITY CONTRACTION PATTERN:
Detects extended low-volatility periods indicating imminent breakout.
🧭 TREND DETECTION SIGNALS:
Bullish: Price > MA AND Current ATR > ATR MA
Bearish: Price < MA AND Current ATR > ATR MA
⚡ VOLATILITY BREAKOUT SIGNALS:
Triggered when ATR exceeds its moving average by a defined threshold.
🧩 CORE FEATURES:
==============
1. ATR BANDS (Dynamic Support/Resistance)
2. VOLATILITY REGIME DETECTION
3. DYNAMIC STOP LOSS SYSTEM
4. MULTIPLE TAKE PROFIT LEVELS
5. SUPPORT & RESISTANCE LEVELS
6. RISK MANAGEMENT CALCULATOR
7. ATR PERCENTILE RANKING
8. VOLATILITY CONTRACTION PATTERN
9. TREND DETECTION SIGNALS
10. VOLATILITY BREAKOUT SIGNALS
⚙️ RECOMMENDED SETTINGS BY TRADING STYLE:
======================================
DAY TRADING • SWING TRADING • POSITION TRADING • SCALPING
📘 HOW TO USE THIS INDICATOR:
==========================
STEP 1: Identify Market Regime
STEP 2: Wait for Entry Signal
STEP 3: Set Stop Loss
STEP 4: Set Take Profits
STEP 5: Position Sizing
STEP 6: Monitor & Manage
🔔 ALERT SYSTEM:
=============
Alerts for volatility breakouts, trend changes, regime transitions,
ATR band crossings, contraction completion, and percentile extremes.
🎨 CUSTOMIZATION:
==============
All visuals, thresholds, multipliers, colors, alerts, and risk parameters
can be fully customized.
⚠️ IMPORTANT DISCLAIMER:
=====================
This indicator is a volatility analysis tool and does NOT provide financial advice.
Past performance does not guarantee future results.
All trading involves substantial risk.
All trading decisions are the sole responsibility of the user.
helloRSQ: SPX Thermal v2 Updatedjust a test, dont get your hopes up
it's designed for options trading across all available markets on your platform, including indices, stocks, forex, gold, and crypto.
It supports both pre-market and regular session trading and includes a performance table that shows trade quality before entry, helping you test and refine settings to improve consistency and win rate.
Recommended timeframe: 30 minutes or lower for clearer signals and better trade management.
Easy Risk Calculator with FeesThis Pine Script creates a position sizing calculator for TradingView that helps traders understand the true cost and risk of a trade when accounting for exchange fees. Here's what it does:
Core Purpose
The script calculates the actual position size, costs, and risk for a trade based on a minimum position value in USDT, while factoring in trading fees that affect both entry and exit prices.
Key Calculations
Position Size Determination:
Takes a desired position value in USDT and adjusts for fees
For longs: divides by entry price × (1 + fee) since you pay fees when buying
For shorts: divides by entry price × (1 - fee) since you receive less when shorting
Risk Analysis:
Calculates the reverse risk - determining how much you'd actually lose based on your position size, rather than starting with a target risk amount
Computes effective entry/exit values - the true USDT value after accounting for fees on both sides of the trade
Expected loss shows the actual dollar amount you'd lose if your stop loss is hit
Risk deviation reveals the percentage difference between your expected loss and calculated risk amount
Visual Output
The script displays a table on the chart showing:
Trade direction (LONG/SHORT with color coding)
Entry price and stop loss levels
Fee percentage used
Position size in both USDT and units of the asset
Effective entry and exit values (after fees)
Expected loss if stopped out
Deviation from target risk
Calculated risk amount in USDT
This tool is particularly useful for traders who need to work with minimum position sizes on exchanges and want to understand exactly how fees impact their actual risk exposure.Claude is AI and can make mistakes. Please double-check responses. Sonnet 4.5Claude is AI and can make mistakes. Please double-check responses.
Backtest Opening 4H BTCBacktesting Script to analyse die price action through out the daily opening on BTC. Scalping of extremity liquidity after daily trading hours opened
Professional Multi-Asset Market Dashboard [Heatmap]Description:
This comprehensive Market Dashboard provides traders with a high-level overview of the entire financial landscape in a single, organized table. Designed to replicate institutional-grade market scanners, this tool allows you to monitor 30+ assets across multiple categories (Commodities, Global Equities, Indices, and Sectors) without switching charts.
It is specifically optimized for Essential (Pro) plans and above, utilizing efficient coding to fit within the request.security limits while delivering maximum data density.
Key Features
4-Section Layout: Automatically organizes data into clear categories:
Equity Alternatives: Commodities, Bonds, Currencies (DXY), and Crypto.
Global Equities: Emerging Markets, International, and European stocks.
US Equity Indices: Major US benchmarks (SPY, QQQ, DIA, IWM) and factors.
Sectors: A complete breakdown of US sectors (Energy, Tech, Financials, etc.).
Heatmap Visualization:
Bullish (Green): Indicates positive performance or strong trends.
Bearish (Red): Indicates negative performance or weak trends.
Neutral (Gray): Indicates choppy or sideways action.
Advanced Metrics:
% Chg: Daily percentage move.
ATRΔ (Volatility): Measures today's range relative to the 14-day Average True Range. A value > 1.0 means higher than average volatility.
DCR (Daily Closing Range): Shows where the price closed relative to the day's high/low. (0% = Low of day, 100% = High of day).
52WR: Position within the 52-week range.
MAx: Distance from the 20-day Moving Average.
Trend Codes:
ST (Short Term): Based on the 20 SMA.
LT (Long Term): Based on the 200 SMA.
100% Customizable:
Toggle Rows: Use checkboxes in the settings to hide/show specific assets.
Custom Symbols: Change any ticker to fit your personal watchlist.
Design Control: Customize colors, text size, and table position on the chart.
How to Use
Add to Chart: The dashboard defaults to a "Bottom Center" position.
Interpret the Trend:
Look for the ST (Short Term) and LT (Long Term) columns.
"1A" indicates a confirmed Bullish Trend (Price > SMA).
"4C" indicates a confirmed Bearish Trend (Price < SMA).
Analyze Breadth: Use the color coding to instantly gauge if the market is "Risk On" (mostly green) or "Risk Off" (mostly red).
Volatility Check: Use the ATRΔ column to spot assets that are moving significantly more than their average daily range.
Settings Configuration
Inputs Tab: Uncheck the box next to any symbol to hide it from the table. You can also rename the headers or change the tickers to your preferred assets (e.g., swapping Futures for ETFs).
Style Tab: Adjust the table size (tiny, small, normal) to fit your screen resolution.
Disclaimer: This indicator is for informational purposes only and does not constitute financial advice. Past performance is not indicative of future results.






















