PROTECTED SOURCE SCRIPT
Updated

CAM| Bar volatility and stats

46
CAPRICORN ASSETS MANAGEMENT



CAM | Bar Volatility and Stats Indicator

The CAM | Bar Volatility and Stats indicator is designed to track historical price movements, analyzing bar volatility and key statistical trends in financial instruments. By evaluating past bars, it provides insights into market dynamics, helping traders assess volatility, trend strength, and momentum patterns.

Key Features & Functionality:

✅ Volatility Analysis – Measures historical volatility by calculating the average price range per bar and displaying it in pips.
✅ Bull & Bear Bar Statistics – Tracks the number of bullish and bearish bars within a given lookback period, including their respective percentages.
✅ Consecutive Bar Sequences – Identifies and records the longest streaks of consecutive bullish or bearish bars, providing insights into market trends.
✅ Average Volatility by Trend – Computes separate volatility values for bullish and bearish bars, helping traders understand trend-based price behavior.
✅ Real-Time Labeling – Displays a live statistics summary directly on the chart, updating dynamically with each new bar.

Benefits for Traders:

📊 Enhanced Market Insight – Quickly assess market conditions, determining whether volatility is increasing or decreasing.
📈 Trend Strength Identification – Identify strong bullish or bearish sequences to improve trade timing and strategy development.
⏳ Better Risk Management – Use historical volatility metrics to fine-tune stop-loss and take-profit levels.
🛠 Customizable Analysis – Adjustable lookback period and display options allow traders to focus on the data that matters most.

This indicator is an essential tool for traders looking to refine their decision-making process by leveraging volatility-based statistics. Whether trading Forex, stocks, or commodities, it provides valuable insights into price action trends and market conditions.

Release Notes
*Added Feature
Shift Label bubble forward/backward
Release Notes
Description of the New Dynamic Volatility Lines Feature

The "CAM| Bar Volatility and Stats" indicator now includes an advanced dynamic feature that visually represents key volatility levels based on the current bar's direction (bullish or bearish). This feature draws three horizontal dashed lines, each extending 8 bars forward from the current bar, providing real-time insights into potential support and resistance zones.

"Lower" Line:
For a bullish bar (close > open), this line is drawn at the low of the current bar, indicating a potential support level.
For a bearish bar (close < open), it is drawn at the high of the current bar, suggesting a potential resistance level.
A small label "Lower" is placed at the end of the line (8 bars forward) in gray.
"Maximum" Line:
For a bullish bar, this line is positioned at the low plus the maximum bullish bar volatility (in pips) recorded over the lookback period, highlighting the highest volatility range observed for bullish bars.
For a bearish bar, it is positioned at the high minus the maximum bearish bar volatility, indicating the deepest bearish volatility range.
A small label "Maximum" is placed at the end of the line in red.
"Average" Line:
For a bullish bar, this line is set at the low plus the average bullish bar volatility, representing the typical volatility range for bullish bars.
For a bearish bar, it is set at the high minus the average bearish bar volatility, reflecting the average bearish volatility range.
A small label "Average" is placed at the end of the line in green.
These lines are dynamically updated with each new bar, ensuring they reflect the latest bar direction and volatility metrics calculated over the specified lookback period. Old lines and labels are automatically removed to avoid clutter, making this feature a powerful tool for identifying volatility-based trading opportunities in real-time. The lines are only drawn for bullish or bearish bars, with no lines appearing for doji bars (close = open), maintaining clarity in the chart analysis.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.