Diodato 'All Stars Align' SignalDescription:
This indicator is an overlay that plots the "All Stars Align" buy signal from Chris Diodato's 2019 CMT paper, "Making The Most Of Panic." It is designed to identify high-conviction, short-term buying opportunities by requiring a confluence of both price-based momentum and market-internal weakness.
What It Is
This script works entirely in the background, calculating three separate indicators: the 14-day Slow Stochastic, the Short-Term Capitulation Oscillator (STCO), and the 3-DMA of % Declining Issues. It then plots a signal directly on the main price chart only when the specific "All Stars Align" conditions are met.
How to Interpret
A green cross (+) appears below a price bar when a high-conviction buy signal is generated. This signal triggers only when two primary conditions are true:
The 14-day Slow Stochastic is in "oversold" territory (e.g., below 20).
AND at least one of the market internal indicators shows a state of panic:
Either the STCO is oversold (e.g., below 140).
Or the 3-DMA % Declines shows a panic spike (e.g., above 65).
This confluence signifies a potential exhaustion of sellers and can mark an opportune moment to look for entries.
Settings
Trigger Thresholds: You can customize the exact levels that define an "oversold" or "panic" state for each of the three underlying indicators.
Data Sources: Allows toggling the use of "Unchanged" data for the background calculations.
Stochastic Settings: You can adjust the parameters for the Slow Stochastic calculation.
Indicatori e strategie
30-Min Opens v1This is a very basic script that outlines every 30 min open starting at 7:30 am UK time and ending at 21:00 UK time.
Standard Deviation VolatilityThe Standard Deviation (StDev) measures the volatility or dispersion of price from its historical average. Higher values suggest greater price fluctuation and potentially a trending market. Lower values indicate lower volatility, often found during consolidation or ranging markets.
標準偏差(Standard Deviation)は、価格の過去の平均からの**ばらつき(ボラティリティ)**を測る指標です。値が高いほど価格変動が激しく、トレンド相場であることを示唆します。値が低いほど、レンジ相場または保ち合いであることを示します。
Wilder's ADX/DIワイルダー氏が作ったトレンドの強弱を計るインジケーターです。証券会社のものは微妙に計算式が違うため、ワイルダー氏のオリジナルの計算式で作りました。
It’s an indicator created by Mr. Wilder to measure the strength of a trend.
Since the calculation formulas used by brokerage firms vary slightly, this version is built using Mr. Wilder’s original formula.
TEAM CF GREEN OR RED (close above green buy, below red sell)*This is a simple to read indicator good close above green you buy if you close below the red sell
You will still need to check the dxy and rsi for extra confirmation.
Advanced Speedometer Gauge [PhenLabs]Advanced Speedometer Gauge
Version: PineScript™v6
📌 Description
The Advanced Speedometer Gauge is a revolutionary multi-metric visualization tool that consolidates 13 distinct trading indicators into a single, intuitive speedometer display. Instead of cluttering your workspace with multiple oscillators and panels, this gauge provides a unified interface where you can switch between different metrics while maintaining consistent visual interpretation.
Built on PineScript™ v6, the indicator transforms complex technical calculations into an easy-to-read semi-circular gauge with color-coded zones and a precision needle indicator. Each of the 13 available metrics has been carefully normalized to a 0-100 scale, ensuring that whether you’re analyzing RSI, volume trends, or volatility extremes, the visual interpretation remains consistent and intuitive.
The gauge is designed for traders who value efficiency and clarity. By consolidating multiple analytical perspectives into one compact display, you can quickly assess market conditions without the visual noise of traditional multi-indicator setups. All metrics are non-overlapping, meaning each provides unique insights into different aspects of market behavior.
🚀 Points of Innovation
13 selectable metrics covering momentum, volume, volatility, trend, and statistical analysis, all accessible through a single dropdown menu
Universal 0-100 normalization system that standardizes different indicator scales for consistent visual interpretation across all metrics
Semi-circular gauge design with 21 arc segments providing smooth precision and clear visual feedback through color-coded zones
Non-redundant metric selection ensuring each indicator provides unique market insights without analytical overlap
Advanced metrics including MFI (volume-weighted momentum), CCI (statistical deviation), Volatility Rank (extended lookback), Trend Strength (ADX-style), Choppiness Index, Volume Trend, and Price Distance from MA
Flexible positioning system with 5 chart locations, 3 size options, and fully customizable color schemes for optimal workspace integration
🔧 Core Components
Metric Selection Engine: Dropdown interface allowing instant switching between 13 different technical indicators, each with independent parameter controls
Normalization System: All metrics converted to 0-100 scale using indicator-specific algorithms that preserve the statistical significance of each measurement
Semi-Circular Gauge: Visual display using 21 arc segments arranged in curved formation with two-row thickness for enhanced visibility
Color Zone System: Three distinct zones (0-40 green, 40-70 yellow, 70-100 red) providing instant visual feedback on metric extremes
Needle Indicator: Dynamic pointer that positions across the gauge arc based on precise current metric value
Table Implementation: Professional table structure ensuring consistent positioning and rendering across different chart configurations
🔥 Key Features
RSI (Relative Strength Index): Classic momentum oscillator measuring overbought/oversold conditions with adjustable period length (default 14)
Stochastic Oscillator: Compares closing price to price range over specified period with smoothing, ideal for identifying momentum shifts
MFI (Money Flow Index): Volume-weighted RSI that combines price movement with volume to measure buying and selling pressure intensity
CCI (Commodity Channel Index): Measures statistical deviation from average price, normalized from typical -200 to +200 range to 0-100 scale
Williams %R: Alternative overbought/oversold indicator using high-low range analysis, inverted to match 0-100 scale conventions
Volume %: Current volume relative to moving average expressed as percentage, capped at 100 for extreme spikes
Volume Trend: Cumulative directional volume flow showing whether volume is flowing into up moves or down moves over specified period
ATR Percentile: Current Average True Range position within historical range using specified lookback period (default 100 bars)
Volatility Rank: Close-to-close volatility measured against extended historical range (default 252 days), differs from ATR in calculation method
Momentum: Rate of change calculation showing price movement speed, centered at 50 and normalized to 0-100 range
Trend Strength: ADX-style calculation using directional movement to quantify trend intensity regardless of direction
Choppiness Index: Measures market choppiness versus trending behavior, where high values indicate ranging markets and low values indicate strong trends
Price Distance from MA: Measures current price over-extension from moving average using standard deviation calculations
🎨 Visualization
Semi-Circular Arc Display: Curved gauge spanning from 0 (left) to 100 (right) with smooth progression and two-row thickness for visibility
Color-Coded Zones: Green zone (0-40) for low/oversold conditions, yellow zone (40-70) for neutral readings, red zone (70-100) for high/overbought conditions
Needle Indicator: Downward-pointing triangle (▼) positioned precisely at current metric value along the gauge arc
Scale Markers: Vertical line markers at 0, 25, 50, 75, and 100 positions with corresponding numerical labels below
Title Display: Merged cell showing “𓄀 PhenLabs” branding plus currently selected metric name in monospace font
Large Value Display: Current metric value shown with two decimal precision in large text directly below title
Table Structure: Professional table with customizable background color, text color, and transparency for minimal chart obstruction
📖 Usage Guidelines
Metric Selection
Select Metric: Default: RSI | Options: RSI, Stochastic, Volume %, ATR Percentile, Momentum, MFI (Money Flow), CCI (Commodity Channel), Williams %R, Volatility Rank, Trend Strength, Choppiness Index, Volume Trend, Price Distance | Choose the technical indicator you want to display on the gauge based on your current analytical needs
RSI Settings
RSI Length: Default: 14 | Range: 1+ | Controls the lookback period for RSI calculation, shorter periods increase sensitivity to recent price changes
Stochastic Settings
Stochastic Length: Default: 14 | Range: 1+ | Lookback period for stochastic calculation comparing close to high-low range
Stochastic Smooth: Default: 3 | Range: 1+ | Smoothing period applied to raw stochastic value to reduce noise and false signals
Volume Settings
Volume MA Length: Default: 20 | Range: 1+ | Moving average period used to calculate average volume for comparison with current volume
Volume Trend Length: Default: 20 | Range: 5+ | Period for calculating cumulative directional volume flow trend
ATR and Volatility Settings
ATR Length: Default: 14 | Range: 1+ | Period for Average True Range calculation used in ATR Percentile metric
ATR Percentile Lookback: Default: 100 | Range: 20+ | Historical range used to determine current ATR position as percentile
Volatility Rank Lookback (Days): Default: 252 | Range: 50+ | Extended lookback period for Volatility Rank metric using close-to-close volatility
Momentum and Trend Settings
Momentum Length: Default: 10 | Range: 1+ | Lookback period for rate of change calculation in Momentum metric
Trend Strength Length: Default: 20 | Range: 5+ | Period for directional movement calculations in ADX-style Trend Strength metric
Advanced Metric Settings
MFI Length: Default: 14 | Range: 1+ | Lookback period for Money Flow Index calculation combining price and volume
CCI Length: Default: 20 | Range: 1+ | Period for Commodity Channel Index statistical deviation calculation
Williams %R Length: Default: 14 | Range: 1+ | Lookback period for Williams %R high-low range analysis
Choppiness Index Length: Default: 14 | Range: 5+ | Period for calculating market choppiness versus trending behavior
Price Distance MA Length: Default: 50 | Range: 10+ | Moving average period used for Price Distance standard deviation calculation
Visual Customization
Position: Default: Top Right | Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Right | Controls gauge placement on chart for optimal workspace organization
Size: Default: Normal | Options: Small, Normal, Large | Adjusts overall gauge dimensions and text size for different monitor resolutions and preferences
Low Zone Color (0-40): Default: Green (#00FF00) | Customize color for low/oversold zone of gauge arc
Medium Zone Color (40-70): Default: Yellow (#FFFF00) | Customize color for neutral/medium zone of gauge arc
High Zone Color (70-100): Default: Red (#FF0000) | Customize color for high/overbought zone of gauge arc
Background Color: Default: Semi-transparent dark gray | Customize gauge background for contrast and chart integration
Text Color: Default: White (#FFFFFF) | Customize all text elements including title, value, and scale labels
✅ Best Use Cases
Quick visual assessment of market conditions when you need instant feedback on whether an asset is in extreme territory across multiple analytical dimensions
Workspace organization for traders who monitor multiple indicators but want to reduce chart clutter and visual complexity
Metric comparison by switching between different indicators while maintaining consistent visual interpretation through the 0-100 normalization
Overbought/oversold identification using RSI, Stochastic, Williams %R, or MFI depending on whether you prefer price-only or volume-weighted analysis
Volume analysis through Volume %, Volume Trend, or MFI to confirm price movements with corresponding volume characteristics
Volatility monitoring using ATR Percentile or Volatility Rank to identify expansion/contraction cycles and adjust position sizing
Trend vs range identification by comparing Trend Strength (high values = trending) against Choppiness Index (high values = ranging)
Statistical over-extension detection using CCI or Price Distance to identify when price has deviated significantly from normal behavior
Multi-timeframe analysis by duplicating the gauge on different timeframe charts to compare metric readings across time horizons
Educational purposes for new traders learning to interpret technical indicators through consistent visual representation
⚠️ Limitations
The gauge displays only one metric at a time, requiring manual switching to compare different indicators rather than simultaneous multi-metric viewing
The 0-100 normalization, while providing consistency, may obscure the raw values and specific nuances of each underlying indicator
Table-based visualization cannot be exported or saved as an image separately from the full chart screenshot
Optimal parameter settings vary by asset type, timeframe, and market conditions, requiring user experimentation for best results
💡 What Makes This Unique
Unified Multi-Metric Interface: The only gauge-style indicator offering 13 distinct metrics through a single interface, eliminating the need for multiple oscillator panels
Non-Overlapping Analytics: Each metric provides genuinely unique insights—MFI combines volume with price, CCI measures statistical deviation, Volatility Rank uses extended lookback, Trend Strength quantifies directional movement, and Choppiness Index measures ranging behavior
Universal Normalization System: All metrics standardized to 0-100 scale using indicator-appropriate algorithms that preserve statistical meaning while enabling consistent visual interpretation
Professional Visual Design: Semi-circular gauge with 21 arc segments, precision needle positioning, color-coded zones, and clean table implementation that maintains clarity across all chart configurations
Extensive Customization: Independent parameter controls for each metric, five position options, three size presets, and full color customization for seamless workspace integration
🔬 How It Works
1. Metric Calculation Phase:
All 13 metrics are calculated simultaneously on every bar using their respective algorithms with user-defined parameters
Each metric applies its own specific calculation method—RSI uses average gains vs losses, Stochastic compares close to high-low range, MFI incorporates typical price and volume, CCI measures deviation from statistical mean, ATR calculates true range, directional indicators measure up/down movement, and statistical metrics analyze price relationships
2. Normalization Process:
Each calculated metric is converted to a standardized 0-100 scale using indicator-appropriate transformations
Some metrics are naturally 0-100 (RSI, Stochastic, MFI, Williams %R), while others require scaling—CCI transforms from ±200 range, Momentum centers around 50, Volume ratio caps at 2x for 100, ATR and Volatility Rank calculate percentile positions, and Price Distance scales by standard deviations
3. Gauge Rendering:
The selected metric’s normalized value determines the needle position across 21 arc segments spanning 0-100
Each arc segment receives its color based on position—segments 0-8 are green zone, segments 9-14 are yellow zone, segments 15-20 are red zone
The needle indicator (▼) appears in row 5 at the column corresponding to the current metric value, providing precise visual feedback
4. Table Construction:
The gauge uses TradingView’s table system with merged cells for title and value display, ensuring consistent positioning regardless of chart configuration
Rows are allocated as follows: Row 0 merged for title, Row 1 merged for large value display, Row 2 for spacing, Rows 3-4 for the semi-circular arc with curved shaping, Row 5 for needle indicator, Row 6 for scale markers, Row 7 for numerical labels at 0/25/50/75/100
All visual elements update on every bar when barstate.islast is true, ensuring real-time accuracy without performance impact
💡 Note:
This indicator is designed for visual analysis and market condition assessment, not as a standalone trading system. For best results, combine gauge readings with price action analysis, support and resistance levels, and broader market context. Parameter optimization is recommended based on your specific trading timeframe and asset class. The gauge works on all timeframes but may require different parameter settings for intraday versus daily/weekly analysis. Consider using multiple instances of the gauge set to different metrics for comprehensive market analysis without switching between settings.
On-Chain Metrics by AshamazThe script displays market cap, supply, realized price, MVRV, and NUPL for cryptocurrencies when such data is available.
It also plots realized price lines and buy zones at 30%, 50%, and 70% below it, indicating areas of favorable (undervalued) price levels.
Mayer Mutiple | QRMayer Multiple | QR — Publication Description
What it does
Mayer Multiple | QR is a cycle/valuation style oscillator that measures how far price sits above or below its longer-term average and normalizes that distance by current volatility. It helps you spot overheated extensions and deep discounts relative to trend, with adaptive bands that expand/contract as conditions change.
How it works (principle)
The script compares price to a long lookback moving average (default uses a 200-period average of ohlc4) and turns that gap into an oscillator.
It then computes a rolling standard deviation of that oscillator to build dynamic upper/lower bands (±1σ, ±2σ, ±3σ).
When the oscillator rises above the upper bands, the move is statistically stretched (potential distribution/risk). When it falls below the lower bands, it’s statistically depressed (potential accumulation/opportunity).
A small baseline band around zero (scaled from volatility) provides a quick trend-bias read without crowding the view.
Why this matters: Classic “Mayer Multiple” tools use a fixed threshold over a single moving average. This version is volatility-aware: its bands adapt to the market’s current dispersion, reducing false signals in quiet regimes and avoiding constant “overheat” flags in high-vol regimes.
What you see on the chart
White oscillator line: volatility-normalized deviation from the long-term average.
Adaptive bands:
Upper 1/2/3σ (shaded blue tones) = progressively more extended.
Lower 1/2/3σ (shaded green tones) = progressively more discounted.
Baseline ribbon: subtle band around zero for quick bias.
Background highlights: optional flashes when the oscillator exceeds the ±3σ extremes.
All visuals are generated by this script alone; no other indicator is required to understand usage.
How to use it
Context: Use on higher timeframes to gauge where price sits versus its long-term “fair value corridor.”
Signal reading:
Above +1σ/+2σ/+3σ: extension → consider de-risking, trailing stops, or waiting for mean reversion.
Below −1σ/−2σ/−3σ: discount → consider scaling in, watching for trend resumption cues.
Confluence: Treat it as a condition, not a trigger. Pair with structure (higher highs/lows), breadth, or momentum for entries/exits.
Regime awareness: As volatility rises, bands widen; prioritize trend context over single print extremes.
Inputs you can tune
Color mode: preset palettes for lines/fills/backgrounds.
Dynamic Threshold Length: lookback for the volatility (σ) calculation driving the adaptive bands.
Source: price input used for the long-term reference.
Band toggles: show/hide ±1σ / ±2σ / ±3σ envelopes to reduce clutter.
Originality & value
Adaptive, volatility-aware implementation of a Mayer-style concept: rather than one fixed threshold, it scales to current regime, keeping readings comparable across cycles.
Clear, clean presentation (oscillator + bands + optional background) designed for publication with a clean chart so the script’s output is immediately identifiable.
Offers actionable context (stretch/discount zones) while leaving trade execution to the user’s process.
Limitations & good practices
Best used for context and risk framing, not stand-alone entries.
Adaptive bands depend on the lookback you choose; very short windows can overfit, very long windows can lag.
Extremes can persist in strong trends—don’t fade momentum blindly.
Disclaimer
This tool is for research and education only and not investment advice. Markets involve risk. Past performance does not predict or guarantee future results. Use prudent risk management and test settings on your instruments/timeframes.
TEAM CF Scalp Trendline Break + Pro Filters (RSI/EMA/ATR)TEAM CF BULLETPROOF INDICATOR
We cover all of these indicators this is in trial phase and will be great for scalping
TEAM CF Scalp Trendline Break + Pro Filters (RSI/EMA/ATR)
3-6-9 Time Digit Sum IndicatorThis indicator is based on the 3-6-9 digit sum additions and will display the relevant number below the bar that matches a 3, 6 or 9 sum addition.
There are 2 options built into this indicator:
Choose between "Minutes" and "Hours and Minutes"
Choose between "London" and "New York" timezones
Moving Avarage Momentum [db]Overview
The Moving Average Momentum indicator is a powerful hybrid tool that combines classic moving average crossovers with dynamic momentum and smoothing logic.
It enhances the traditional SMA crossover system by adding momentum flip detection, visual markers, and multiple smoothing modes (including Bollinger Bands).
This indicator helps you identify trend direction, momentum shifts, and potential reversals in a single, visually intuitive overlay.
⸻
⚙️ Key Features
🔹 1. Dual SMA Framework
Uses two configurable Simple Moving Averages (SMA 1 & SMA 2) to measure short-term and long-term trend bias.
The color of each SMA dynamically reflects momentum direction (green = rising, gray = flat, red = falling).
🔹 2. Multi-Type Smoothing Options
Choose how you want to smooth the MAs for better signal clarity:
None — raw SMA crossovers
SMA — classic smoothing
SMA + Bollinger Bands — volatility-based envelope with dynamic bands
EMA, SMMA (RMA), WMA, VWMA — adaptive smoothing styles to suit your trading preference
Each smoothing method can be customized with a separate length and Bollinger Band multiplier (if selected).
🔹 3. Visual Markers for Crossover Events
The indicator highlights bullish and bearish crossovers between the two moving averages:
🔹 4. Momentum Flip Detection
Detects when short-term momentum shifts direction based on the slope of the faster MA:
Up Momentum Flip = Momentum changes from negative to positive
Down Momentum Flip = Momentum changes from positive to negative
These flips are marked on the chart for early momentum signals — often appearing before a full crossover occurs.
🔹 5. Bollinger Band Mode
When “SMA + Bollinger Bands” is selected:
The indicator adds upper and lower volatility envelopes around the smoothed SMA.
The area between them is shaded to help visualize contraction and expansion phases.
🔹 6. Trend Fill
A shaded region between SMA1 and SMA2 visually distinguishes the active trend.
Candle body break (M_WD4H1H)v5Overview
This indicator is a multi-timeframe (MTF) analysis tool specialized in detecting candle body breaks. It overlays the break levels for five timeframes: monthly (M), weekly (W), daily (D), 4-hourly (4H), and 1-hourly (1H) on the current chart.
Major Features
Feature Description
Five timeframes: M/W/D/4H/1H. Data for each timeframe is retrieved and calculated using the request.security() function.
Break Detection Logic: A "body break" is defined as when the closing price of the current candlestick exceeds or falls below the body high/low of the previous opposite candlestick.
Confirmed Break Line: A solid line extending from the point of the break to the right edge of the chart indicates the price level at which a previous body break occurred. Upward breaks are drawn in blue, and downward breaks are drawn in red.
Candidate Break Lines: Green dotted lines indicate the (unbroken) body high and low levels that are the next target for a break.
Summary Table: A list of the most recent break direction (upward ⇧ / downward ⇩ / none "") for each time frame (M/W/D/4H/1H) is displayed in the upper right corner of the chart.
Display Time Frame Limit: Depending on user settings, the break line itself will only be displayed for the chart's time frame or higher. Candidate lines can also be displayed only for the current chart's time frame.
Alert Function: An alert will be issued when a body break occurs on the 1-hour (1H) time frame.
Scale Settings: The entire indicator is fixed to the price scale on the right.
TSI Advanced - Enhanced with Signals & AlertsMeasures trend strength and momentum using a double-smoothed price change (True Strength Index), enhanced with automatic signals, divergences, and alerts.
### 🔧 Key Components
* **TSI Line (Blue):** Main momentum measure
* **Signal Line (Pink):** For crossovers (buy/sell)
* **Zero Line:** Defines bullish (above) or bearish (below) zones
* **OB/OS Zones:** +25 = Overbought, -25 = Oversold
### 🚨 Core Signals
1. **Crossovers (Triangles)**
* 🔼 Green = Buy (TSI > Signal)
* 🔽 Red = Sell (TSI < Signal)
2. **Zero Line Cross (Circles)**
* Above 0 → Bullish trend
* Below 0 → Bearish trend
3. **Divergences (Dashed Lines)**
* Green = Bullish divergence
* Red = Bearish divergence
4. **Zone Alerts:** Background turns green/red for OB/OS levels
### 📊 Strategies
* **Crossover Entry:** Trade on crossovers near OB/OS zones
* **Zero Line Momentum:** Ride trend while TSI stays above/below zero
* **Divergence Trading:** Combine divergence + crossover confirmation
* **Trend Confirmation:** Trade only with background color direction
### ⚙️ Recommended Settings
| Style | Long | Short | Signal | OB/OS |
| ------------- | ----- | ----- | ------ | ----- |
| Scalping (5m) | 15–20 | 8–10 | 8–10 | ±20 |
| Swing | 25 | 13 | 13 | ±25 |
| Day Trading | 20 | 10 | 10 | ±22 |
### 🔔 Alerts
* Crossover = Entry
* Zero Cross = Trend confirmation
* OB/OS = Exit or caution
### 💡 Pro Tip
For crypto scalping: bullish crossover in **oversold zone (-25 to -40)** near support + rising volume = high-probability long setup.
---
for more follow me
TG t.me
🦢 s.w.a.n — Supertrend With Anchored VWAP Navigator 🦢 s.w.a.n — Supertrend With Anchored VWAP Navigator
This bad boy fuses Supertrend flips with Rolling VWAP wizardry to create an *interdimensional stonks detector*. When the green triangles appear, you HODL. When the red ones show up, you cry, panic-sell, and blame market manipulation.
Optional candle coloring included — because if it’s not glowing, how else will you know it’s “to the moon”? 🌕
Features:
• Calculates vibes via math (trust the math)
• Turns random market noise into “signals” you’ll definitely overtrade
• Makes you feel like a quant, even if you just YOLO’d on a gut feeling
⚠️ Disclaimer: Indicator may not increase portfolio value, but it will 100% increase your sense of cosmic importance.
קריפטוניור - קווי שיאים/שפלים אוטומטיים//@version=5
indicator("קריפטוניור - קווי שיאים/שפלים אוטומטיים", overlay=true)
// הגדרת פרמטרים
pivotLen = input.int(5, title="אורך פיבוט (מס׳ נרות)")
lineLength = input.int(100, title="אורך קו (מס׳ נרות להארכה)")
// זיהוי שיאים ושפלים
pivotHigh = ta.pivothigh(high, pivotLen, pivotLen)
pivotLow = ta.pivotlow(low, pivotLen, pivotLen)
// ציור קווים אופקיים מהשיאים/שפלים
if not na(pivotHigh)
line.new(bar_index - pivotLen, pivotHigh, bar_index - pivotLen + lineLength, pivotHigh, color=color.red, width=1, extend=extend.none)
if not na(pivotLow)
line.new(bar_index - pivotLen, pivotLow, bar_index - pivotLen + lineLength, pivotLow, color=color.green, width=1, extend=extend.none)
// תווית לזיהוי אינדיקטור
plotshape(pivotHigh, location=location.abovebar, style=shape.triangledown, size=size.tiny, color=color.red)
plotshape(pivotLow, location=location.belowbar, style=shape.triangleup, size=size.tiny, color=color.green)
India VIX Based Nifty/BankNifty Range Calculator (Auto Fetch)VIX-Based Expected Daily Range (Auto Volatility Forecast)
Created by: Harshiv Symposium
📖 Purpose
This indicator automatically fetches the India VIX value and calculates the expected daily price range for major Indian indices such as Nifty and BankNifty.
It helps traders understand how much the market is likely to move today based on current volatility conditions.
Designed for educational and analytical awareness, not for signals or profit-making systems.
⚙️ Core Logic
Expected Daily Move (Range) = (India VIX × Current Index Price) ÷ Multiplier
- Multiplier for Nifty: 1000
- Multiplier for BankNifty: 700
This calculation projects the 1-standard-deviation (≈ 68% probability) and 2-standard-deviation (≈ 95% probability) movement zones for the day.
📊 Example
If India VIX = 15 and Nifty = 25,000:
Expected Move ≈ (15 × 25,000) ÷ 1000 = 375 points
Hence,
- 68% Range: 24,625 – 25,375
- 95% Range: 24,250 – 25,750
This gives traders a realistic idea of daily volatility boundaries.
🧭 Key Features
✅ Auto-Fetch India VIX
No need for manual input — automatically pulls live data from NSE:INDIAVIX.
✅ Dynamic Range Visualization
Plots upper/lower boundaries for 1σ and 2σ probability zones with shaded expected-move area.
✅ Dashboard Panel
Displays:
- Current VIX
- Expected Move (in points and %)
- Upper and Lower Ranges
✅ Smart Alerts
Alerts when price crosses upper or lower volatility range — potential breakout signal.
🎯 How It Helps
Intraday Traders:
Know the likely daily movement (e.g., ±220 pts on Nifty) and plan realistic targets or stops.
Options Traders:
Quickly assess whether it’s a seller-friendly (low VIX, small range) or buyer-friendly (high VIX, large range) session.
Risk Managers:
Use volatility context for stop-loss width and position sizing.
Breakout Traders:
If price breaks beyond the 2σ range → indicates potential volatility expansion.
💡 Interpretation Guide
Condition Market Behavior Strategy Insight
VIX ↓ ( < 14 ) Calm / Range-bound Option Selling Edge
VIX ↑ ( > 20 ) Volatile Sessions Option Buying Edge
Price within Range Stable Market Mean Reversion Setups
Price breaks Range Volatility Expansion Breakout Trades
⚠️ Disclaimer
This indicator is for educational and awareness purposes only.
It does not generate buy/sell signals or guarantee returns.
Always apply your own analysis and risk management.
내 스크립트//@version=5
indicator('RSI+BB+이격도', overlay=false)
// 매개변수 초기화
src = input(title='Source', defval=close) // 계산에 대한 가격 유형 설정
for_rsi = input(title='RSI_period', defval=14) // RSI 기간
for_ma = input(title='Basis_BB', defval=20) // BB 내 MA 기간
for_mult = input.float(title='Stdev', defval=2, minval=1, maxval=5) // BB의 표준 편차 수
for_sigma = input.float(title='Dispersion', defval=0.1, minval=0.01, maxval=1) // MA 주변 이격도
// 스크립트의 작업 조건
current_rsi = ta.rsi(src, for_rsi) // RSI 표시기의 현재 위치
basis = ta.ema(current_rsi, for_ma)
dev = for_mult * ta.stdev(current_rsi, for_ma)
upper = basis + dev
lower = basis - dev
disp_up = basis + (upper - lower) * for_sigma // RSI가 통과해야 하는 이동 영역의 최소 허용 임계값(상단)
disp_down = basis - (upper - lower) * for_sigma // RSI가 극복해야 하는 이동 영역의 최소 허용 임계값(하단)
color_rsi = current_rsi >= disp_up ? color.rgb(0, 255, 132) : current_rsi <= disp_down ? color.rgb(255, 0, 0) : #ffea00 // BB 내 위치에 따른 RSI의 현재 색상
short_l1 = input(5, title='Short - L1')
short_l2 = input(20, title='Short - L2')
short_l3 = input(15, title='Short - L3')
long_l1 = input(20, title='Long - L1')
long_l2 = input(15, title='Long - L2')
shortTermXtrender = ta.rsi(ta.ema(close, short_l1) - ta.ema(close, short_l2), short_l3) - 50
longTermXtrender = ta.rsi(ta.ema(close, long_l1), long_l2) - 50
shortXtrenderCol = shortTermXtrender > 0 ? shortTermXtrender > shortTermXtrender ? color.lime : #228B22 : shortTermXtrender > shortTermXtrender ? color.red : #8B0000
t3(src, len) =>
xe1_1 = ta.ema(src, len)
xe2_1 = ta.ema(xe1_1, len)
xe3_1 = ta.ema(xe2_1, len)
xe4_1 = ta.ema(xe3_1, len)
xe5_1 = ta.ema(xe4_1, len)
xe6_1 = ta.ema(xe5_1, len)
b_1 = 0.7
c1_1 = -b_1 * b_1 * b_1
c2_1 = 3 * b_1 * b_1 + 3 * b_1 * b_1 * b_1
c3_1 = -6 * b_1 * b_1 - 3 * b_1 - 3 * b_1 * b_1 * b_1
c4_1 = 1 + 3 * b_1 + b_1 * b_1 * b_1 + 3 * b_1 * b_1
nT3Average_1 = c1_1 * xe6_1 + c2_1 * xe5_1 + c3_1 * xe4_1 + c4_1 * xe3_1
nT3Average_1
maShortTermXtrender = t3(shortTermXtrender, 5)
colShortTermXtrender = maShortTermXtrender > maShortTermXtrender ? color.lime : color.red
plotshape(maShortTermXtrender > maShortTermXtrender and maShortTermXtrender < maShortTermXtrender ? maShortTermXtrender : na, location=location.bottom, style=shape.circle, color=color.new(color.lime, 10), size=size.tiny)
plotshape(maShortTermXtrender < maShortTermXtrender and maShortTermXtrender > maShortTermXtrender ? maShortTermXtrender : na, location=location.top, style=shape.circle, color=color.new(color.red, 10), size=size.tiny)
longXtrenderCol = longTermXtrender > 0 ? longTermXtrender > longTermXtrender ? color.lime : #228B22 : longTermXtrender > longTermXtrender ? color.red : #8B0000
macollongXtrenderCol = longTermXtrender > longTermXtrender ? color.lime : color.red
// 단기 추세 이동 평균을 기반으로 한 롱 및 숏 신호에 대한 경고 조건
alertcondition(maShortTermXtrender > maShortTermXtrender and maShortTermXtrender < maShortTermXtrender , title='매수추세감지', message='잠재적 매수 포지션 이격도 보고 진입.')
alertcondition(maShortTermXtrender < maShortTermXtrender and maShortTermXtrender > maShortTermXtrender , title='매도추세감지', message='잠재적 매도 포지션 이격도 보고 진입.')
left = input.int(5, "left")
right = input.int(5, "right")
// 1. 지표
osc = ta.rsi(close, 14)
plot(osc, linewidth = 2)
// 2. 피봇 찾기 (상승div-피봇로우, 하락div-피봇하이)
pivotlow = ta.pivotlow(osc, left, right)
pivothigh = ta.pivothigh(osc, left, right)
is_pivotlow = not na(pivotlow)
is_pivothigh = not na(pivothigh)
// 3. 다이버전스 찾기
// 상승 다이버전스
prev_pivotlow = ta.valuewhen(is_pivotlow, pivotlow, 1)
osc_higher_low = is_pivotlow ? pivotlow > prev_pivotlow : false
prev_low = ta.valuewhen(is_pivotlow, low , 1)
price_lower_low = is_pivotlow ? low < prev_low : false
is_regular_bullish_divergence = osc_higher_low and price_lower_low
plotshape(is_regular_bullish_divergence ? is_pivotlow : na, offset = -right, title="상승 다이버전스", text = "Bull", style = shape.labelup, color = color.green, textcolor = color.white, location = location.bottom)
plot(is_pivotlow ? pivotlow : na, color = is_regular_bullish_divergence ? color.green : na, offset = -right, linewidth = 2)
// 히든 상승다이버전스
osc_lower_low = is_pivotlow ? pivotlow < prev_pivotlow : false
price_higher_low = is_pivotlow ? low > prev_low : false
is_hidden_bullish_divergence = osc_lower_low and price_higher_low
plotshape(is_hidden_bullish_divergence ? is_pivotlow : na, offset = -right, title="히든 상승 다이버전스", text = "H Bull", style = shape.labelup, color = color.green, textcolor = color.white, location = location.bottom)
plot(is_pivotlow ? pivotlow : na, color = is_hidden_bullish_divergence ? color.green : na, offset = -right, linewidth = 2)
// 하락다이버전스
prev_pivothigh = ta.valuewhen(is_pivothigh, pivothigh, 1)
osc_lower_high = is_pivothigh ? pivothigh < prev_pivothigh : false
prev_high = ta.valuewhen(is_pivothigh, high , 1)
price_higher_high = is_pivothigh ? high > prev_high : false
is_regular_bearish_divergence = osc_lower_high and price_higher_high
plotshape(is_regular_bearish_divergence ? is_pivothigh : na, offset = -right, title="하락 다이버전스", text = "Bear", style = shape.labeldown, color = color.red, textcolor = color.white, location = location.top)
plot(is_pivothigh ? pivothigh : na, color = is_regular_bearish_divergence ? color.red : na, offset = -right, linewidth = 2)
// 히든 하락 다이버전스
osc_higher_high = is_pivothigh ? pivothigh > prev_pivothigh : false
price_lower_high = is_pivothigh ? high < prev_high : false
is_hidden_bearish_divergence = osc_higher_high and price_lower_high
plotshape(is_hidden_bearish_divergence ? is_pivothigh : na, offset = -right, title="히든 하락 다이버전스", text = "H Bear", style = shape.labeldown, color = color.red, textcolor = color.white, location = location.top)
plot(is_pivothigh ? pivothigh : na, color = is_hidden_bearish_divergence ? color.red : na, offset = -right, linewidth = 2)
// RSI 영역에 대한 추가 줄 및 채우기
h1 = hline(70, color=#d4d4d4, linestyle=hline.style_dotted, linewidth=1)
h2 = hline(50, color=#d4d4d4, linestyle=hline.style_dotted, linewidth=1)
h3 = hline(30, color=#d4d4d4, linestyle=hline.style_dotted, linewidth=1)
rsiPlot = plot(ta.rsi(close,14), "RSI", color=na, editable = false, display = display.none)
midLinePlot = plot(50, color = na, editable = false, display = display.none)
fill(rsiPlot, midLinePlot, 100, 70, top_color = color.new(#ff0000, 0), bottom_color = color.new(#ff0000, 100), title = "Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 30, 0, top_color = color.new(#48ff00, 100), bottom_color = color.new(#66ff00, 0), title = "Oversold Gradient Fill")
// 사용자 입력값
lengthBB1 = input.int(20, title='BB1', minval=1)
lengthBB2 = input.int(4, title='BB2', minval=1)
multBB1 = input.float(2, title='BB1', minval=0.1)
multBB2 = input.float(4, title='BB2', minval=0.1)
lengthMA = input.int(20, title='MA Length', minval=1)
// 볼린저 밴드 계산
basisBB1 = ta.sma(close, lengthBB1)
upperBB1 = basisBB1 + multBB1 * ta.stdev(close, lengthBB1)
lowerBB1 = basisBB1 - multBB1 * ta.stdev(close, lengthBB1)
basisBB2 = ta.sma(open, lengthBB2)
upperBB2 = basisBB2 + multBB2 * ta.stdev(open, lengthBB2)
lowerBB2 = basisBB2 - multBB2 * ta.stdev(open, lengthBB2)
// 이동평균선 추가
maClose = ta.sma(close, lengthMA)
// 표시할 조건 정의
showAboveTriangle = high >= upperBB1 and high >= upperBB2
showBelowTriangle = low <= lowerBB1 and low <= lowerBB2
showAboveTriangle1 = high >= upperBB2
showBelowTriangle1 = low <= lowerBB2
// 상단에 역삼각형 표시 (빨간색)
plotshape(series=showAboveTriangle, title='더블비 매도', color=color.rgb(255, 0, 0), style=shape.triangledown, text='DS', textcolor= color.white,size=size.small, location=location.top)
// 하단에 삼각형 표시 (초록색)
plotshape(series=showBelowTriangle, title='더블비 매수', color=color.rgb(4, 253, 12), style=shape.triangleup, text='DB', textcolor= color.white,size=size.small, location=location.bottom)
// 알림 및 트리거 조건
rsi_Green = ta.crossover(current_rsi, disp_up)
rsi_Red = ta.crossunder(current_rsi, disp_down)
alertcondition(condition=rsi_Green, title='이격도 밴드 매수', message='이격도 밴드 매수')
alertcondition(condition=rsi_Red, title='이격도 밴드 매도', message='이격도 밴드 매도')
rsi_Red1 = ta.crossover(current_rsi, lower)
rs9_Green1 = ta.crossunder(current_rsi, upper)
// 매수 매도 표시기
plotshape(rsi_Red1,color=color.green, style=shape.cross, location=location.bottom, size=size.small, title='(매수) signal')
plotshape(rs9_Green1,color= color.red, style=shape.cross, location=location.top, size=size.small, title='(매도) signal')
// 삼각형 표시된 위치에 알람 설정
alertcondition(showAboveTriangle, title='더블비 매도감지', message='더블비 매도감지')
alertcondition(showBelowTriangle, title='더블비 매수감지', message='더블비 매수감지')
// 결과 및 색상 지정
plot(basis, color=color.new(#080808, 0))
plot(upper, color=color.new(#00fff0, 0), linewidth=2)
plot(lower, color=color.new(#00fff0, 0), linewidth=2)
s1 = plot(disp_up, color=color.new(color.white, 0))
s2 = plot(disp_down, color=color.new(color.white, 0))
fill(s1, s2, color=color.new(color.white, 80))
plot(current_rsi, color=color_rsi, linewidth=2)
Zark CRT Line/Marker Color & Style Meaning
Previous Candle CRT Green (bullish) / Red (bearish) solid line Sweep confirmed on the previous candle
Current Candle CRT Green (bullish) / Red (bearish) dashed line Sweep currently happening on the current candle
Higher Timeframe CRT Orange dotted line Sweep from higher timeframe shown on lower timeframe chart
Target Line Blue dashed line Opposite side of liquidity for potential price target
Breaker Confirmed Aqua solid line (over previous/current CRT) Sweep confirmed with a break of a small swing
CRT Invalidated Gray line Sweep no longer valid (price closed beyond sweep level)
Full-Height HTF Divider Yellow vertical line Marks each higher timeframe bar for visual separation
Labels White text on colored background Shows type (Prev/Curr/HTF) and exact price