OPEN-SOURCE SCRIPT
Velocity Divergence Radar [JOAT]

Velocity Divergence Radar - Momentum Physics Edition
Overview
Velocity Divergence Radar is an open-source oscillator indicator that applies physics concepts to market analysis. It calculates price velocity (rate of change), acceleration (rate of velocity change), and jerk (rate of acceleration change) to provide a multi-dimensional view of momentum. The indicator also includes divergence detection and force vector analysis.
What This Indicator Does
The indicator calculates and displays:
- Velocity - Rate of price change over a configurable period, smoothed with EMA
- Acceleration - Rate of velocity change, showing momentum shifts
- Jerk (3rd Derivative) - Rate of acceleration change, indicating momentum stability
- Force Vectors - Volume-weighted acceleration representing market force
- Kinetic Energy - Calculated as 0.5 * mass (volume ratio) * velocity squared
- Momentum Conservation - Tracks momentum relative to historical average
- Divergence Detection - Identifies when price and velocity diverge at pivots
How It Works
Velocity is calculated as smoothed rate of change:
Acceleration is the change in velocity:
Jerk is the change in acceleration:
Force is calculated using F = m * a (mass approximated by volume ratio):
Signal Generation
Signals are generated based on velocity behavior:
- Bullish Divergence: Price makes lower low while velocity makes higher low
- Bearish Divergence: Price makes higher high while velocity makes lower high
- Velocity Cross: Velocity crosses above/below zero line
- Extreme Velocity: Velocity exceeds 1.5x the upper/lower zone threshold
- Jerk Extreme: Jerk exceeds 2x standard deviation
- Force Extreme: Force magnitude exceeds 2x average
Dashboard Panel (Top-Right)
- Velocity - Current velocity value
- Acceleration - Current acceleration value
- Momentum Strength - Combined velocity and acceleration strength
- Radar Score - Composite score based on velocity and acceleration
- Direction - STRONG UP/SLOWING UP/STRONG DOWN/SLOWING DOWN/FLAT
- Jerk - Current jerk value
- Force Vector - Current force magnitude
- Kinetic Energy - Current kinetic energy value
- Physics Score - Overall physics-based momentum score
- Signal - Current actionable status
Visual Elements
- Velocity Line - Main oscillator line with color based on direction
- Velocity EMA - Smoothed velocity for trend reference
- Acceleration Histogram - Bar chart showing acceleration direction
- Jerk Area - Filled area showing jerk magnitude
- Vector Magnitude - Line showing combined vector strength
- Radar Scan - Oscillating pattern for visual effect
- Zone Lines - Upper and lower threshold lines
- Divergence Labels - BULL DIV / BEAR DIV markers
- Extreme Markers - Triangles at velocity extremes
Input Parameters
- Velocity Period (default: 14) - Period for velocity calculation
- Acceleration Period (default: 7) - Period for acceleration calculation
- Divergence Lookback (default: 10) - Bars to scan for divergence
- Radar Sensitivity (default: 1.0) - Zone threshold multiplier
- Jerk Analysis (default: true) - Enable 3rd derivative calculation
- Force Vectors (default: true) - Enable force analysis
- Kinetic Energy (default: true) - Enable energy calculation
- Momentum Conservation (default: true) - Enable momentum tracking
Suggested Use Cases
- Identify momentum direction using velocity sign and magnitude
- Watch for divergences as potential reversal warnings
- Use acceleration to detect momentum shifts before price confirms
- Monitor jerk for momentum stability assessment
- Combine force and kinetic energy for conviction analysis
Timeframe Recommendations
Works on all timeframes. Higher timeframes provide smoother readings; lower timeframes show more granular momentum changes.
Limitations
- Physics analogies are conceptual and not literal market physics
- Divergence detection uses pivot-based lookback and may lag
- Force calculation uses volume ratio as mass proxy
- Kinetic energy is a derived metric, not actual energy
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 Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.