INVITE-ONLY SCRIPT

Sharingan Market Vision Pro [JOAT]

229
Sharingan Market Vision Pro [JOAT] is a Pine Script v6 overlay indicator that combines Smart Money Concepts (SMC), institutional volume analysis, and multi-timeframe confluence into a unified trading framework. It provides structure-based signals, whale detection, liquidity sweep identification, and a comprehensive dashboard for futures, crypto, forex, indices, and commodities trading.

Note: This script is published as an invite-only INDICATOR. It does not generate backtesting results or automated trade execution. All signals are generated on confirmed bars only to prevent repainting. Access requires authorization through the script's access control settings.

Snapshot


## Why This Script Merits Invite-Only Protection

This indicator integrates multiple analytical dimensions that traders typically access through separate tools or expensive platforms. The value proposition lies in the specific integration methodology and the proprietary calculations that synthesize:

  • Break of Structure (BOS) and Change of Character (CHOCH) detection with swing-based confirmation
  • Big Whale Finder (BWF) algorithm combining volume ratio, dollar volume, wick analysis, and price stagnation
  • Fair Value Gap (FVG) detection with ATR-based filtering and automatic mitigation tracking
  • Order Block identification tied to structure breaks with volume confirmation
  • Liquidity sweep detection for stop hunt identification
  • Triple Supertrend Matrix for trend confluence confirmation
  • Multi-timeframe bias analysis using non-repainting security calls
  • RSI divergence detection with structure alignment
  • Signal cooldown system preventing label overlap across all timeframes
  • Comprehensive dashboard consolidating 11 market metrics


The proprietary elements include index calculation methodology, the weighted bias scoring system that combines structure, volume, delta, supertrend, VWAP, HTF, whale pressure, and Bollinger Band positioning, and the signal confluence logic that requires multiple confirmations before generating signals. While individual concepts like BOS or FVG exist publicly, their specific integration with whale detection, cooldown management, and multi-factor bias scoring represents original development work that justifies source code protection.


## How Components Work Together

The indicator's value comes from how its modules interact, not from any single component:

Data Flow:
  • Structure engine detects swing highs/lows using configurable lookback (default 5 bars)
  • BOS/CHOCH detection triggers when price closes beyond previous swing levels
  • Order Blocks are identified by scanning backwards from BOS events for volume-confirmed candles
  • FVGs are detected when gaps form between candle 0 low and candle 2 high (or inverse)
  • Whale detection combines volume ratio, dollar volume ratio, wick ratio, and price stagnation into BWF index
  • Supertrend Matrix runs three supertrends with different factors (2.0, 3.0, 4.0) for confluence
  • Bias score aggregates 9 different factors into a single directional reading
  • All signals use barstate.isconfirmed to prevent repainting


Integration Logic:
Each module feeds into a unified signal and dashboard system:
  • BUY signals require: bullish candle + positive supertrend bias + price above VWAP + high volume + price above slow EMA
  • GENJUTSU signals require: whale accumulation (tier 2+) + bullish candle + positive supertrend
  • AMATERASU signals require: mega whale volume (4x+ average) + bullish candle + non-negative supertrend
  • All signals respect cooldown periods (default 10 bars) to prevent overlap
  • Dashboard updates bias score by weighting structure, ribbon, supertrend, VWAP position, delta flow, HTF, whale pressure, and premium/discount zones


Why This Integration Matters:
A standard SMC indicator shows structure. This indicator shows how structure interacts with institutional volume, where whales are positioning, and whether multiple timeframes agree. The multi-dimensional analysis separates this from simple structure tools that display data without synthesis.


## Core Functionality

This indicator addresses the challenge of combining Smart Money Concepts with volume analysis and multi-timeframe confluence. Most traders either use separate tools for each analysis type or ignore institutional flow entirely. This script brings everything together.

