ZVOL — Z-Score Volume Heatmapⓩ ZVOL transforms raw volume into a statistically calibrated heatmap using Z-score thresholds. Unlike classic volume indicators that rely on fixed MA comparisons, ZVOL calculates how many standard deviations each volume bar deviates from its mean. This makes the reading adaptive across timeframes and assets, in order to distinguish meaningful crowd behavior from random volatility.
📊 The core display is a five-zone histogram, each encoded by color and statistical depth. Optional background shading mirrors these zones across the entire pane, revealing subtle compression or structural rhythm shifts across time. By grounding the volume reading in volatility-adjusted context, ZVOL inhibits impulsive trading tactics by compelling the structure, not the sentiment, to dictate the signal.
🥵 Heatmap Coloration:
🌚 Suppressed volume — congestion, coiling phases
🩱 Stable flow — early trend or resting volume
🏀 High activity — emerging pressure
💔 Extreme — possible climax or institutional print
🎗️ A dynamic Fibonacci-based 21:34-period EMA ribbon overlays the histogram. The fill area inverts color on crossover, providing a real-time read on tempo, expansion, or divergence between price structure and crowd effort.
💡 LTF Usage Suggestions:
• Confirm breakout legs when orange or red zones align with range exits
• Fade overextended moves when red bars appear into resistance
• Watch for rising EMAs and orange volume to front-run impulsive moves
• Combine with volatility suppression (e.g. ATR) to catch compression → expansion transitions
🥂 Ideal Pairings:
• OBVX Conviction Bias — to confirm directional intent behind volume shifts
• SUPeR TReND 2.718 — for directional filters
• ATR Turbulence Ribbon — to detect compression phases
👥 The OBVX Conviction Bias adds a second dimension to ZVOL by revealing whether crowd effort is aligning with price direction or diverging beneath the surface. While ZVOL identifies statistical anomalies in raw volume, OBVX tracks directional commitment using cumulative volume and moving average cross logic. Use them together to spot fake-outs, anticipate structure-confirmed breakouts, or time pullbacks with volume-based conviction.
🔬 ZVOL isn’t just a volume filter — it’s a structural lens. It reveals when crowd effort is meaningful, when it's fading, and when something is about to shift. Designed for structure-aware traders who care about context, not noise.
Penunjuk dan strategi
NR_VersatilitiesLibrary "NR_Versatilities"
Versatilities (aka, Versatile Utilities) includes:
- Seventeen Price Variants returned as a tuple,
- Eight Smoothing functions rolled into one,
- Pick any Past Value from any series with offset,
- Or just the previous value from any series.
pastVal(src, len)
Fetches past value from src that came len distance ago
Parameters:
src (float) : source series
len (int) : lookback distance - (optional) default is 1
Returns: latest src if len <= 0, else src
previous(src)
Fetches past value from src that came len distance ago
Parameters:
src (float) : source series
Returns: previous value in the series if found, else current value
price_variants()
Computes Several different averages using current and previous OHLC values
Returns: Seventeen Uncommon Average Price Combinations
dynamic_MA(matyp, masrc, malen, lsmaoff, almasgm, almaoff, almaflr)
Dynamically computes Eight different MAs on-demand individually, or an average of all taken together
Parameters:
matyp (string) : pick one of these MAs - ALMA, EMA, HMA, LSMA, RMA, SMA, SWMA, WMA, ALL
masrc (float) : source series to compute MA
malen (simple int) : lookback distance for MA
lsmaoff (simple int) : optional LSMA offset - default is 0
almasgm (simple float) : optional ALMA sigma - default is 5
almaoff (simple float) : optional ALMA offset - default is 0.5
almaflr (simple bool) : optional ALMA floor flag - default is false
Returns: MA series for chosen type or, an average of all of them, if chosen so
OneTrend EMAThis strategy uses exponential moving averages (EMA) to define market trend direction and employs a dynamic ATR-based threshold adjusted by a custom ADX calculation to generate bullish (blue) and bearish (pink) zones. It enters long positions when the fast EMA exceeds the threshold (blue zone) and exits when it falls below the threshold (pink zone), providing clear, rule-based signals for trend-following trades. Pros include adaptive thresholding that reflects market volatility and trend strength, while cons are potential lag in sideways or choppy markets and susceptibility to whipsaws in volatile conditions.
SIP on top stocks in each sector - BibiluIdentify the signs of upcoming bullish trend from oversold region
sRSI + MACD + VOLAbout sRSI + MACD + VOL
The "sRSI + MACD + VOL" is a powerful 3-in-1 indicator that combines Stochastic RSI, MACD, and Volume into a single, comprehensive tool, perfect for traders looking to maximize their analysis within one chart panel. This indicator is ideal for users with Free or Essential TradingView accounts who have limited allowance for indicators, providing a space-efficient way to monitor momentum, trend, and volume dynamics simultaneously.
Features:
Stochastic RSI: Scaled to range, showing overbought/oversold conditions with K (blue) and D (orange) lines for clear momentum signals.
MACD: Includes MACD line (blue), Signal line (orange), and a color-coded histogram. The histogram displays momentum strength with:
Dark Green (#26A69A) for increasing positive momentum
Light Green (#B2DFDB) for fading positive momentum
Light Red (#FFCDD2) for increasing negative momentum (toward zero)
Dark Red (#FF5252) for fading negative momentum
Volume: Normalized bars scaled to , colored green for increasing volume and red for decreasing volume, highlighting market participation trends.
Combined Indicator: A white line averaging the scaled values of MACD histogram, Stochastic RSI K, and Volume, offering a unified trend overview.
Why Use This Indicator?
Saves chart space by integrating three essential indicators
Provides a multi-faceted view of price action, momentum, and volume
Customizable inputs for fine-tuning to your trading style
Perfect for confirming entries, exits, and trend strength in one glance
Designed for simplicity and efficiency, "sRSI + MACD + VOL" is your all-in-one solution for technical analysis, especially when indicator slots are limited. Add it to your chart and streamline your trading strategy today!
Azii TrendAzii Trend is a precision-built indicator designed to give traders a clear, real-time snapshot of market bias using multi-timeframe moving averages.
It reads the 30-minute and 1-hour chart to determine trend direction based on:
📘 SMA (Simple Moving Average)
⚡️ EMA (Exponential Moving Average)
Each timeframe outputs a BULL or BEAR signal, and a confluence check below summarizes the overall market condition as:
✅ STRONG BULL
❌ STRONG BEAR
🔶 MIXED TREND
Everything is neatly displayed in a fixed, non-movable box at the top-right of your chart for quick, clutter-free decision-making.
✅ Best for:
Intraday and swing traders
Trend confirmation
Confluence tracking between timeframes
Dhaval's art candles - 5minbest time frame 5M,
Find the liquidity zone and then show my iconic candle, then buy and sell side
SMC Volumetric Blocks + ATR Bands [SDTrades]SMC Volumetric Blocks + ATR Bands Indicator
Overview
This advanced trading system combines Smart Money Concepts (SMC) with quantitative trend analysis, featuring:
Volumetric Order Blocks - Identifies institutional-level supply/demand zones
ATR Trend Bands - Dynamic support/resistance levels with trend-color coding
Break/Retest Signals - Clear "BUY"/"SELL" labels at key levels
Key Features
1. Volumetric Order Blocks
Detects swing highs/lows using configurable swing length (default: 8)
Plots two types of order blocks:
Breaker Blocks (Teal/Red): Recent significant rejection zones
Order Blocks (Semi-transparent): Historical high-volume areas
Volume-weighted strength calculation for block validity
Auto-removal of violated blocks (Wick/Close basis)
2. Smart ATR Bands
Adaptive bands using 3-layer trend confirmation:
RSI momentum (15-85 normalized)
SuperTrend trend direction
EMA crossover strength
Golden Ratio multiplier (1.618) for band spacing
Auto-coloring: Bearish (Red) > Neutral (Gray) > Bullish (Green)
3. Trading Signals
BUY: Retest of lower ATR band + Bullish block confirmation
SELL: Retest of upper ATR band + Bearish block violation
BE (Break Even): Price closes beyond bands
Minimum 2-bar spacing between signals
Input Settings
Category Parameters
Core Swing Length (8)
Blocks Show Last X Blocks (4), Violation Check (Wick/Close), Hide Overlap
ATR Length (10), Multiplier (1.618), Trend Smoothing (10)
Visual 8 Color Options, Label Sizes, Transparency Levels
Usage Notes
Bullish Scenario
Look for "BUY" labels near bullish order blocks
Confirm with ATR band turning green
Bearish Scenario
Watch for "SELL" labels near bearish blocks
Verify with ATR band turning red
Risk Management
Use block boundaries as natural stop levels
BE signals indicate potential trend exhaustion
Style Customization
Blocks: Adjust teal/red colors and opacity
Bands: Modify gradient colors and fill transparency
Labels: Customize text colors/sizes for BUY/SELL/BE
Trading Philosophy
This indicator combines:
Order Flow Analysis (Block zones)
Volatility-adjusted Levels (ATR bands)
Algorithmic Trend Scoring (RSI+EMA+SuperTrend fusion)
Ideal for swing trading and institutional-level price analysis.
17 hours ago
Release Notes
SMC Volumetric Blocks + ATR Bands Indicator
Overview
This advanced trading system combines Smart Money Concepts (SMC) with quantitative trend analysis, featuring:
Volumetric Order Blocks - Identifies institutional-level supply/demand zones
ATR Trend Bands - Dynamic support/resistance levels with trend-color coding
Break/Retest Signals - Clear "BUY"/"SELL" labels at key levels
Key Features
1. Volumetric Order Blocks
Detects swing highs/lows using configurable swing length (default: 8)
Plots two types of order blocks:
Breaker Blocks (Teal/Red): Recent significant rejection zones
Order Blocks (Semi-transparent): Historical high-volume areas
Volume-weighted strength calculation for block validity
Auto-removal of violated blocks (Wick/Close basis)
2. Smart ATR Bands
Adaptive bands using 3-layer trend confirmation:
RSI momentum (15-85 normalized)
SuperTrend trend direction
EMA crossover strength
Golden Ratio multiplier (1.618) for band spacing
Auto-coloring: Bearish (Red) > Neutral (Gray) > Bullish (Green)
3. Trading Signals
BUY: Retest of lower ATR band + Bullish block confirmation
SELL: Retest of upper ATR band + Bearish block violation
BE (Break Even): Price closes beyond bands
Minimum 2-bar spacing between signals
Input Settings
Category Parameters
Core Swing Length (8)
Blocks Show Last X Blocks (4), Violation Check (Wick/Close), Hide Overlap
ATR Length (10), Multiplier (1.618), Trend Smoothing (10)
Visual 8 Color Options, Label Sizes, Transparency Levels
Usage Notes
Bullish Scenario
Look for "BUY" labels near bullish order blocks
Confirm with ATR band turning green
Bearish Scenario
Watch for "SELL" labels near bearish blocks
Verify with ATR band turning red
Risk Management
Use block boundaries as natural stop levels
BE signals indicate potential trend exhaustion
Style Customization
Blocks: Adjust teal/red colors and opacity
Bands: Modify gradient colors and fill transparency
Labels: Customize text colors/sizes for BUY/SELL/BE
Trading Philosophy
This indicator combines:
Order Flow Analysis (Block zones)
Volatility-adjusted Levels (ATR bands)
Algorithmic Trend Scoring (RSI+EMA+SuperTrend fusion)
Multi TF Indicators [KS modded LazBear]Multi TF Indicators
all indicators are showed on table with hi-lighted bull-bear colors
RSI and CCICombined RSI and CCI Indicator for MetaTrader
The Combined RSI and CCI Indicator is a powerful hybrid momentum oscillator designed to merge the strengths of two popular indicators—the Relative Strength Index (RSI) and the Commodity Channel Index (CCI)—into a single, visually intuitive chart window. This tool enhances traders’ ability to identify overbought and oversold conditions, divergences, trend strength, and potential reversal zones with improved precision.
Purpose
By integrating RSI and CCI, this indicator helps filter out false signals that often occur when using each tool independently. It is especially useful for swing trading, trend confirmation, and spotting high-probability entry/exit zones. This dual-oscillator approach combines RSI’s relative momentum insights with CCI’s deviation-based analysis to produce a more reliable signal structure.
Key Features
Dual Oscillator Display: Plots both RSI and CCI on the same subwindow for easy comparison and correlation analysis.
Customizable Parameters:
RSI Period and Level (default: 14)
CCI Period and Typical Price Type (default: 20, TP)
Overbought/Oversold Levels for both indicators
Color-Coded Zones:
Background highlights when both RSI and CCI enter overbought/oversold territory, signaling high potential reversal zones.
Combined Signal Logic (Optional Feature):
Buy Signal: RSI < 30 and CCI < -100
Sell Signal: RSI > 70 and CCI > 100
These can be visualized as arrows or plotted as signal markers.
Trend Filter Overlay (Optional):
Can be combined with a moving average or price action filter to confirm trend direction before accepting signals.
Divergence Detection (Advanced Option):
Optional plotting of bullish or bearish divergence where both indicators diverge from price action.
Multi-Timeframe Compatibility:
Allows the use of higher timeframe RSI/CCI values to confirm signals on lower timeframes.
Benefits
Improved Signal Accuracy: Using both RSI and CCI together helps avoid false breakouts and whipsaws.
More Informed Decision-Making: Correlating momentum (RSI) with deviation (CCI) provides a well-rounded picture of market behavior.
Efficient Charting: Saves screen space and cognitive load by combining two indicators into one clean panel.
Scalable Strategy Integration: Can be used in discretionary trading or coded into automated strategies/alerts.
Use Case Example
In a ranging market, the indicator highlights zones where both RSI and CCI are oversold, alerting traders to potential bounce opportunities.
In trending markets, it confirms trend strength when RSI and CCI are both aligned with trend direction.
When RSI is diverging from price but CCI isn’t, it can be a clue of weakening momentum, helping traders scale out or avoid traps.
This combined indicator offers a versatile, high-performance toolset for traders looking to elevate their technical analysis by leveraging multiple momentum perspectives simultaneously.
Moon in Nakshatras March-April 2025 (IST, Sidereal)Moon in Nakshatras March-April 2025 (IST, Sidereal)
This Pine Script indicator overlays the 27 Vedic Nakshatras (lunar mansions) on your TradingView chart, based on the Moon's transit in March and April 2025, calculated in Indian Standard Time (IST) using sidereal astrology. Each Nakshatra period is highlighted with a teal background and labeled with its Hindi name and approximate start/end times. Users can toggle visibility and adjust label size (small, normal, large, huge) for customization. Additionally, the indicator includes a percentage change logic with a customizable timeframe, price type, and moving average, coloring bars based on price momentum (lime for bullish, red for bearish, gray for neutral).
Disclaimer:
// © Dshergill
This indicator is for informational purposes only and does not constitute financial advice. Nakshatra timings are approximate and may vary slightly depending on precise astronomical calculations. Always verify with a trusted source before making trading decisions.
Long Short Technical Ratings StrategyDefinition
This strategy is based on signals from the “ Long Short Technical Rating” indicator. Learn more about the signals generated by the rating indicator in the following article.
Key Takeaways
The strategy opens a long position when a “Strong Buy” signal appears, and a short position when a “Strong Sell” signal appears, as indicated by the Technical Rating indicator. The signals are generated based on a group of indicators. Using the “Rating Based On” input, you can choose which group of indicators to use for signal generation.
For all orders opened under this strategy:
A fixed stop loss is set at 3 × ATR(14).
A trailing stop, which is activated when the profit reaches 5 × ATR(14), is set at 2 × ATR(14) from the maximum profit after the trigger level is reached.
Note
TradingView does not recommend buying or selling any financial instrument solely based on the Technical Rating indicator's recommendations. These suggestions simply show when a collection of individual indicators meets certain conditions, which may help users identify potentially favorable trade setups — if aligned with their personal trading strategy.
FSH ATR MTF MonitorThe FSH ATR MTF Monitor tracks the Average True Range (ATR) and current range across six customizable timeframes, displaying the results in a table. When a timeframe’s range exceeds its ATR, the range value turns yellow, signaling heightened volatility. This multi-timeframe tool helps traders assess market conditions and plan entries or exits.
Key Features:
- Monitors ATR and range for up to six timeframes simultaneously.
- Customizable ATR length and timeframe inputs.
- Highlights ranges exceeding ATR in yellow for quick identification.
- Table display with toggle option for flexibility.
How to Use:
1. Add the indicator to your chart.
2. Adjust the ATR length and timeframes in the inputs as needed.
3. Watch for yellow range values to spot volatility spikes across timeframes.
4. Toggle the table off if not needed.
Ideal for scalpers, swing traders, or anyone analyzing volatility across multiple timeframes.
Intraday LevelsWhat it shows:
This indicator is useful for day trading, where it will track and display you important price levels which includes:
Premarket Low (PML)
Premarket High (PMH)
Previous Day Low (PDL)
Previous Day High (PDH)
Previous Day Close (PDC)
After Hours Low (AHL)
After Hours High (AHH)
Day Low (DL)
Day High (DH)
The price level lines and labels will automatically adjust itself as the price moves, eliminating the need of manually having to adjusting these levels.
How to use it:
At these levels it can act as important support resistance points during the day and can often serve as a important pivot point for any ticker. You can expect price rejection or bounce when the price approaches these levels.
Key settings:
For each of the levels, user can adjust in the settings menu:
Line Colour
Line Thickness
Line Style
Label Text
Price Labelling on Label
Label Location (Offset from current bar)
Ability to turn on/off the price level and label
Display levels for either all days or on the day
SmartTrend Indicator @tradingbauhausOverview
"SmartTrend Indicator @tradingbauhaus" is a technical indicator designed to identify buy and sell signals in trending markets, filtering out ranging conditions through a trend strength analysis. It combines multiple technical analysis tools, including moving averages, RSI, and candlestick patterns, to generate precise entry and exit signals, along with take-profit markers. Additionally, it features a visual trend cloud and a metrics table to provide a comprehensive market analysis.
Purpose and Differentiation
This indicator is tailored for traders looking to trade in markets with clear trends, avoiding false signals during ranging conditions. Unlike traditional indicators that rely solely on moving average crossovers or RSI levels, "SmartTrend Indicator @tradingbauhaus" uses a trend strength filter based on RSI to ensure signals are only generated in markets with sufficient momentum. It also includes confirmation levels (2, 3, 4) to indicate signal strength and primary/secondary take-profit markers for more effective risk management.
How It Works: Detailed Explanation
1. Trend Calculation
-Utilizes two Simple Moving Averages (SMAs): a short SMA (default: 9 periods) and a long SMA (default: 21 periods).
-An uptrend is identified when the short SMA is above the long SMA (trend_up = ma_short > ma_long).
-A downtrend is identified when the short SMA is below the long SMA (trend_down = ma_short < ma_long).
-A trend cloud is plotted between the two SMAs, colored green for uptrends and red for downtrends, providing a clear visual representation of market direction.
2. Trend Strength
-Trend strength is calculated using the Relative Strength Index (RSI) with an adjustable period (default: 14).
-RSI is normalized between -1 and 1: trend_strength = (rsi - 50) / 50.
-Signals are only generated if the trend strength exceeds a user-defined threshold (trend_strength_threshold, default: 0.5), filtering out ranging markets and reducing false signals.
3. Signal Logic
-Buy Signal: Generated when the price crosses above the short SMA (ta.crossover(close, ma_short)), the trend is bullish, RSI is not overbought (rsi < rsi_overbought), and the trend strength is sufficient (strong_trend).
-Sell Signal: Generated when the price crosses below the short SMA (ta.crossunder(close, ma_short)), the trend is bearish, RSI is not oversold (rsi > rsi_oversold), and the trend strength is sufficient.
-Signals are represented by triangles: green below bars for buys and red above bars for sells.
4. Confirmation Levels
-Each signal is assigned a confirmation level (2, 3, or 4) based on RSI levels:
Level 2: Base signal (minimum conditions met).
Level 3: More favorable RSI (below 40 for buys, above 60 for sells).
Level 4: Extreme RSI (below 30 for buys, above 70 for sells).
These levels are displayed as numbers near the signals to indicate their strength.
5. Take-Profit Markers
-Primary (Blue): Generated when the price crosses the long SMA in the opposite direction of the trend (ta.crossunder(close, ma_long) for buys, ta.crossover(close, ma_long) for sells), indicating a potential trend reversal.
-Secondary (Orange): Generated when RSI reaches overbought/oversold levels (ta.crossunder(rsi, rsi_overbought) for buys, ta.crossover(rsi, rsi_oversold) for sells), suggesting a potential correction.
These markers are represented by blue or orange "X" symbols on the chart.
6. Metrics Table
A table in the top-right corner displays key metrics:
Trend Strength: Percentage based on normalized RSI.
Volatility: High or Low, based on the 14-period Average True Range (ATR).
Squeeze: Yes or No, based on the 20-period standard deviation of prices.
Volume Sentiment: Bullish or Bearish, comparing current volume to a 20-period SMA of volume.
Settings
Short MA Length: Default 9. Adjusts the sensitivity of the short SMA.
Long MA Length: Default 21. Adjusts the long SMA for the trend cloud.
RSI Length: Default 14. Sets the period for RSI to measure trend strength.
RSI Overbought/Oversold: Default 70 and 30, respectively. Adjusts levels for signals and secondary markers.
Trend Strength Threshold: Default 0.5. Defines the minimum trend strength for signal generation.
Usage Guidelines
Markets and Timeframes:
Suitable for stocks, forex, cryptocurrencies, and futures.
Recommended for 5-minute to 1-hour timeframes for day trading, and 4-hour to daily for swing trading.
Entry Strategy:
Use buy signals (green triangle) and sell signals (red triangle) as entry points.
Pay attention to the confirmation level (2, 3, 4) to gauge signal strength.
Exit Strategy:
Use primary take-profit markers (blue) for exits based on potential trend changes.
Use secondary markers (orange) for partial exits or corrections.
Additional Analysis:
Check the metrics table for trend strength, volatility, and volume sentiment before trading.
Combine with other indicators (e.g., support/resistance levels) for additional confirmation.
Disclaimer
Disclaimer: This indicator is for informational and educational purposes only and is not financial advice. Trading carries a high risk of loss, and past price movements do not guarantee future results. Always do your own research and consider consulting a financial advisor before making trading decisions. The creator of this indicator is not responsible for any financial losses you may experience while using it.
Fisher TransformationUsage Guide:
-Bullish Signal: Fisher crosses above signal line + histogram turns green.
-Bearish Signal: Fisher crosses below signal line + histogram turns red.
-Overbought: Fisher > 2 → Potential mean reversion short.
-Oversold: Fisher < -2 → Potential bounce long.
Optimal Settings:
Market Type Fisher Length Smoothing
Day Trading 5-8 2-3
Swing Trading 10-14 3-5
Position Trading 20-30 5-8
Unusual Whale - Unusual Options Volume Data ScreenerHow to Use:
Custom Expiration Date: Use the calendar/date picker to select the expiration date. The chosen date is automatically converted to the "YYMMDD" format.
Custom Base Strike: Enter a round strike value from the options chain (for example, "270"). This value serves as the starting point (at-the-money) for the scan.
Strike Increment: Select the increment (e.g., 0.50, 1.00, 2.5, 5, or 10) to determine how the scan moves outward from the custom base strike.
Options per Side (Max 20): Choose the number of valid option strikes to scan on each side. The script scans downward (for calls) and upward (for puts) from the custom base strike.
Base Symbol: The base symbol is always taken from the chart (using syminfo.ticker); no manual entry is needed.
Scanning & Aggregation: The script automatically constructs option symbols using the base symbol, custom expiration date, option type (C or P), and the formatted strike. It retrieves volume data for these options and aggregates the cumulative volume for calls and puts separately.
Plotting: Cumulative call volume is plotted in green, and cumulative put volume is plotted in red—only if the required number of valid options is found.
Benefits of Scanning Options Volume for Unusual Activity:
Offers a comprehensive view of volume across multiple strikes, making unusual or extreme volume patterns easier to detect.
Helps gauge market sentiment by comparing aggregated call and put volumes, which may signal shifts in investor behavior.
Aggregating volume from several strike levels provides smoother, more reliable data than using a single strike, enhancing your analytical insights.
What to Do If Combinations Don't Yield Results:
Verify Your Inputs: Ensure that the Custom Base Symbol, Expiration Date, and Custom Base Strike are entered correctly and correspond to an active options chain.
Adjust Strike Increment: If the options aren’t loading as expected, try selecting a different strike increment that more closely matches the spacing in your options chain.
Reduce Options per Side: Lower the number of Options per Side (e.g., from 20 to a lower value) if the scan fails to find enough valid strikes.
Review Your Options Chain: Confirm that the contracts for the specified expiration and strike range exist and are available in your data feed.
Check Data Subscription: Make sure your TradingView plan includes access to the options data required for the selected symbols.
Cumulative Call Volume is Green, Put Volume is Red
Enhanced Bollinger Bands (EBB) + Dyn. Fun# Enhanced Bollinger Bands (EBB) + Dynamic Fun Character for TradingView
**Author:** Gemini AI (Conceptualized by a Senior SWE/FinAnalyst Persona)
**Date:** 2025-04-09
**Version:** 1.4
## Overview
This TradingView Pine Script indicator provides a significantly enhanced version of the standard Bollinger Bands (BB) combined with a fun, dynamic character element for at-a-glance visualization of the current price action.
It offers greater flexibility in calculating the Bollinger Bands by allowing user selection of the Moving Average type and price source. Additionally, it includes visual aids like volatility squeeze highlighting, band filling, and band cross labels, along with configurable alerts.
The unique "Dynamic Fun Character" feature displays an emoji next to the current real-time candle, changing its expression based on the candle's direction (up, down, or neutral), providing an intuitive visual cue for market sentiment on the very latest bar.
## Core Concepts
* **Bollinger Bands (BB):** A volatility indicator consisting of:
* **Basis Line:** A moving average (SMA, EMA, etc.) representing the middle price range.
* **Upper Band:** Basis Line + (Standard Deviations * Multiplier).
* **Lower Band:** Basis Line - (Standard Deviations * Multiplier).
* The bands widen during high volatility and narrow ("squeeze") during low volatility. Price tends to stay within the bands most of the time.
* **Average True Range (ATR):** A measure of market volatility. Used in this script to dynamically position the character label vertically and to determine the threshold for a "neutral" candle.
## Features
### Enhanced Bollinger Bands
1. **Selectable Moving Average Type:** Choose the MA type for the Basis Line:
* `SMA` (Simple Moving Average - Default)
* `EMA` (Exponential Moving Average - More weight to recent prices)
* `WMA` (Weighted Moving Average - Linear weight to recent prices)
* `HMA` (Hull Moving Average - Aims for less lag, smoother)
* `VWMA` (Volume Weighted Moving Average - Weights price by volume)
2. **Selectable Price Source:** Calculate bands based on various price points:
* `close` (Default)
* `high`, `low`, `open`
* `hl2` ( (high + low) / 2 )
* `hlc3` ( (high + low + close) / 3 )
* `ohlc4` ( (open + high + low + close) / 4 )
3. **Volatility Squeeze Highlight:** Automatically highlights the chart background (default: gray) when bandwidth (relative width of the bands) reaches a low point over a user-defined lookback period. Squeezes often precede significant price moves.
4. **Band Fill:** Optionally fills the area between the upper and lower bands with a semi-transparent color for better visualization of the volatility channel.
5. **Band Cross Labels:** Displays small triangles (▲ for up-cross, ▼ for down-cross) when the price closes outside the upper or lower band, highlighting potential breakout or reversal signals.
6. **Band Cross Alerts:** Configurable TradingView alerts can be triggered when the price crosses above the upper band or below the lower band.
7. **Bandwidth & %B Calculations:** The script calculates Bandwidth (`(Upper - Lower) / Basis`) and %B (`(Price - Lower) / (Upper - Lower)`) internally. While not plotted separately, these values are used for features like the squeeze detection and could potentially be used for strategy development.
### Dynamic Fun Character
1. **Sentiment Visualization:** Displays an emoji character next to the **current, real-time candle only**.
2. **Dynamic Expression:** The emoji changes based on the candle's formation:
* **😀 (Happy):** Candle is Green (`close > open`).
* **😞 (Sad):** Candle is Red (`close < open`).
* **😑 (Neutral):** Candle body (`abs(close - open)`) is very small compared to the Average True Range (ATR). Indicates low momentum or indecision for that specific bar.
3. **Adaptive Neutral Threshold:** The threshold for displaying the neutral face (😑) is based on a user-defined fraction of the current ATR, making it adaptive to market volatility.
4. **Customizable Appearance:**
* Position (X/Y Offset from the current candle).
* Size (Tiny, Small, Normal, Large, Huge - Default: Huge).
* Background Color (Default: Black).
* Text/Emoji Color (Default: White).
5. **Dynamic Tooltip:** Hovering over the character provides a simple text description of the current candle state ("Moving Up!", "Moving Down!", "Not much action.").
## How to Use / Interpretation
* **Volatility:** Watch the **band width**. Narrowing bands (especially with **Squeeze Highlights**) indicate consolidation and potential energy buildup for a larger move. Widening bands show increased volatility.
* **Trend Following:** In strong trends, prices may "walk the band" (consistently touch or slightly exceed the upper/lower band). The **Basis Line** often acts as dynamic support/resistance.
* **Mean Reversion Signals:** Price touching an outer band *without* extreme volatility *might* suggest an overbought/oversold state, potentially leading to a move back towards the **Basis Line**. Confirm with other factors.
* **Breakouts/Reversals:** Price closing outside the bands (indicated by **Cross Labels** and potentially **Alerts**), especially after a **Squeeze**, can signal the start of a new move. Look for confirmation (e.g., volume).
* **Dynamic Character:** Use the character for a quick visual check of the **current real-time candle's sentiment**. Is the latest price action bullish (😀), bearish (😞), or indecisive (😑)?
* **Context is Key:** **Never** rely on this indicator alone. Combine its signals with price action analysis, chart patterns, volume, other indicators (RSI, MACD, etc.), and robust risk management strategies.
## How to Add to TradingView
1. Open your TradingView chart.
2. Click on the "Pine Editor" tab at the bottom panel.
3. Copy the entire script code (`.pine` file content).
4. Paste the code into the Pine Editor, replacing any existing content.
5. Click "Add to Chart".
6. Adjust parameters via the indicator's "Settings" cog icon if needed.
## Input Parameters
Parameters can be adjusted in the indicator settings window.
### Moving Average Settings
* **Price Source:** (`srcInput`, Default: `close`) - Selects the price data source for all calculations.
* **BB Length:** (`lenInput`, Default: `20`) - Lookback period for MA and Standard Deviation.
* **MA Type:** (`maTypeInput`, Default: `SMA`) - Type of Moving Average for the Basis Line.
* **StdDev Multiplier:** (`multInput`, Default: `2.0`) - Multiplier for the Standard Deviation to set band width.
### Visual Settings
* **Show Band Fill:** (`showFillInput`, Default: `true`) - Toggles the color fill between bands.
* **Fill Color:** (`fillColorInput`, Default: `Blue, 85% transparency`) - Color for the band fill.
* **Upper Band:** (`upperColorInput`, Default: `Teal`) - Color of the upper band line.
* **Basis Line:** (`basisColorInput`, Default: `Orange`) - Color of the middle basis line.
* **Lower Band:** (`lowerColorInput`, Default: `Teal`) - Color of the lower band line.
### Volatility Squeeze Settings
* **Highlight Squeezes:** (`showSqueezeInput`, Default: `true`) - Toggles the background highlight during squeezes.
* **Squeeze Lookback:** (`squeezeLookbackInput`, Default: `50`) - How many bars back to check for the lowest bandwidth to define a squeeze.
* **Squeeze Color:** (`squeezeColorInput`, Default: `Gray, 80% transparency`) - Background color during a squeeze.
### On-Chart Labels
* **Show Band Cross Labels:** (`showLabelsInput`, Default: `true`) - Toggles the ▲/▼ labels on band crosses.
* **Label Size:** (`labelSizeInput`, Default: `Small`) - Size of the ▲/▼ cross labels.
* **Up-Cross Label Color:** (`upCrossColorInput`, Default: `Green`) - Color for the ▲ label.
* **Down-Cross Label Color:** (`dnCrossColorInput`, Default: `Red`) - Color for the ▼ label.
### Alert Settings
* **Alert on Upper Band Cross:** (`alertCrossUpperInput`, Default: `false`) - Enable condition for alerts when price crosses above the upper band.
* **Alert on Lower Band Cross:** (`alertCrossLowerInput`, Default: `false`) - Enable condition for alerts when price crosses below the lower band.
### Fun Character Settings
* **Show Dynamic Character:** (`showCartoonInput`, Default: `true`) - Toggles the dynamic emoji character on/off.
* **Neutral Threshold (ATR Fraction):** (`littleMoveThresholdInput`, Default: `0.15`) - If candle body size < (this fraction * ATR), show Neutral face (😑).
* **Character X Offset (Bars):** (`cartoonXOffsetInput`, Default: `2`) - Horizontal offset (in bars) from the current candle.
* **Character Y Offset (ATR):** (`cartoonYOffsetMultInput`, Default: `0.5`) - Vertical offset (as a multiple of ATR) from the current candle's high.
* **Character Size:** (`cartoonSizeInput`, Default: `Huge`) - Size of the emoji character.
* **Character BG Color:** (`cartoonColorInput`, Default: `Black`) - Background color of the character label.
* **Character Text Color:** (`cartoonTextColorInput`, Default: `White`) - Color of the emoji text itself.
## Changelog
* **v1.4 (2025-04-09):** Replaced blinking character logic with dynamic face based on candle movement (Up 😀 / Down 😞 / Neutral 😑). Added ATR-based threshold input for neutral state.
* **v1.3 (2025-04-09):** Increased default character size to `size.huge`.
* **v1.2 (2025-04-09):** Changed default character background color to black and text color to white for better contrast.
* **v1.1 (2025-04-09):** Added optional blinking cartoon character next to the current candle.
* **v1.0 (2025-04-09):** Initial release - Enhanced Bollinger Bands with selectable MA/Source, squeeze highlighting, band fill, cross labels, and alerts.
## Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. Trading financial markets involves significant risk, and you could lose your capital. Always perform your own due diligence and consult with a qualified financial advisor before making any trading decisions. Past performance is not indicative of future results. The author is not responsible for any trading losses incurred using this indicator.
Aggressive Predictor+ (Last Bar, Vol, Wick)# Aggressive Predictor+ Pine Script Indicator
**Version:** Based on the script incorporating Last Bar analysis, Volume Confirmation, and Wick Rejection.
## Overview
This TradingView Pine Script indicator aims to predict the likely directional bias of the **next** candle based on an aggressive analysis of the **last closed candle's** price action, volume, and wick characteristics relative to recent market volatility (ATR).
It is designed to be **highly reactive** to the most recent bar's information. The prediction is visualized directly on the chart through shapes, a projected line, a text label, and an information table.
**Please Note:** Predicting the next candle is inherently speculative. This indicator provides a probability assessment based on its specific logic and should be used as a supplementary tool within a broader trading strategy, not as a standalone signal. Its performance heavily depends on market conditions and the chosen settings.
## Core Logic Explained
The indicator follows these steps for each new bar, looking back at the **last closed bar** (` `):
1. **Calculate Recent Volatility:** Determines the Average True Range (ATR) over the specified `ATR Lookback Period` (`atr_len`). This provides context for how volatile the market has been recently.
2. **Analyze Last Bar's Body:** Calculates the price change from open to close (`close - open `) of the last completed bar.
3. **Compare Body to Volatility:** Compares the absolute size of the last bar's body to the calculated ATR (`prev_atr`) multiplied by a sensitivity threshold (`threshold_atr_mult`).
* If the body size (positive) exceeds the threshold, the initial prediction is "Upward".
* If the body size (negative) exceeds the negative threshold, the initial prediction is "Downward".
* Otherwise, the initial prediction is "Neutral".
4. **Check Volume Confirmation:** Compares the volume of the last bar (`volume `) to its recent average volume (`ta.sma(volume, vol_avg_len) `). If the volume is significantly higher (based on `vol_confirm_mult`), it adds context ("High Vol") to directional predictions.
5. **Check for Wick Rejection:** Analyzes the wicks of the last bar.
* If the initial prediction was "Upward" but there was a large upper wick (relative to the body size, defined by `wick_rejection_mult`), it indicates potential selling pressure rejecting higher prices. The prediction is **overridden to "Neutral"**.
* If the initial prediction was "Downward" but there was a large lower wick, it indicates potential buying pressure supporting lower prices. The prediction is **overridden to "Neutral"**.
6. **Determine Final Prediction:** The final state ("Upward", "Downward", or "Neutral") is determined after considering potential wick rejection overrides. Context about volume or wick rejection is added to the display text.
## Visual Elements
* **Prediction Shapes:**
* Green Up Triangle: Below the bar for an "Upward" prediction (without wick rejection).
* Red Down Triangle: Above the bar for a "Downward" prediction (without wick rejection).
* Gray Diamond: Above/Below the bar if a directional move was predicted but then neutralized due to Wick Rejection.
* **Prediction Line:**
* Extends forward from the current bar's close for `line_length` bars (Default: 20).
* Color indicates the final predicted state (Green: Upward, Red: Downward, Gray: Neutral).
* Style is solid for directional predictions, dotted for Neutral.
* The *slope/magnitude* of the line is based on recent volatility (ATR) and the `projection_mult` setting, representing a *potential* magnitude if the predicted direction holds, scaled by recent volatility. **This is purely a visual projection, not a precise price forecast.**
* **Prediction Label:**
* Appears at the end of the Prediction Line.
* Displays the final prediction state (e.g., "Upward (High Vol)", "Neutral (Wick Rej)").
* Shows the raw price change of the last bar's body and its size relative to ATR (e.g., "Last Body: 1.50 (120.5% ATR)").
* Tooltip provides more detailed calculation info.
* **Info Table:**
* Displays the prediction state, color-coded.
* Shows details about the last bar's body size relative to ATR.
* Dynamically positioned near the latest bar (offsets configurable).
## Configuration Settings (Inputs)
These settings allow you to customize the indicator's behavior and appearance. Access them by clicking the "Settings" gear icon on the indicator name on your chart.
### Price Action & ATR
* **`ATR Lookback Period` (`atr_len`):**
* *Default:* 14
* *Purpose:* Number of bars used to calculate the Average True Range (ATR), which measures recent volatility.
* **`Body Threshold (ATR Multiplier)` (`threshold_atr_mult`):**
* *Default:* 0.5
* *Purpose:* Key setting for **aggression**. The last bar's body size (`close - open`) must be greater than `ATR * this_multiplier` to be initially classified as "Upward" or "Downward".
* *Effect:* **Lower values** make the indicator **more aggressive** (easier to predict direction). Higher values require a stronger price move relative to volatility and result in more "Neutral" predictions.
### Volume Confirmation
* **`Volume Avg Lookback` (`vol_avg_len`):**
* *Default:* 20
* *Purpose:* Number of bars used to calculate the simple moving average of volume.
* **`Volume Confirmation Multiplier` (`vol_confirm_mult`):**
* *Default:* 1.5
* *Purpose:* Volume on the last bar is considered "High" if it's greater than `Average Volume * this_multiplier`.
* *Effect:* Primarily adds context "(High Vol)" or "(Low Vol)" to the display text for directional predictions. Doesn't change the core prediction state itself.
### Wick Rejection
* **`Wick Rejection Multiplier` (`wick_rejection_mult`):**
* *Default:* 1.0
* *Purpose:* If an opposing wick (upper wick on an up-candle, lower wick on a down-candle) is larger than `body size * this_multiplier`, the directional prediction is overridden to "Neutral".
* *Effect:* Higher values require a much larger opposing wick to cause a rejection override. Lower values make wick rejection more likely.
### Projection Settings
* **`Projection Multiplier (ATR based)` (`projection_mult`):**
* *Default:* 1.0
* *Purpose:* Scales the projected *magnitude* of the prediction line. The projected price change shown by the line is `+/- ATR * this_multiplier`.
* *Effect:* Adjusts how far up or down the prediction line visually slopes. Does not affect the predicted direction.
* **`Prediction Line Length (Bars)` (`line_length`):**
* *Default:* 20
* *Purpose:* Controls how many bars forward the **visual** prediction line extends.
* *Effect:* Purely visual length adjustment.
### Visuals
* **`Upward Color` (`bullish_color`):** Color for Upward predictions.
* **`Downward Color` (`bearish_color`):** Color for Downward predictions.
* **`Neutral Color` (`neutral_color`):** Color for Neutral predictions (including Wick Rejections).
* **`Show Prediction Shapes` (`show_shapes`):** Toggle visibility of the triangles/diamonds on the chart.
* **`Show Prediction Line` (`show_line`):** Toggle visibility of the projected line.
* **`Show Prediction Label` (`show_label`):** Toggle visibility of the text label at the end of the line.
* **`Show Info Table` (`show_table`):** Toggle visibility of the information table.
### Table Positioning
* **`Table X Offset (Bars)` (`table_x_offset`):**
* *Default:* 3
* *Purpose:* How many bars to the right of the current bar the info table should appear.
* **`Table Y Offset (ATR Multiplier)` (`table_y_offset_atr`):**
* *Default:* 0.5
* *Purpose:* How far above the high of the last bar the info table should appear, measured in multiples of ATR.
## How to Use
1. Open the Pine Editor in TradingView.
2. Paste the complete script code.
3. Click "Add to Chart".
4. Adjust the input settings (especially `threshold_atr_mult`) to tune the indicator's aggressiveness and visual preferences.
5. Observe the prediction elements alongside your other analysis methods.
## Disclaimer
**This indicator is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset.** Trading financial markets involves significant risk, and you could lose money. Predictions about future price movements are inherently uncertain. The performance of this indicator depends heavily on market conditions and the settings used. Always perform your own due diligence and consider multiple factors before making any trading decisions. Use this indicator at your own risk.