M0rty

Candle Colored by Volume Z-score [Morty]

M0rty Updated   
This indicator colors the candles according to the z-score of the trading volume. You can easily see the imbalance on the chart. You can use it at any timeframe.

In statistics, the standard score (Z-score) is the number of standard deviations by which the value of a raw score (i.e., an observed value or data point) is above or below the mean value of what is being observed or measured. Raw scores above the mean have positive standard scores, while those below the mean have negative standard scores.

This script uses trading volume as source of z-score by default.
Due to the lack of volume data for some index tickers, you can also choose candle body size as source of z-score.


features:
- custom source of z-score
- volume
- candle body size
- any of above two
- all of above two
- custom threshold of z-score
- custom color chemes
- custom chart type
- alerts

default color schemes:

- green -> excheme bullish imbalance
- blue -> large bullish imbalance
- red -> excheme bearish imbalance
- purple -> large bearish imbalance
- yellow -> low volume bars, indicates "balance", after which volatility usually increases and tends to continue the previous trend

Examples:
* Personally, I use dark theme and changed the candle colors to black/white for down/up.

Volume as Z-score source

Any as Z-score source, more imbalances are showed
Release Notes:
remove the violation

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?