What This Script Does:

  • Detects Break of Structure (BOS) when price closes beyond previous swing highs/lows
  • Identifies Change of Character (CHOCH) when trend direction reverses
  • Draws Fair Value Gaps (FVG) with ATR-based minimum size filtering
  • Marks Order Blocks at volume-confirmed candles preceding structure breaks
  • Converts Order Blocks to Breaker Blocks when price invalidates them
  • Detects liquidity sweeps when price wicks beyond recent highs/lows then closes back inside
  • Calculates BWF (Big Whale Finder) index from multiple volume and candle metrics
  • Identifies whale accumulation (lower wick dominant + bullish close) and distribution (upper wick dominant + bearish close)
  • Runs triple Supertrend Matrix for trend confluence
  • Provides VWAP with optional deviation bands
  • Detects RSI divergences (bullish and bearish)
  • Shows Previous Day High/Low and Daily Open levels
  • Displays comprehensive dashboard with 11 market metrics
  • Generates Sharingan-themed signals: BUY/SELL, GENJUTSU, AMATERASU



Snapshot


## Technical Architecture

### Market Structure Engine

The indicator tracks swing highs and lows using pivot detection with configurable lookback:

  • Swing Detection - Uses ta.pivothigh and ta.pivotlow with lookback parameter (default 5 bars)
  • Structure Tracking - Stores last swing high/low prices and bar indices for BOS/CHOCH detection
  • BOS Detection - Triggers when close crosses beyond previous swing level (close > lastSwingHigh or close < lastSwingLow)
  • CHOCH Detection - Triggers when BOS occurs in opposite direction of previous trend
  • Structure Lines - Optional dashed lines drawn from swing point to current bar


The structure engine uses confirmed bars only (barstate.isconfirmed) to prevent repainting. Labels are placed with ATR-based offsets to avoid price overlap.


Snapshot


### Fair Value Gap Detection

FVGs are detected when price creates imbalance gaps between candles:

  • Bullish FVG - Forms when low of current candle > high of candle 2 bars ago
  • Bearish FVG - Forms when high of current candle < low of candle 2 bars ago
  • Size Filter - Gap must exceed minimum ATR percentage (default 0.3 x ATR)
  • Max Active - Limits displayed FVGs to prevent chart clutter (default 3)
  • Max Age - FVGs expire after configurable bars (default 50)
  • Mitigation Tracking - FVGs are removed when price fills the gap


FVG boxes display "FVG" label with color indicating direction (jade for bullish, crimson for bearish).

Snapshot

### Order Block Detection

Order Blocks are identified by scanning backwards from structure breaks:

  • Bullish OB - After BOS up, finds last bearish candle with volume > volMA x multiplier (default 1.3x)
  • Bearish OB - After BOS down, finds last bullish candle with volume > volMA x multiplier
  • Lookback - Scans up to configurable bars (default 50) to find qualifying candle
  • Max Active - Limits displayed OBs (default 3)
  • Breaker Conversion - When price closes beyond OB, it converts to Breaker Block (BRK) with amber color
  • Expiration - OBs expire after 100 bars, Breakers after 50 bars


Snapshot

### Whale Detection Engine (BWF)

The Big Whale Finder algorithm combines multiple metrics to identify institutional activity:

BWF Index Calculation:
  • Volume Factor (35% weight) - Current volume / (volMA x whale threshold)
  • Dollar Volume Factor (25% weight) - (Price x Volume) / Average Dollar Volume / whale threshold
  • Wick Factor (20% weight) - Wick ratio capped at 3.0, indicating absorption
  • Price Stagnation (20% weight) - 1 minus (body ratio x 1.6), indicating accumulation/distribution
  • Smoothing - EMA applied to raw BWF (default 8 periods)


Whale Tier Classification:
  • Tier 1 (Base) - Volume ratio >= 2.5x AND BWF index >= 5
  • Tier 2 (Major) - Dollar volume ratio >= 2.875x OR BWF >= 8, AND volume ratio >= 2.25x
  • Tier 3 (Mega) - Volume ratio >= 4x OR BWF index >= 12


