Nasdaq Macro Radar 3.5Nasdaq Macro Radar is an intraday tool that condenses five macro-drivers of the Nasdaq-100 into a single color-coded table:
• real-time moves in the 10- and 2-year Treasury yields
• dollar strength via the Dollar Index
• equity volatility level (VIX)
• risk tone in high-yield credit (HYG ETF)
• dynamic slope of the 2-10-year curve
Each cell flips from neutral to “long” or “short” on the fly, letting you see at a glance whether the macro backdrop is helping trend continuation or signalling a potential reversal.
• No extra pane – the table sits directly on your price chart and can be parked in any corner.
• All sensitivity thresholds are user-adjustable from Settings.
• Built-in alerts for the most critical levels.
Designed for scalpers and day-traders who need an instant macro check without juggling multiple charts
Nasdaq Macro Radar è un indicatore intraday che sintetizza, in un’unica tabella color-code, cinque motori macro-finanziari chiave per il Nasdaq-100:
• movimento dei rendimenti Treasury a 10 a & 2 a
• variazioni del Dollar Index
• livello della volatilità implicita (VIX)
• tono del mercato credito high-yield (ETF HYG)
• pendenza dinamica della curva 2-10 a
Ogni cella passa dal neutro a “long” o “short” in tempo reale, consentendo di valutare a colpo d’occhio se il contesto macro favorisce prosecuzioni o inversioni del trend di prezzo.
• Nessuna finestra separata: la tabella resta sovrapposta al grafico e può essere spostata in qualsiasi angolo.
• Parametri di sensibilità completamente regolabili dal pannello Settings.
• Alert integrati per le soglie critiche più importanti.
Pensato per chi fa scalping o day-trading sul Nasdaq e vuole un check macro immediato senza aprire dieci grafici di supporto.
Forecasting
Average Daily Range ADR by thSpecial for Amer and ATR testing and some text for description which I will add a little bit later because beatiful tv can't pass my indicator to be published
Smart Directional Fib Zone (Selectable Session)🎯 Overview
This indicator plots a dynamic Fibonacci zone between the 0.5 and 0.618 levels , calculated from the previous day’s price action , and is designed specifically for intraday traders.
It visually highlights key retracement or reaction areas where the market often pauses or reverses.
🔍 How it works
At the start of each day, the script automatically captures:
the previous day’s open (pdo),
high (pdh),
low (pdl),
and close (pdc).
It then determines if the previous day was bullish (Close > Open) or bearish (Close < Open).
Based on that:
If the previous day was bullish, it projects the Fibonacci levels down from the high (typical for expecting retracements).
If bearish, it projects them up from the low.
The two key levels are:
0.5 (50%) retracement / projection
0.618 (61.8%) retracement / projection
A colored zone is plotted between these levels to act as a leading guide for intraday setups.
⏰ Time filtering & session customization
A unique feature is the dynamic session filtering:
By default, the zone is only plotted during active market hours, keeping your chart clean outside trading hours.
The script provides a dropdown selector so you can quickly switch between:
India session (9:15 to 15:30)
Europe session (9:00 to 17:30)
US session (9:30 to 16:00)
Or even define your own custom session times.
This makes it ideal for intraday traders in any region.
🎨 Visual features
The fill zone changes color based on the previous day’s sentiment:
Green zone if the previous day was bullish
Red zone if the previous day was bearish
🚨 Alerts
The script includes an alert condition, so you can easily set up TradingView alerts to notify you when:
Price enters the Fibonacci zone.
This is extremely helpful for catching retracements or reversals without staring at the screen all day.
⚙️ How to use
✅ Works on any intraday timeframe (1 min, 5 min, 15 min, etc.).
✅ Simply add it to your chart, pick your session in the dropdown, and watch the Fibonacci zone automatically adjust to your selected market hours.
Use it as a confluence tool alongside other indicators like VWAP, EMAs, Bollinger Bands, or price action patterns to time entries and exits.
💪 Why this is powerful
This is more than a simple Fib retracement tool:
It dynamically adapts to the previous day’s sentiment, helping you trade in alignment with recent market psychology.
The session filtering ensures your charts are focused only on the periods
Candle box - All SessionsCandle Box – All Sessions + Weekday Filter
This indicator automatically draws boxes on your chart, highlighting custom sessions based on user-defined start and end times.
For each selected session, it visually marks the high and low of the opening candle from your chosen timeframe, making it easy to analyze volatility, breakouts, and ranges.
Key Features:
Full Time Customization: Choose the start and end hour/minute for your session boxes.
Reference Candle Timeframe: Select which timeframe’s high/low to use (e.g., 5min, 15min, etc).
Weekday Selection: Display boxes only on the days of the week you want—any combination of weekdays and weekends.
Session History: All previous session boxes remain visible on the chart, allowing easy review of price behavior across multiple days.
Visual Customization: Adjust border color, background color, and border width for each box.
Typical Uses:
Highlight volatility during key market sessions (e.g., NY Open, London, Close, etc.).
Mark opening ranges for daily or any custom time window.
Identify breakout and consolidation patterns across sessions.
How to Use:
Add the indicator to your chart.
Configure your preferred start/end time, reference candle timeframe, visual style, and select the days of the week.
The indicator will automatically draw all session boxes for both current and past days, making market structure and session dynamics instantly clear.
Precision CandleThis Pine Script is designed to help you uncover hidden divergences among multiple assets by tracking how their candles close. Imagine you're analyzing three different assets — they could be indices, currencies, or even cryptocurrencies — and you want to know when one of them is moving out of sync with the others. That’s where this script comes into play.
First, it gives you the flexibility to choose custom ticker symbols or rely on predefined ones based on different asset classes like metals, bonds, or altcoins. Once the symbols are set, the script continuously monitors the opening, high, low, and closing prices of each asset.
The magic happens when it determines the nature of each candle: is it bullish or bearish? By comparing these closing behaviors, the script checks for any discrepancies — situations where at least one asset diverges from the trend of the others. When this happens, the script plots a red "PC" marker below the bar on your chart, drawing your attention to these moments of divergence.
This tool can be invaluable for traders looking to spot unique market dynamics, identify potential trading opportunities, or simply get insights into how different assets behave in relation to each other. It's a simple but powerful way to keep an eye on correlations and anticipate shifts in market sentiment.
Dynamic Gap Probability ToolDynamic Gap Probability Tool measures the percentage gap between price and a chosen moving average, then analyzes your chart history to estimate the likelihood of the next candle moving up or down. It dynamically adjusts its sample size to ensure statistical robustness while focusing on the exact deviation level.
Originality and Value:
• Combines gap-based analysis with dynamic sample aggregation to balance precision and reliability.
• Automatically extends the sample when exact matches are scarce, avoiding misleading signals on rare extreme moves.
• Provides real “next-candle” probabilities based on historical occurrences rather than fixed thresholds or untested heuristics.
• Adds value by giving traders an evidence-based edge: you see how similar past deviations actually played out.
How It Works:
1. Calculate gap = (close – moving average) / moving average * 100.
2. Round the absolute gap to nearest percent (X%).
3. Count historical bars where gap ≥ X% above or ≤ –X% below.
4. If exact X% count is below the minimum occurrences threshold, include gaps at X+1%, X+2%, etc., until threshold is reached.
5. Compute “next-candle” green vs. red probabilities from the aggregated sample.
6. Display current gap, sample size, green probability, and red probability in a table.
Inputs:
• Moving Average Type (SMA, EMA, WMA, VWMA, HMA, SMMA, TMA)
• Moving Average Period (default 200)
• Minimum Occurrences Threshold (default 50)
• Table position and styling options
Examples:
• If price is 3% above the 200-period SMA and 120 occurrences ≥3% are found, with 84 green next candles (70%) and 36 red (30%), the script displays “3% | 120 | 70% green | 30% red.”
• If price is 8% below the SMA but only 20 exact matches exist, the script will include 9% and 10% gaps until it reaches 50 samples, then calculate probabilities from that broader set.
Why It’s Useful:
• Mean-reversion traders see green-probability signals at extreme overbought or oversold levels.
• Trend-followers identify continuation likelihood when red probability is high.
• Risk managers gauge reliability by inspecting sample size before acting on any signal.
Limitations:
• Historical probabilities do not guarantee future performance.
• Results depend on timeframe and symbol, backtest with your data before trading.
• Use realistic slippage and commission when overlaying on strategy scripts.
EVaR Indicator and Position SizingThe Problem:
Financial markets consistently show "fat-tailed" distributions where extreme events occur with higher frequency than predicted by normal distributions (Gaussian or even log-normal). These fat tails manifest in sudden price crashes, volatility spikes, and black swan events that traditional risk measures like volatility can underestimate. Standard deviation and conventional VaR calculations assume normally distributed returns, leaving traders vulnerable to severe drawdowns during market stress.
Cryptocurrencies and volatile instruments display particularly pronounced fat-tailed behavior, with extreme moves occurring 5-10 times more frequently than normal distribution models would predict. This reality demands a more sophisticated approach to risk measurement and position sizing.
The Solution: Entropic Value at Risk (EVAR)
EVaR addresses these limitations by incorporating principles from statistical mechanics and information theory through Tsallis entropy. This advanced approach captures the non-linear dependencies and power-law distributions characteristic of real financial markets.
Entropy is more adaptive than standard deviations and volatility measures.
I was inspired to create this indicator after reading the paper " The End of Mean-Variance? Tsallis Entropy Revolutionises Portfolio Optimisation in Cryptocurrencies " by by Sana Gaied Chortane and Kamel Naoui.
Key advantages of EVAR over traditional risk measures:
Superior tail risk capture: More accurately quantifies the probability of extreme market moves
Adaptability to market regimes: Self-calibrates to changing volatility environments
Non-parametric flexibility: Makes less assumptions about the underlying return distribution
Forward-looking risk assessment: Better anticipates potential market changes (just look at the charts :)
Mathematically, EVAR is defined as:
EVAR_α(X) = inf_{z>0} {z * log(1/α * M_X(1/z))}
Where the moment-generating function is calculated using q-exponentials rather than conventional exponentials, allowing precise modeling of fat-tailed behavior.
Technical Implementation
This indicator implements EVAR through a q-exponential approach from Tsallis statistics:
Returns Calculation: Price returns are calculated over the lookback period
Moment Generating Function: Approximated using q-exponentials to account for fat tails
EVAR Computation: Derived from the MGF and confidence parameter
Normalization: Scaled to for intuitive visualization
Position Sizing: Inversely modulated based on normalized EVAR
The q-parameter controls tail sensitivity—higher values (1.5-2.0) increase the weighting of extreme events in the calculation, making the model more conservative during potentially turbulent conditions.
Indicator Components
1. EVAR Risk Visualization
Dynamic EVAR Plot: Color-coded from red to green normalized risk measurement (0-1)
Risk Thresholds: Reference lines at 0.3, 0.5, and 0.7 delineating risk zones
2. Position Sizing Matrix
Risk Assessment: Current risk level and raw EVAR value
Position Recommendations: Percentage allocation, dollar value, and quantity
Stop Parameters: Mathematically derived stop price with percentage distance
Drawdown Projection: Maximum theoretical loss if stop is triggered
Interpretation and Application
The normalized EVAR reading provides a probabilistic risk assessment:
< 0.3: Low risk environment with minimal tail concerns
0.3-0.5: Moderate risk with standard tail behavior
0.5-0.7: Elevated risk with increased probability of significant moves
> 0.7: High risk environment with substantial tail risk present
Position sizing is automatically calculated using an inverse relationship to EVAR, contracting during high-risk periods and expanding during low-risk conditions. This is a counter-cyclical approach that ensures consistent risk exposure across varying market regimes, especially when the market is hyped or overheated.
Parameter Optimization
For optimal risk assessment across market conditions:
Lookback Period: Determines the historical window for risk calculation
Q Parameter: Controls tail sensitivity (higher values increase conservatism)
Confidence Level: Sets the statistical threshold for risk assessment
For cryptocurrencies and highly volatile instruments, a q-parameter between 1.5-2.0 typically provides the most accurate risk assessment because it helps capturing the fat-tailed behavior characteristic of these markets. You can also increase the q-parameter for more conservative approaches.
Practical Applications
Adaptive Risk Management: Quantify and respond to changing tail risk conditions
Volatility-Normalized Positioning: Maintain consistent exposure across market regimes
Black Swan Detection: Early identification of potential extreme market conditions
Portfolio Construction: Apply consistent risk-based sizing across diverse instruments
This indicator is my own approach to entropy-based risk measures as an alterative to volatility and standard deviations and it helps with fat-tailed markets.
Enjoy!
Enhanced Gann Time-Price SquaresEnhanced Gann Time-Price Squares Indicator
A comprehensive Pine Script indicator that identifies and visualizes W.D. Gann's time-price square formations on your charts. This tool helps traders spot potential market turning points where time and price movements align according to Gann's legendary market theories.
Key Features:
Automatic Square Detection - Identifies completed squares where price movement equals time movement
Future Projections - Shows forming squares with projected completion points
Pivot Integration - Automatically detects pivot highs/lows as square starting points
Visual Clarity - Clean box outlines with customizable colors and styles
Smart Filtering - Prevents overlapping squares and includes minimum move thresholds
Real-time Status - Information table showing current square formations
How to Use:
The indicator draws boxes when price moves from pivot points equal the time elapsed (number of bars). Green squares indicate upward movements, red squares show downward movements. Dashed lines show forming squares, while dotted lines project where they might complete.
Settings:
Adjust pivot sensitivity and minimum price moves
Customize tolerance for time-price matching
Toggle projections, labels, and visual elements
Fine-tune colors and line styles
Perfect for Gann theory practitioners and traders looking for time-based market analysis. The squares often coincide with significant support/resistance levels and potential reversal points.
Compatible with all timeframes and instruments.
More updates to follow
Hour-Stats v2cHour-Stats Indicator
The Hour-Stats indicator is a powerful, data-driven tool designed specifically for NQ futures traders who rely on statistically significant hourly price action probabilities. While traditional indicators typically focus only on the likelihood of prices returning to the opening price, Hour-Stats distinguishes itself by offering detailed statistical analysis across multiple critical price points.
Leveraging over 15 years of historical data, this indicator provides traders with robust probabilities for three unique hourly metrics:
Return to Hourly Open – The percentage likelihood of price revisiting the hourly open after breaking the high or low.
Return to Previous Hour Midpoint (PHM) – Offers clear probabilities of price returning to the midpoint (50%) of the previous hour’s range, a valuable metric for gauging reversals and continuations.
Opposite Extreme Targeting – Calculates the statistical likelihood of price moving to the opposite end (high or low) of the previous hour’s candle range, offering actionable insights for range trading strategies.
Additionally, Hour-Stats presents the historical probabilities of hourly highs and lows forming within three distinct 20-minute segments of each trading hour. This breakdown gives traders a precise understanding of when peaks or troughs are most likely, enhancing entry and exit timing.
The indicator’s settings are highly customizable, allowing traders to personalize visuals such as vertical and horizontal line colors, line styles (dotted, dashed, solid), and line thickness. Further customization includes label sizing, label positioning, and the ability to adjust visual dimming of swept price levels, providing clarity and ease of use during live market conditions.
Inspired by NQ Stats' concept (details available at nqstats, Hour-Stats expands significantly upon the original idea, delivering a uniquely comprehensive suite of hourly probability analytics for informed decision-making in futures trading.
Disclaimer: Futures trading involves significant risk. Traders should conduct their own due diligence and are responsible for their trading outcomes. Historical probabilities do not guarantee future results.
TradersAID - Adaptive Smoothing Velocity ColoringTradersAID – Adaptive Smoothing Velocity Coloring
1. Overview
TradersAID – Adaptive Smoothing Velocity Coloring is a momentum visualization tool designed to highlight bullish or bearish pressure directly on price bars — helping you intuitively read directional strength and velocity shifts in any market or timeframe.
Using a Kalman-inspired estimation framework originally developed for aerospace and autonomous navigation, this tool analyzes the velocity of price movement and assigns a contextual candle color — offering a clean and readable way to interpret short-term flow.
Whether you’re navigating ranges or watching for trend continuation, this visualization simplifies complex data into actionable visual rhythm.
2. What It Does
Instead of measuring only price, the script focuses on price velocity — the rate of change over time. It computes this through a proprietary estimator that continuously adapts to volatility and momentum shifts.
The output is color-coded candles that reflect velocity dynamics:
• Green shades represent bullish acceleration
• Red shades reflect bearish velocity
• Neutral tones indicate fading momentum or transition phases
This allows you to quickly assess market tone:
• In strong trends: Watch for fading momentum (weaker colors)
• In ranges: Spot subtle shifts that hint at upcoming breakout direction
• Near potential reversals: Diverging velocity and price can stand out at a glance
3. How to Use It
• Momentum Insight:
Use color intensity to judge whether the current move is gaining or losing strength.
• Breakout Anticipation:
In sideways markets, shifting colors within the range can help anticipate which side may take control next.
• Divergence Reading:
Look for double tops or bottoms where price holds but velocity changes — often a hint that the move is maturing.
• Visual Confirmation Layer:
Combine with structural tools (like TradersAID Warning Dots or Trend Bands) to add a layer of momentum awareness.
4. Key Features
• Adaptive Velocity Model: Kalman-filter-like algorithm continuously tracks price velocity
• Gradient Candle Coloring: Smooth scale from deep red (strong bearish) to deep green (strong bullish)
• Flexible Sensitivity Modes:
o Slow – smoothest interpretation
o Regular – balanced tone
o Fast – more responsive
• RSI Normalization: Translates raw velocity into a familiar oscillator scale
• Full Overlay Integration: Candle coloring works seamlessly with other studies on the same chart
5. Technical Basis (Why It’s Closed Source)
The tool is built on a proprietary Unscented Kalman Filter implementation that estimates both price and its velocity simultaneously.
This advanced approach is rare in retail tools, drawing from real-time estimation techniques used in robotics and aerospace applications.
While the source remains closed to protect the performance logic and smoothing implementation, the core concepts — adaptive filtering, velocity-based analysis, and visual gradient output — are fully explained here for transparency and compliant understanding.
6. Settings
• Sensitivity Modes: Fast / Regular / Slow
• RSI Length: Adjustable to control the smoothness of velocity normalization
• Color Theme: Intuitive gradient from red (bearish) to green (bullish)
• Compatible Timeframes: Designed to work across all timeframes — no restriction
7. Disclaimer
This tool is for educational and informational purposes only. It does not offer financial advice, predict outcomes, or generate trading signals. Always use in conjunction with your own analysis and supporting systems.
Traders AID / Adaptive Smoothing Line (use on 1-week TF)TradersAID – Adaptive Smoothing Line (use on 1-week TF)
1. Overview
TradersAID – Adaptive Smoothing Line is a trend-following overlay designed to bring structure to noisy markets — especially on the 1-week chart, where clarity is crucial.
Instead of using conventional moving averages, this tool applies a Kalman-inspired smoothing method that adapts to changing price behavior.
Originally used in fields like robotics and autonomous driving, this filtering concept helps track directional flow without overreacting to minor fluctuations — making it easier to identify sustained moves or exhaustion patterns.
2. What It Does
The line continuously adapts to current market conditions by filtering volatility and directional flow through an internal estimator logic.
Unlike laggy moving averages, it does not simply average past prices — it adjusts dynamically based on how price behaves.
Key behaviors include:
• Directional slope that reflects trend strength
• Increased sensitivity during acceleration phases
• Stabilized flattening during sideways periods
This makes the trend easier to follow without being distracted by short-term chop.
3. How to Use It
• Trend Interpretation:
Use the line’s angle to judge momentum. Steep slopes show conviction, while flattening may signal transition or fading strength.
• Support & Resistance Context:
During trending phases, the line often acts as dynamic support or resistance — especially when combined with other tools.
• Volatility Filtering:
In consolidation, the line becomes smoother, helping reduce noise and simplify your view of structure.
• Layering Tool:
Use it as a visual foundation beneath more reactive tools like TradersAID Warning Dots or Velocity Coloring to stay grounded in context.
4. Key Features
• Adaptive Behavior: Responds to both price and volatility
• Three Modes:
o Slow for structure clarity
o Regular for balanced responsiveness
o Fast for shorter-term context
• Overlay Design: Plots directly on price for seamless interpretation
• Minimalist Output: Clean, unobtrusive line — no clutter
5. Technical Basis (Why It’s Closed Source)
This tool uses a custom smoothing technique based on Kalman-inspired logic, tuned specifically for longer-term trend structure.
While not a full Kalman implementation, the core idea is drawn from systems that track state under uncertainty — offering stability without lagging behind price.
The algorithm adapts continuously to live market input, producing a smooth yet responsive curve that reflects trend direction and change in a visually intuitive way.
As this smoothing mechanism is not available in open-source scripts and is part of a broader proprietary system, the code remains closed to protect its originality and performance edge.
6. Settings
• Mode Selection: Fast / Regular / Slow
• Styling Controls: Color, line width, smoothing curve
• Frame Lock:
✅ This tool is designed to work exclusively on the 1-week timeframe.
7. Disclaimer
This script is for educational and informational purposes only. It does not provide financial advice or generate trading signals. Use with your own judgment and supporting tools.
xGhozt Wickless Candles with TailSimple script showing candles missing an upper or lower wick. As candles tend to have a low and a high, they will most certainly form wicks. It is rare to have wickless candles on longer time frames, so it's more relevant on 1h and above.
Additionally, this indicator now visually tracks these 'missing wicks' as horizontal 'tails'. These tails extend from the wickless candle's extreme (low for bullish, high for bearish) and continue to stretch to the right until price action finally touches that level. Once touched, the tail disappears, signifying that the 'missing wick' has been filled or 'mitigated'.
What can you do about it?
If you see for example a Bitcoin 4h candle that hasn't formed two wicks yet, there are high chances that the missing wick will be formed at one point or another. The persistent horizontal tail vividly highlights these unmitigated levels, allowing you to identify potential price magnets. You could therefore consider taking a trade in the direction of the missing wick. You can set alerts on wickless candles if needed.
Shift 3M - 30Y Yield Spread🟧 Shift 3M - 30Y Yield Spread
- This indicator visually displays the **inverse of the US Treasury short-long yield spread** (3-month minus 30-year spread reversal signal) in a "price chart-like" form.
- By default, the spread line is shifted by 1 year to help anticipate forward market moves (you can adjust this offset freely).
- Especially customized to be analyzed together with the movements of US indices like the S&P 500, and to help understand broader market cycles.
✅ Description
- Normalizes the spread based on a rolling window length you set (default: 500 bars).
- Both the normalization window and offset (shift) are fully customizable.
- Then, it scales the spread to match your chart’s price range, allowing you to intuitively compare spread movements alongside price action.
- Instantly see the **inverse (reversal) signals of the short-long yield spread**, curve steepening, and how they align with actual price trends.
⚡ By reading macro yield signals, you can **anticipate exactly when a market crash might come or when an explosive rally is about to start**.
⚡ A perfect tool for macro traders and yield curve analysts who want to quickly catch major market turning points!
copyright @invest_hedgeway
============================================================
🟧3개월 - 30년 물 장단기 금리차 역수
- 이 인디케이터는 미국 국채 **장단기 금리차 역수**(3개월물 - 30년물 스프레드의 반전 시그널)를 시각적으로 "가격 차트"처럼 표시해 줍니다.
- 기본적으로 스프레드 선은 **1년(365봉) 시프트**되어 있어, 시장을 선행적으로 파악할 수 있도록 설계되었습니다 (값은 자유롭게 조정 가능).
- 특히 S&P500 등 미국 지수 흐름과 함께 분석할 수 있도록 맞춤화되었으며, 시장 사이클을 이해하는 데에도 큰 도움이 됩니다.
✅ 설명
- 지정한 롤링 윈도우 길이(기본: 500봉)를 기준으로 스프레드를 정규화합니다.
- 정규화 길이와 오프셋(시프트) 모두 자유롭게 설정 가능
- 이후 현재 차트의 가격 레인지에 맞게 스케일링해, 가격과 함께 흐름을 직관적으로 비교할 수 있습니다.
- **장단기 금리차의 역전(역수) 시그널**, 커브 스티프닝 등과 실제 가격 움직임의 관계를 한눈에 확인
⚡ 거시 금리 신호를 통해 **언제 폭락이 올지, 언제 폭등이 터질지** 미리 감지할 수 있습니다.
⚡ 시장의 전환점을 빠르게 캐치하고 싶은 매크로 트레이더와 금리 분석가에게 완벽한 도구!
copyright @invest_hedgeway
ATR Stop-Loss with Fibonacci Take-Profit [jpkxyz]ATR Stop-Loss with Fibonacci Take-Profit Indicator
This comprehensive indicator combines Average True Range (ATR) volatility analysis with Fibonacci extensions to create dynamic stop-loss and take-profit levels. It's designed to help traders set precise risk management levels and profit targets based on market volatility and mathematical ratios.
Two Operating Modes
Default Mode (Rolling Levels)
In default mode, the indicator continuously plots evolving stop-loss and take-profit levels based on real-time price action. These levels update dynamically as new bars form, creating rolling horizontal lines across the chart. I use this mode primarily to plot the rolling ATR-Level which I use to trail my Stop-Loss into profit.
Characteristics:
Levels recalculate with each new bar
All selected Fibonacci levels display simultaneously
Uses plot() functions with trackprice=true for price tracking
Custom Anchor Mode (Fixed Levels)
This is the primary mode for precision trading. You select a specific timestamp (typically your entry bar), and the indicator locks all calculations to that exact moment, creating fixed horizontal lines that represent your actual trade levels.
Characteristics:
Entry line (blue) marks your anchor point
Stop-loss calculated using ATR from the anchor bar
Fibonacci levels projected from entry-to-stop distance
Lines terminate when price breaks through them
Includes comprehensive alert system
Core Calculation Logic
ATR Stop-Loss Calculation:
Stop Loss = Entry Price ± (ATR × Multiplier)
Long positions: SL = Entry - (ATR × Multiplier)
Short positions: SL = Entry + (ATR × Multiplier)
ATR uses your chosen smoothing method (RMA, SMA, EMA, or WMA)
Default multiplier is 1.5, adjustable to your risk tolerance
Fibonacci Take-Profit Projection:
The distance from entry to stop-loss becomes the base unit (1.0) for Fibonacci extensions:
TP Level = Entry + (Entry-to-SL Distance × Fibonacci Ratio)
Available Fibonacci Levels:
Conservative: 0.618, 1.0, 1.618
Extended: 2.618, 3.618, 4.618
Complete range: 0.0 to 4.764 (23 levels total)
Multi-Timeframe Functionality
One of the indicator's most powerful features is timeframe flexibility. You can analyze on one timeframe while using stop-loss and take-profit calculations from another.
Best Practices:
Identify your entry point on execution timeframe
Enable "Custom Anchor" mode
Set anchor timestamp to your entry bar
Select appropriate analysis timeframe
Choose relevant Fibonacci levels
Enable alerts for automated notifications
Example Scenario:
Analyse trend on 4-hour chart
Execute entry on 5-minute chart for precision
Set custom anchor to your 5-minute entry bar
Configure timeframe setting to "4h" for swing-level targets
Select appropriate Fibonacci Extension levels
Result: Precise entry with larger timeframe risk management
Visual Intelligence System
Line Behaviour in Custom Anchor Mode:
Active levels: Lines extend to the right edge
Hit levels: Lines terminate at the breaking bar
Entry line: Always visible in blue
Stop-loss: Red line, terminates when hit
Take-profits: Green lines (1.618 level in gold for emphasis)
Customisation Options:
Line width (1-4 pixels)
Show/hide individual Fibonacci levels
ATR length and smoothing method
ATR multiplier for stop-loss distance
RTH Standard Deviation+RTH Standard Deviation+ Indicator
Overview
The RTH Standard Deviation+ (RTH SD+) indicator is a versatile tool designed for traders to visualize key price levels based on the Regular Trading Hours (RTH) session.
It calculates and displays the high, low, equilibrium (midpoint), and standard deviation-based levels derived from the RTH session's price range.
This indicator is ideal for day traders and swing traders looking to identify potential support, resistance, and breakout zones.
Features
Customizable Session Window: Define the RTH session based on your preferred time window and timezone.
Key Price Levels: Displays high, low, equilibrium, 25%/75% quartile levels, and standard deviation levels (±0.5, ±1.0, ±1.33, ±1.66, ±2.0, and optional extended levels up to ±4.0).
Visual Elements: Includes horizontal lines, labels, boxes, and vertical lines to highlight key levels and session boundaries.
Flexible Styling: Customize line styles, colors, thicknesses, and visibility for all elements.
Extended Levels: Optional display of additional standard deviation levels (±2.25, ±2.33, ±2.5, ±2.66, ±2.75, ±3.0, ±3.25, ±3.33, ±3.5, ±3.66, ±3.75, ±4.0).
Deviation Boxes: Visualize specific standard deviation ranges (±0.1, ±1.33/1.66, ±2.33/2.66, ±3.33/3.66) with customizable colors.
Inputs
Session Window: Set the RTH session time (default: 06:00–09:00).
Timezone: Select the appropriate timezone (default: UTC-4).
Label Offset: Adjust the horizontal offset for price level labels (default: 5 bars).
Line Offset: Set the length of horizontal lines extending from the session end (default: 20 bars).
Show SD Levels: Toggle visibility of standard deviation lines (±0.5, ±1.0, ±1.33, ±1.66, ±2.0).
Show SD Labels: Enable or disable labels for standard deviation levels.
Show SD Boxes: Display shaded boxes for specific standard deviation ranges (e.g., ±1.33/1.66).
Show ±0.1 Dev Boxes: Highlight smaller deviation ranges (±0.1) with boxes.
Vertical Line: Toggle a vertical line at the session end, with customizable color, style, and thickness.
High/Low, Equilibrium, 25%/75%, ±0.1 Dev, ±1.33/1.66: Toggle visibility and customize colors, styles, and thicknesses for these levels.
Extended Levels: Enable additional standard deviation levels (e.g., ±2.25, ±2.5, etc.) for advanced analysis.
How It Works
Session Tracking: The indicator identifies the user-defined RTH session based on the specified time window and timezone.
It tracks the high, low, and equilibrium (midpoint) of the session's price action.
Price Range Calculation: At the session's end, the indicator calculates the price range (high - low) and uses it to compute standard deviation levels relative to the high, low, or equilibrium.
Level Visualization:
High/Low Lines: Display the session's high and low prices as horizontal lines, extended beyond the session end.
Equilibrium Line: Shows the midpoint of the session range.
Quartile Lines: Plots 25% and 75% levels within the session range.
Standard Deviation Lines: Displays levels at ±0.5, ±1.0, ±1.33, ±1.66, and ±2.0 standard deviations, with optional extended levels up to ±4.0.
Deviation Boxes: Shaded boxes highlight specific ranges (e.g., ±1.33/1.66) for quick reference.
±0.1 Deviation Lines/Boxes: Optional smaller deviation levels for precise analysis.
Dynamic Updates: During the session, high and low lines update in real-time. At session end, all levels are finalized and extended forward for post-session analysis.
Clearing Mechanism: When a new session begins, previous drawings are cleared to avoid clutter.
Usage
Add to Chart: Apply the indicator to your TradingView chart via the Pine Editor or Indicator menu.
Configure Settings:
Adjust the session window and timezone to match your market (e.g., 09:30–16:00 UTC-4 for US equities RTH).
Customize visibility, colors, styles, and thicknesses to suit your chart preferences.
Enable extended levels for deeper analysis or disable them for simplicity.
Interpret Levels:
High/Low: Act as potential support/resistance or breakout levels.
Equilibrium: Represents the session's midpoint, often a pivot point.
25%/75% Quartiles: Indicate intermediate levels within the session range.
Standard Deviation Levels: Highlight statistically significant price zones for potential reversals or breakouts.
Boxes: Emphasize key zones for quick visual reference.
Trading Application: Use levels to identify entry/exit points, set stop-losses, or gauge market volatility.
For example, ±1.0 standard deviation levels often act as strong support/resistance, while ±2.0 levels may indicate overextension.
Notes
Ensure the session window aligns with the market’s trading hours for accurate calculations.
The indicator is designed for intraday and post-session analysis but can be adapted for other timeframes.
Use in conjunction with other technical analysis tools for comprehensive decision-making.
Extended levels (±2.25 and beyond) are disabled by default to reduce chart clutter but can be enabled for specific strategies.
TradingView House Rules Compliance
This indicator contains no copyrighted material and adheres to TradingView’s Pine Script guidelines.
This indicator was approved and created with @TIMELESS1_
IU Fibonacci Levels For IntradayDESCRIPTION
This indicator draws intraday Fibonacci levels from the opening price of the day using percentage-based retracements. It helps traders identify potential intraday support and resistance zones derived from the day’s opening bias. The levels are dynamically calculated and displayed with optional labels and customizable colors, making it an effective tool for both breakout and mean-reversion intraday strategies.
USER INPUTS
Direction Of The Level
Choose whether to show Upside, Downside, or Both level sets based on your directional bias.
Show Labels of Levels
Option to enable or disable text labels displaying Fibonacci values and prices.
Individual Level Toggles & Colors
You can choose to show or hide each of the following Fibonacci levels and set their respective colors:
* 0.236
* 0.328
* 0.500
* 0.618
* 0.786
* 1.000
INDICATOR LOGIC
On the first bar of the session, the opening price is captured.
Fibonacci levels are then calculated above and below this open using percentage multipliers (for example, day\_open + (day\_open \* 0.236%) for the 0.236 level).
Depending on the selected direction, upside and/or downside levels are plotted.
Filled zones are drawn between levels to visually highlight key price zones.
Optionally, each level can be labeled with its Fibonacci value and price.
WHY IT IS UNIQUE
Unlike traditional swing-based Fibonacci retracements, this tool uses the day’s opening price as an anchor, specifically designed for intraday traders.
Allows traders to quickly visualize micro-support and resistance levels that adapt every day.
Highly customizable and easy to read, with filled level bands for better zone recognition.
Works independently of indicators like RSI, MACD, or moving averages – purely based on price action logic.
HOW USER CAN BENEFIT FROM IT
Spot precise intraday reversal zones or breakout regions.
Combine with price action or volume analysis for smarter entries.
Filter trades by choosing directional bias (Up Site, Down Site, or Both).
Set profit targets or stop-losses based on Fibonacci bands.
Works great for scalpers, day traders, and even short-term swing traders looking to align with opening price momentum.
Disclaimer
This indicator is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.
NQ Hourly Stats - Detailed Prob (24h)Hourly Sweep Statistics - Probability Engine (Credits to nqstats.com)
Overview
This indicator is a powerful statistical tool designed for intraday traders, particularly those focused on session-based patterns and mean reversion strategies. It automatically tracks the previous hour's high, low, and open, and when a sweep of the high or low occurs, it instantly displays the historical probability of the price returning to the hourly open within that same hour.
The core of this indicator is a comprehensive probability model built on historical price data, providing traders with an objective, data-driven edge.
Key Concepts
The indicator operates on a simple but effective premise: after the high or low of the previous hour is taken, what is the statistical likelihood that price will revert back to the opening price of the current hour?
• Previous Hour High (PHH) & Previous Hour Low (PHL): These levels often act as key liquidity zones. A sweep of these levels can signify either a stop run before a reversal or the start of a strong continuation.
• Return to Open: This is a classic mean-reversion concept. The indicator quantifies the probability of this event happening based on the exact time the sweep occurs.
• Time-Based Probability: The probability of returning to the open is not static; it changes depending on when the sweep happens. A sweep in the first 5 minutes of the hour has a different statistical outcome than a sweep in the last 5 minutes. This indicator accounts for that variance by breaking down the hour into 12 distinct 5-minute buckets.
How It Works
1. Automatic Level Plotting: At the start of each new hour, the indicator automatically draws three lines on your chart:
o The Previous Hour's High (Teal, solid line)
o The Previous Hour's Low (Maroon, solid line)
o The Current Hour's Open (Gray, dotted line)
2. Sweep Detection & Labeling: The script constantly monitors price action. The moment the current price action sweeps (touches or breaks) the PHH or PHL, a label appears.
o High Sweep: A label will appear above the PHH line.
o Low Sweep: A label will appear below the PHL line.
3. Information-Rich Labels: Each label provides crucial, real-time information:
o Direction: "Took PHH" or "Took PHL".
o Time: The exact time (@ HH:MM) the sweep occurred.
o Probability: The historical probability ("Prob to Open: XX.XX%") of price returning to the hourly open after that specific sweep.
4. Dynamic Color-Coding: The labels are color-coded for at-a-glance interpretation:
o Green: High probability (>70%) - Strong statistical likelihood of returning to the open.
o Orange: Medium probability (40%-70%) - Neutral/moderate likelihood.
o Red: Low probability (<40%) - Weak statistical likelihood of returning to the open; may suggest trend continuation.
How to Use in Your Trading
This indicator is not a standalone signal generator but a powerful confluence tool to enhance your decision-making.
• Mean Reversion Setups: When a sweep occurs and a high-probability (green) label appears, it can serve as strong confirmation for a mean-reversion trade. You can look for entries on a lower timeframe, targeting the hourly open.
• Trend Continuation Setups: If a sweep generates a low-probability (red) label, it suggests that the move has strength and is less likely to reverse. This can be used to validate a breakout or trend-following strategy, or to avoid taking a counter-trend trade.
• Filtering Trades: Use the probabilities to filter your existing setups. You might choose to only take reversion trades when the probability is above a certain threshold (e.g., 70%) or avoid them entirely when the probability is low.
Features & Customization
• Full 24-Hour Data: The statistical model includes data for all 24 hours of the day, making it useful for trading any session (Asia, London, New York).
• Timezone Setting: Ensure you set the Chart Timezone input to match your chart's timezone (e.g., 'America/New_York') for the probabilities to be accurate.
• Custom Colors: All line colors are fully customizable to match your chart's theme.
Disclaimer: This indicator is based on historical statistics and does not guarantee future results. It should be used as part of a comprehensive trading plan that includes proper risk management. Always do your own research and backtesting.
[ BETA ][ IND ][ LIB ] Dynamic LookBack RSI RangeGet visual confirmation with this indicator if the current range selected had been oversold or overbough in the latest n bars
Economic Event Timer & Alerts [AlgoXcalibur]Stay ahead of market-moving news with this real-time event tracker and countdown alert system.
This essential algorithm displays critical scheduled events that may influence sudden spikes in market volatility, helping you stay aware and reduce exposure to unpredictable moves before they even happen. Featuring a captivating on-chart display with event titles, adjustable time zone, real-time countdowns, and live alert notifications — you’ll always know what’s ahead — so you can prepare, not react.
🧠 Algorithm Logic
The Economic Event Timer & Alerts system delivers critical market awareness through an array of integrated functions. At its core, a live countdown table provides real-time updates on the day’s scheduled economic events, with dynamic, color-coded countdowns that ensure fast and easy interpretation at a glance. Complementing the table, Countdown Alerts notify you 30 minutes, 10 minutes, and 1 minute prior to each event—giving you clear, timely reminders without the need to constantly monitor your chart. The adjustable time zone input supports ET, CT, MT, PT, or UTC, so the displayed time-of-event aligns with your trading session. Rigorously refined, the algorithm updates the table daily—and clearly displays No Scheduled Events Today to provide certainty and reassurance on days without scheduled events. Packaged in a minimalist, unobtrusive design, the tool remains visually clean and focused for serious traders.
Updated automatically for hassle-free peace of mind.
⚙️ Features
• Time Zone Selector: Easily toggle between time zones to match your trading session.
• Countdown Alerts: Enable real-time notifications to keep you informed and aware of events without having to monitor the chart.
• Update & Expiration Awareness Feature:
This innovative feature includes a simple visual and alert system that prompts you when it’s time to reload the indicator & recreate alerts — ensuring your alerts are always tied to the latest data update.
🔄 Update Available
On the final day of current event data, the indicator will:
• Display Update Available on the indicator’s table
• Send an alert at 4:00 PM ET reminding you to reload & recreate alerts
You can load the updated version anytime that day.
⛔ Expired
If not reloaded, the next day the indicator will:
• Display an EXPIRED banner on the indicator’s table
• Send a Data Expired alert every day at 8:30 AM ET that prompts you to recreate alerts, until you do or disable the alert.
This prevents missing event alerts unknowingly.
Why is this feature necessary?
Even though the indicator is updated when necessary (typically every 2–4 weeks) to provide upcoming event data automatically, TradingView alerts do not auto-update —they stay tied to the version of the script that was active when the alert was created.
This thoughtful refinement is designed to ensure your alerts remain synced to current events and ready for when it matters most.
🚨 Protect Your Capital
At AlgoXcalibur, we understand that the best way to be profitable is to avoid unnecessary risk.
Dedicated to empowering traders with insight that matters, we designed this tool to transform inconvenient economic calendars into effortless, essential information—displayed directly on your chart. Whether you’re managing open positions or timing new trades, knowing when impactful events are about to hit is crucial to being proactive, protecting capital, and trading with confidence. This is not a technical analysis indicator—this is a risk management tool that provides traders with a fundamental edge.
Built for traders who value risk management, market awareness, and algorithm automation.
🔐 To get access or learn more, visit the Author’s Instructions section.
VegaAlgo – Rating ViewVegaAlgo – Rating View is a market condition analysis tool designed to evaluate the current price structure.
The indicator calculates a RATING (from 0 to 100) that reflects how clean, directional, and structured the recent price movement is. The rating is based on the number of price direction changes (from bullish to bearish candles and vice versa) within a selected period. Fewer direction changes indicate a clearer trend and result in a higher rating, while a choppy or highly volatile market leads to a lower score.
Additionally, the indicator provides directional signals on three key timeframes — 1M, 5M, and 15M, using a comparison of fast and slow moving averages. This allows traders to quickly assess the dominant trend both locally and across higher timeframes.
This script is intended for visual market analysis only and should not be considered financial advice.
NQ Hourly Edge (By Scalpr)📊 Hourly Edge (Lorden) - Statistical Trading Edge Indicator
Transform your NQ1! trading with data-driven hourly analysis and high-probability setups based on extensive backtesting.
🎯 What This Indicator Does
The Hourly Edge indicator identifies high-probability "return to open" scenarios during the New York trading session (8am-4pm ET) specifically for NQ1! (Nasdaq futures). When the current hour opens inside the previous hour's range and then sweeps the previous high or low, statistical data shows strong probabilities of price returning to the hourly open.
📈 Key Features
Statistical Edge Detection
Real-time sweep detection with tick-by-tick accuracy
Probability percentages based on extensive NQ1! backtesting data
Color-coded probability levels: Green (75%+), Yellow (51-74%), Red (<50%)
Status tracking: Waiting → Swept → Returned
Visual Trading Tools
Hourly/Custom interval lines with full customization
High/Low tracking with optional current hour hiding
Opening price reference lines
Configurable line styles, colors, and widths
Smart Session Management
NY timezone awareness (8am-4pm ET focus)
"Waiting for 8am" display outside trading hours
20-minute segment analysis for refined probability calculations
🔧 Customization Options
Timeframe Flexibility
Multiple preset intervals: 4H, 1H, 30m, 15m, 10m, 5m
Custom timeframe input (hours + minutes)
Works on any chart timeframe
Display Controls
Show/hide any line type independently
Moveable info box (4 corner positions)
Adjustable text sizes
Historical line limit (1-500 bars)
Line Styling
Individual color settings for each line type
Style options: Solid, Dashed, Dotted
Width control: 1, 2, or 3 pixels
📊 How to Use
Add to NQ1! charts during NY session hours
Watch for sweep notifications in the info box
Check probability percentages for trade confidence
Monitor return status for entry/exit timing
Use alerts for high-probability setups (75%+ edge)
⚡ Best Practices
Optimal timeframes: 1m-15m for entries, 1H for context
Focus on 75%+ probability setups for highest edge
Wait for "moved away from open" confirmation before expecting returns
Combine with your existing NQ1! strategy for enhanced timing
🎯 Perfect For
NQ1! scalpers seeking high-probability entries
Nasdaq day traders wanting statistical edge confirmation
Futures strategy developers incorporating hourly analysis
Risk managers looking for data-driven NQ1! setups
[Mad]Triple Bollinger Bands ForecastTriple Bollinger Bands Forecast (BBx3+F)
This open-source indicator is an advanced version of the classic Bollinger Bands, designed to provide a more comprehensive and forward-looking view of market volatility and potential price levels.
It plots three distinct sets of Bollinger Bands and projects them into the future based on statistical calculations.
How It Is Built and Key Features
Triple Bollinger Bands: Instead of a single set of bands, this indicator plots three. All three share the same central basis line (a Simple Moving Average), but each has a different standard deviation multiplier. This creates three distinct volatility zones for analyzing price deviation from its mean.
Multi-Timeframe (MTF) Capability: The indicator can calculate and display Bollinger Bands from a higher timeframe (e.g., showing daily bands on a 4-hour chart). This allows for contextualizing price action within the volatility structure of a more significant trend.
(Lower HTF selection will result in script-crash!)
Future Forecasting: This is the indicator's main feature. It projects the calculated Bollinger Bands up to 8 bars into the future. This forecast is a recalculation of the Simple Moving Average and Standard Deviation based on a projected future source price.
Selectable Forecast Methods: The mathematical model for estimating the future source price can be selected:
Flat: A model that uses the most recent closing price as the price for all future bars in the calculation window.
Linreg (Linear Regression): A model that calculates a linear regression trend on the last few bars and projects it forward to estimate the future source price.
Efficient Drawing with Polylines: The future projections are drawn on the chart using Pine Script's polyline object. This is an efficient method that draws the forecast data only on the last bar, which avoids repainting issues.
Differences from a Classical Bollinger Bands Indicator
Band Count: A classical indicator shows one set of bands. This indicator plots three sets for a multi-layered view of volatility.
Perspective: Classical Bollinger Bands are purely historical. This indicator is both historical and forward-looking .
Forecasting: The classic version has no forecasting capability. This indicator projects the bands into the future .
Timeframe: The classic version works only on the current timeframe. This indicator has full Multi-Timeframe (MTF) support .
The Mathematics Behind the Future Predictions
The core challenge in forecasting Bollinger Bands is that a future band value depends on future prices, which are unknown. This indicator solves this by simulating a future price series. Here is the step-by-step logic:
Forecast the Source Price for the Next Bar
First, the indicator estimates what the price will be on the next bar.
Flat Method: The forecasted price is the current bar's closing price.
Price_forecast = close
Linreg Method: A linear regression is calculated on the last few bars and extrapolated one step forward.
Price_forecast = ta.linreg(close, linreglen, 1)
Calculate the Future SMA (Basis)
To calculate the Simple Moving Average for the next bar, a new data window is simulated. This window includes the new forecasted price and drops the oldest historical price. For a 1-bar forecast, the calculation is:
SMA_future = (Price_forecast + close + close + ... + close ) / length
Calculate the Future Standard Deviation
Similarly, the standard deviation for the next bar is calculated over this same simulated window of prices, using the new SMA_future as its mean.
// 1. Calculate the sum of squared differences from the new mean
d_f = Price_forecast - SMA_future
d_0 = close - SMA_future
// ... and so on for the rest of the window's prices
SumOfSquares = (d_f)^2 + (d_0)^2 + ... + (d_length-2)^2
// 2. Calculate future variance and then the standard deviation
Var_future = SumOfSquares / length
StDev_future = sqrt(Var_future)
Extending the Forecast (2 to 8 Bars)
For forecasts further into the future (e.g., 2 bars), the script uses the same single Price_forecast for all future steps in the calculation. For a 2-bar forecast, the simulated window effectively contains the forecasted price twice, while dropping the two oldest historical prices. This provides a statistically-grounded projection of where the Bollinger Bands are likely to form.
Usage as a Forecast Extension
This indicator's functionality is designed to be modular. It can be used in conjunction with as example Mad Triple Bollinger Bands MTF script to separate the rendering of historical data from the forward-looking forecast.
Configuration for Combined Use:
Add both the Mad Triple Bollinger Bands MTF and this Triple Bollinger Bands Forecast indicator to your chart.
Open the Settings for this indicator (BBx3+F).
In the 'General Settings' tab, disable the Activate Plotting option.
To ensure data consistency, the Bollinger Length, Multipliers, and Higher Timeframe settings should be identical across both indicators.
This configuration prevents the rendering of duplicate historical bands. The Mad Triple Bollinger Bands MTF script will be responsible for visualizing the historical and current bands, while this script will overlay only the forward-projected polyline data.
Maqs previous day close and today's highDifferenceIt gives previous day close and today's high Difference and hence capacity of the stock