OPEN-SOURCE SCRIPT
Reversal Candle Anomaly Detector w/Volume-Colored Candles (VPA)

Automate your pinescript/trendspider to Tradovate/Ninja-Trader! ninja-view.com
Reversal Candle Anomaly Detector with Volume-Colored Candles (VPA Analysis)
This script is rooted in the principles of Volume Price Analysis (VPA), as illustrated by Anna Couling in "A Complete Guide To Volume Price Analysis" and Thor Young in "A Complete Day Trading System". It aims to spotlight candlestick formations and volume irregularities, which frequently signal potential market reversals or the directional intent of market makers.
Features:
Volume-Based Candle Coloring:
High Volume Candles: Bright green (for up candles) and bright red (for down candles), marking robust market participation.
Low Volume Candles: Darker shades of green and red, indicative of subdued trading activity.
Average Volume Candles: Standard green and red colors.
Anomaly Detection:
Short Anomalies: Short candles or candle bodies with unusually high volume, displayed in cyan (up candles) and magenta (down candles), hinting at potential market anomalies.
Tall Anomalies: Tall candles or candle bodies with low volume, shown in very light green and red colors, nearly white, suggesting another type of market anomaly.
Customization Options:
RSI Filter: An RSI (Relative Strength Index) option is available to minimize noise in short anomaly candles.
Adjustable Anomaly Criteria: Users can define what constitutes 'tall' or 'short' candles based on a percentage comparison to an average candle size.
Average Calculation: The script calculates the average size and volume of candles over a user-defined period for baseline anomaly detection.
Toggle for Anomaly Numbering: An option to enable or disable numbering of candle anomalies, which aids in filtering for algorithmic trading strategies.
Trading Insights and Tips:
Magenta/Cyan Anomaly Candles: Approach these 'magic candles' with caution, particularly when a price reversal follows in the next candle. They often exhibit a retest pattern across multiple timeframes.
Support and Resistance: Isolated anomalies often correlate with key support or resistance levels, whether daily, intraday, or historical. Recognizing these levels is essential for market prediction.
Interpreting 'Magic Candles': These candles may reflect large traders taking profits, causing price stagnation and potential reversals due to the triggered chain reaction among traders.
Market Makers' Tactics: Tall, low-volume candles could signify market makers' efforts to rapidly alter price directions, sometimes as deceptive strategies to initiate market orders.
Significant Market Reversals: Patterns such as UTDAD (Up Thrust After Distribution) or Wyckoff Spring, characterized by tall, similar-height, often wickless candles, can indicate major market reversals, especially when they occur after extended price moves or at critical levels.
This Pine Script tool is invaluable for traders leveraging VPA. It offers visual indicators and insights into market psychology and potential price movements. By analyzing volume and candlestick patterns, traders can better understand market dynamics and enhance their trading decisions.
Reversal Candle Anomaly Detector with Volume-Colored Candles (VPA Analysis)
This script is rooted in the principles of Volume Price Analysis (VPA), as illustrated by Anna Couling in "A Complete Guide To Volume Price Analysis" and Thor Young in "A Complete Day Trading System". It aims to spotlight candlestick formations and volume irregularities, which frequently signal potential market reversals or the directional intent of market makers.
Features:
Volume-Based Candle Coloring:
High Volume Candles: Bright green (for up candles) and bright red (for down candles), marking robust market participation.
Low Volume Candles: Darker shades of green and red, indicative of subdued trading activity.
Average Volume Candles: Standard green and red colors.
Anomaly Detection:
Short Anomalies: Short candles or candle bodies with unusually high volume, displayed in cyan (up candles) and magenta (down candles), hinting at potential market anomalies.
Tall Anomalies: Tall candles or candle bodies with low volume, shown in very light green and red colors, nearly white, suggesting another type of market anomaly.
Customization Options:
RSI Filter: An RSI (Relative Strength Index) option is available to minimize noise in short anomaly candles.
Adjustable Anomaly Criteria: Users can define what constitutes 'tall' or 'short' candles based on a percentage comparison to an average candle size.
Average Calculation: The script calculates the average size and volume of candles over a user-defined period for baseline anomaly detection.
Toggle for Anomaly Numbering: An option to enable or disable numbering of candle anomalies, which aids in filtering for algorithmic trading strategies.
Trading Insights and Tips:
Magenta/Cyan Anomaly Candles: Approach these 'magic candles' with caution, particularly when a price reversal follows in the next candle. They often exhibit a retest pattern across multiple timeframes.
Support and Resistance: Isolated anomalies often correlate with key support or resistance levels, whether daily, intraday, or historical. Recognizing these levels is essential for market prediction.
Interpreting 'Magic Candles': These candles may reflect large traders taking profits, causing price stagnation and potential reversals due to the triggered chain reaction among traders.
Market Makers' Tactics: Tall, low-volume candles could signify market makers' efforts to rapidly alter price directions, sometimes as deceptive strategies to initiate market orders.
Significant Market Reversals: Patterns such as UTDAD (Up Thrust After Distribution) or Wyckoff Spring, characterized by tall, similar-height, often wickless candles, can indicate major market reversals, especially when they occur after extended price moves or at critical levels.
This Pine Script tool is invaluable for traders leveraging VPA. It offers visual indicators and insights into market psychology and potential price movements. By analyzing volume and candlestick patterns, traders can better understand market dynamics and enhance their trading decisions.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.