OPEN-SOURCE SCRIPT
已更新

Price and Volume Divergence Analyzer


How to Use the Indicator

Main Purpose:
Identify divergences between price movement, the volume line, and the weighted volume line to predict potential reversals.

Volume Line Explanation:

At zero: Equal buying and selling volume.
At 1: Double the buying volume vs. selling.
At -1: Double the selling volume vs. buying.
Divergence:
Price rising, volume line falling: Sellers offloading to buyers—likely reversal downward.
Price falling, volume line rising: Buyers stepping in—likely reversal upward.
Higher/Lower Volume Movement Line:

At zero: Equal volume required for price movement.
At 1: High efficiency—half the volume needed to move price.
At -1: Low efficiency—double the volume needed to move price.
Above volume line: Movement aligns with efficient volume.
Below volume line: Inefficient price movement.
Candle Fill Colors:

Shaded based on whether the current close is higher or lower than the previous close.
Settings Overview

EMA Settings:

Timeframe Selection:
Use a lower timeframe than your chart for accuracy. Avoid selecting a timeframe higher than your chart.
EMA Length Option:
Default: Sets lengths automatically (EMA = 14, EMA of EMA = 3).
User Input: Allows custom EMA length.
Calculation Type:
EMA: Standard exponential moving average.
EMA of EMA: Applies EMA three times for smoother values.
Volume Line Settings:

Line Width: Adjust thickness.
Colors:
More Buying: Green (default).
More Selling: Red (default).
Higher/Lower Volume Movement Line:

Line Width: Adjust thickness.
Colors:
Higher Volume Movement: Indicates higher volume required.
Lower Volume Movement: Indicates lower volume required.
Up/Down Candle Fill:

Colors:
Up Candle: Green (default).
Down Candle: Red (default).
Transparency: Adjust percentage for visibility.
Balance Line Settings:

Line Width and Color: Equilibrium line showing equal buying/selling volume at zero.
發行說明

Added Features:

• Percent Rank Volume squares at the top.
• RSI squares at the bottom.
• Legend with values and colors corresponding to RSI and Percent Rank levels (0 to 100).
• On/Off display buttons for portions of the indicator.
• Balance line style option.

RSI Levels:
Oversold: Dark purple, pink, red, orange.
Midpoint: Yellow.
Overbought: Green, cyan, blue, dark blue.

Volume Percent Rank:
Low Volume: Dark purple, pink, red, orange.
Midpoint (Average Volume): Yellow.
High Volume: Green, cyan, blue, dark blue.

發行說明
Updated Script Overview:

Use lower timeframes than your chart's.
Additional moving average options for volume and price-weighted lines.
Buy/Sell Volume Ratio Line (Green/Red):

Above zero (green): More trades closed higher than the previous close.
Below zero (red): More trades closed lower than the previous close.
If the buy/sell ratio line reaches 1, all trades within the candle session closed higher than the previous close.
If the buy/sell ratio line reaches -1, all trades within the candle session closed lower than the previous close.
Buy/Sell Dominant Line:

Turns blue when above the buy/sell ratio line, indicating greater upward movement per volume.
Turns purple when below the buy/sell ratio line, indicating greater downward movement per volume.
Fill Type Options:

Volume buying vs selling colors
Candle up and candle down colors
Buying vs Selling Color Logic:

Green fill:

Buyer/seller ratio line is above zero (more buys).
Buy/sell dominant is above the ratio line (easier to move up).
Yellow fill:

Same as green, but buy/sell dominant is below the ratio line (easier to move down).
Red fill:

Buyer/seller ratio line is below zero (more sells).
Buy/sell dominant is below the ratio line (easier to move down).
Orange fill:

Same as red, but buy/sell dominant is above the ratio line (easier to move up).
Percent Rank:

Remapped from 0-100 to -50 (lowest volume) to 50 (highest volume).
發行說明
Added standard EMA.
發行說明
updated Legend.
發行說明
corrected fill color system.
發行說明
When up volume is equal to down it is now split between the two.

免責聲明