Accumulation/Distribution Detection:
  • Accumulation - Whale tier > 0 AND lower wick > upper wick AND bullish close
  • Distribution - Whale tier > 0 AND upper wick >= lower wick AND bearish close


Whale pressure is calculated as EMA(21) of accumulation minus distribution signals, providing smoothed institutional bias.


### Liquidity Sweep Detection

Sweeps identify stop hunts where price wicks beyond key levels then reverses:

  • High Sweep - High exceeds recent highest high (lookback default 30) but close remains below
  • Low Sweep - Low exceeds recent lowest low but close remains above
  • Visual - Gold line drawn from previous level to sweep wick, "SWEEP" label placed
  • Cooldown - Respects signal cooldown to prevent label overlap


Snapshot

### Supertrend Matrix

Three supertrends with different factors provide trend confluence:

  • Supertrend 1 - Factor 2.0, ATR length 10 (fastest, most sensitive)
  • Supertrend 2 - Factor 3.0, ATR length 10 (medium)
  • Supertrend 3 - Factor 4.0, ATR length 10 (slowest, most stable)
  • Bias Calculation - Counts bullish (direction < 0) and bearish (direction > 0) supertrends
  • Confirmation - Requires configurable count (default 2 of 3) for bias signal


Dashboard displays "X/3 BULL" or "X/3 BEAR" with color coding.

### Signal Generation System

Signals are generated with multiple confluence requirements and cooldown management:

Standard BUY/SELL Signals:
  • Bullish/bearish candle confirmed
  • Supertrend bias aligned (positive for buy, negative for sell)
  • Price position relative to VWAP (above for buy, below for sell)
  • High volume (>= 1.5x average)
  • Price relative to slow EMA (above for buy, below for sell)
  • Not already showing GENJUTSU or AMATERASU signal


GENJUTSU Signals (Whale Accumulation/Distribution):
  • Whale tier >= 2 (Major or Mega)
  • Accumulation pattern (for buy) or Distribution pattern (for sell)
  • Bullish/bearish candle confirmed
  • Supertrend bias aligned


AMATERASU Signals (Mega Whale):
  • Mega whale volume detected (tier 3)
  • Bullish/bearish candle confirmed
  • Supertrend bias non-opposing (>= 0 for buy, <= 0 for sell)


Cooldown System:
All signals respect configurable cooldown (default 10 bars) to prevent label overlap. Separate cooldown trackers for bull signals, bear signals, BOS/CHOCH, divergences, and sweeps.

Snapshot

### Dashboard System

The dashboard consolidates 11 market metrics with color-coded values:

  • Header - "SHARINGAN | VISION PRO" with dark red theme
  • Bias - STRONG BULL / BULLISH / NEUTRAL / BEARISH / STRONG BEAR based on score
  • Phase - Trending Up / Trending Down / Ranging / Transitional
  • Supertrend - X/3 BULL or X/3 BEAR count
  • Delta - BUY FLOW or SELL FLOW based on smoothed delta
  • Volume - MEGA / INST / WHALE / HIGH / NORMAL classification
  • Pressure - ACCUM / DISTRIB / NEUTRAL based on whale pressure EMA
  • HTF Bias - BULLISH / BEARISH / NEUTRAL from higher timeframe
  • RSI - OVERBOUGHT (>70) / OVERSOLD (<30) / numeric value
  • Bollinger - SQUEEZE / OVERBOUGHT / OVERSOLD / MID BAND
  • BWF Index - Numeric whale finder index value


Bias Score Calculation:
The bias score combines 9 factors with different weights:
  • Structure trend (+2/-2)
  • Ribbon alignment (+2/-2)
  • Supertrend bias (+2/-2)
  • VWAP position (+1/-1)
  • Delta flow (+1/-1)
  • HTF bias (+1/-1)
  • Whale pressure (+1/-1)
  • Premium/Discount zone (+1/-1)
  • Bollinger Band position (+1/-1)


