OPEN-SOURCE SCRIPT
Cosmic Volume Analyzer [JOAT]

Cosmic Volume Analyzer - Astrophysics Edition
Overview
Cosmic Volume Analyzer is an open-source oscillator indicator that applies astrophysics-inspired concepts to volume analysis. It classifies volume into buy/sell categories, calculates volume flow, detects accumulation/distribution phases, identifies climax volume events, and uses gravitational and stellar mass analogies to visualize volume dynamics.
What This Indicator Does
The indicator calculates and displays:
- Volume Classification - Categorizes each bar as CLIMAX_BUY, CLIMAX_SELL, HIGH_BUY, HIGH_SELL, NORMAL_BUY, or NORMAL_SELL
- Volume Flow - Percentage showing buy vs sell pressure over a lookback period
- Buy/Sell Volume - Separated volume based on candle direction
- Accumulation/Distribution - Phase detection using Money Flow Multiplier
- Volume Oscillator - Fast vs slow volume EMA comparison
- Gravitational Pull - Volume-weighted price attraction metric
- Stellar Mass Index - Volume ratio combined with price momentum
- Black Hole Detection - Identifies extremely low volume periods (liquidity voids)
- Supernova Events - Detects extreme volume with extreme price movement
- Orbital Cycles - Sine-wave based cyclical visualization
How It Works
Volume classification uses volume ratio and candle direction:
Volume flow separates buy and sell volume over a period:
Accumulation/Distribution uses the Money Flow Multiplier:
Gravitational pull uses volume-weighted price distance:
Signal Generation
Signals are generated based on volume conditions:
- Buy Climax: Volume exceeds 2 standard deviations above average on bullish candle
- Sell Climax: Volume exceeds 2 standard deviations above average on bearish candle
- Strong Buy Flow: Volume flow exceeds positive threshold (default 45%)
- Strong Sell Flow: Volume flow exceeds negative threshold (default -45%)
- Supernova: Volume 3x average AND price change 3x average
- Black Hole: Volume 2 standard deviations below average
Dashboard Panel (Top-Right)
- Volume Class - Current volume classification
- Volume Flow - Buy/sell flow percentage
- Buy Volume - Accumulated buy volume
- Sell Volume - Accumulated sell volume
- A/D Phase - ACCUMULATION/DISTRIBUTION/NEUTRAL
- Volume Strength - Normalized volume strength
- Gravity Pull - Current gravitational metric
- Stellar Mass - Current stellar mass index
- Cosmic Field - Combined cosmic field strength
- Black Hole - Detection status and void strength
- Signal - Current actionable status
Visual Elements
- Volume Ratio Columns - Colored bars showing normalized volume
- Volume Flow Line - Main oscillator showing flow direction
- Flow EMA - Smoothed flow for trend reference
- Volume Oscillator - Area plot showing fast/slow comparison
- Gravity Field - Area plot showing gravitational pull
- Orbital Cycle - Circle plots showing cyclical pattern
- Stellar Mass Line - Line showing mass index
- Climax Markers - Fire emoji for buy climax, snowflake for sell climax
- Supernova Markers - Diamond shapes for extreme events
- Black Hole Markers - X-cross for liquidity voids
- A/D Phase Background - Subtle background color based on phase
Input Parameters
- Volume Period (default: 20) - Period for volume calculations
- Distribution Levels (default: 5) - Granularity of distribution analysis
- Flow Threshold (default: 1.5) - Multiplier for flow significance
- Accumulation Period (default: 14) - Period for A/D calculation
- Gravitational Analysis (default: true) - Enable gravity metrics
- Black Hole Detection (default: true) - Enable void detection
- Stellar Mass Calculation (default: true) - Enable mass index
- Orbital Cycles (default: true) - Enable cyclical visualization
- Supernova Detection (default: true) - Enable extreme event detection
Suggested Use Cases
- Identify accumulation phases for potential long entries
- Watch for distribution phases as potential exit signals
- Use climax volume as potential exhaustion indicators
- Monitor volume flow for directional bias
- Avoid trading during black hole (low liquidity) periods
- Watch for supernova events as potential trend acceleration
Timeframe Recommendations
Best on 15m to Daily charts. Volume analysis requires sufficient trading activity for meaningful readings.
Limitations
- Volume data quality varies by exchange and instrument
- Buy/sell separation is based on candle direction, not actual order flow
- Astrophysics concepts are analogies, not literal physics
- A/D phase detection may lag during rapid transitions
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。