Score >= 7: STRONG BULL, >= 3: BULLISH, <= -7: STRONG BEAR, <= -3: BEARISH, else: NEUTRAL


### Multi-Timeframe Analysis

HTF bias uses non-repainting security calls:

  • HTF Close - request.security with close[1] and lookahead_on
  • HTF MA - 20-period SMA on higher timeframe
  • Bias - Bullish when HTF close > HTF MA, bearish when below
  • Background - Subtle green/red tint based on HTF bias


### Divergence Detection

RSI divergences are detected with structure alignment:

  • Bearish Divergence - Price makes higher high but RSI makes lower high (RSI > 65)
  • Bullish Divergence - Price makes lower low but RSI makes higher low (RSI < 35)
  • Lookback - Configurable period (default 14 bars)
  • Visual - Dashed line drawn between divergence points, label with RSI value



### Key Levels

Previous day and daily open levels for intraday context:

  • PDH - Previous Day High (crimson line)
  • PDL - Previous Day Low (jade line)
  • DO - Daily Open (silver line)
  • Non-Repainting - Uses [1] offset with lookahead_on



## Visual Design

Sharingan Theme:
  • Background - Dark red-black (#590000) with configurable transparency
  • Bullish Elements - Jade (#00FF88) and Emerald (#00CC66)
  • Bearish Elements - Crimson (#DC143C) and Ember (#FF4444)
  • Neutral/Special - Gold (#FFD700), Purple (#9B30FF), Cyan (#00CED1)
  • Dashboard - Blood red header (#8B0000) with dark background


Signal Labels:
  • Eye symbol (◉) prefix for BUY/SELL signals
  • Size hierarchy: AMATERASU (small), GENJUTSU (small), BUY/SELL (tiny)
  • ATR-based positioning to avoid price overlap



## Complete Configuration Reference

### Display Settings
  • Show Dashboard (default: true) - Toggle dashboard display
  • Dashboard Position (default: Top Right) - Corner placement
  • Show Signal Labels (default: true) - Toggle all signal labels
  • Dark Red Background (default: true) - Sharingan theme background
  • Background Transparency (default: 92, range: 80-98) - Background opacity
  • Signal Cooldown (default: 10, range: 1-30) - Minimum bars between signals


### Market Structure
  • Enable Structure Analysis (default: true) - Toggle structure detection
  • Swing Lookback (default: 5, range: 2-20) - Pivot detection period
  • Show BOS/CHOCH (default: true) - Toggle structure break labels
  • Draw Structure Lines (default: true) - Toggle dashed structure lines


### Sharingan Boxes (FVG)
  • Enable Sharingan Boxes (default: true) - Toggle FVG detection
  • Min Size (ATR %) (default: 0.3, range: 0.1-2.0) - Minimum gap size
  • Max Age (bars) (default: 50, range: 20-500) - FVG expiration
  • Box Opacity (default: 94, range: 70-98) - FVG transparency
  • Max Active FVGs (default: 3, range: 1-10) - Maximum displayed


### Order Blocks
  • Enable Order Blocks (default: true) - Toggle OB detection
  • Lookback Period (default: 50, range: 20-200) - Candle search range
  • Volume Multiplier (default: 1.3, range: 1.0-3.0) - Volume confirmation threshold
  • Max Active OBs (default: 3, range: 1-10) - Maximum displayed


### Liquidity Analysis
  • Enable Liquidity Zones (default: true) - Toggle liquidity detection
  • Lookback Period (default: 30, range: 10-100) - Recent high/low range
  • Show Sweep Signals (default: true) - Toggle sweep labels


### Volume Intelligence
  • Enable Volume Analysis (default: true) - Toggle volume classification
  • Volume MA Length (default: 20, range: 5-50) - Average volume period
  • Whale Threshold (default: 2.5, range: 1.5-5.0) - Whale volume multiplier
  • Institutional Threshold (default: 4.0, range: 2.5-8.0) - Mega whale multiplier


### Whale Detection
  • Enable Whale Detection (default: true) - Toggle BWF algorithm
  • BWF Sensitivity (default: 1.0, range: 0.5-2.0) - Index sensitivity
  • BWF Smoothing (default: 8, range: 3-20) - EMA smoothing period


### Supertrend Matrix
  • Enable Supertrend Matrix (default: true) - Toggle triple supertrend
  • ATR Length (default: 10, range: 5-50) - ATR calculation period
  • Factor 1/2/3 (defaults: 2.0, 3.0, 4.0) - Supertrend multipliers
  • Confirmation Count (default: 2, range: 1-3) - Required agreement


### Additional Modules
  • Trend Ribbon - EMA lines (8/21/50), disabled by default
  • VWAP - Main line enabled, deviation bands disabled by default
  • Premium/Discount Zones - Disabled by default, includes OTE zone
  • Bollinger Bands - Disabled by default, includes pinch detection
  • Multi-Timeframe - HTF bias analysis (default: 60 minute)
  • Divergence - RSI divergence detection (default: 14 bar lookback)
  • Key Levels - Previous Day H/L and Daily Open



## Alert System

The script includes 15 alert conditions:

  • BOS Bullish/Bearish - Break of Structure signals
  • CHOCH Bullish/Bearish - Change of Character reversals
  • Mega Whale - Mega whale activity detected
  • Genjutsu Buy/Sell - Whale accumulation/distribution signals
  • Amaterasu Buy/Sell - Mega whale directional signals
  • Sharingan Buy/Sell - Standard confluence signals
  • Strong Bull/Bear Bias - Bias score >= 6 or <= -6
  • BB Pinch - Bollinger Band squeeze detected
  • Supertrend Bull/Bear Flip - Matrix direction change



## Technical Implementation Notes

  • Pine Script v6 compliant with all latest syntax features
  • All signals use barstate.isconfirmed to prevent repainting
  • MTF requests use close[1] with lookahead_on for non-repainting data
  • User-defined types (UDT) for FVG and Order Block management
  • Arrays manage active zones with automatic cleanup
  • Resource limits respected: max_lines_count=500, max_labels_count=500, max_boxes_count=500
  • Safe division functions prevent divide-by-zero errors
  • Cooldown system prevents signal overlap across all timeframes



## Usage Considerations

Asset Class Compatibility: Works with any TradingView symbol including futures, crypto, forex, indices, commodities, and stocks. Volume-based features require assets with reliable volume data.

Timeframe Selection: Structure and SMC features work on any timeframe. Lower timeframes (1m-15m) may generate more signals. Higher timeframes (1H+) provide cleaner structure. Adjust cooldown accordingly.

Data Requirements: Whale detection requires sufficient volume history. BWF index stabilizes after approximately 20 bars. Structure detection requires lookback period x 2 bars minimum.


## Limitations and Considerations

  • Volume analysis accuracy depends on exchange-reported volume quality
  • Delta calculation is an estimate based on candle structure, not actual order flow
  • Structure detection has inherent lag equal to swing lookback period
  • FVG and OB zones are probabilistic, not guaranteed support/resistance
  • Multi-timeframe features depend on TradingView's security() function limitations
  • Signals are confluence-based tools, not standalone entry triggers
  • Past performance of signals does not guarantee future results


This indicator is designed as a decision support framework. It does not guarantee profitable trades, remove risk, or replace your own analysis and risk management process. All trading involves substantial risk of loss.


## Disclaimer

This script is provided for informational and educational purposes only and does not constitute financial advice. Trading involves substantial risk of loss. You are solely responsible for your own trading decisions. Past results shown on any chart do not guarantee future performance. Always conduct your own analysis and use appropriate risk management.


Made with passion by officialjackofalltrades

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.