OPEN-SOURCE SCRIPT

Dirty Market Index

106
This indicator is designed to out an index displaying the level of dirtiness in market.
This level is defined by:

Sum of shadow lengths of last n candles (n is input and user can change it, it's 100 by default)
divided by
Sum of full candle bodies of last n candles (high - low)

This factor indicates how many percents of the market movement has been placed in shadows of candles, the higher this number, the dirtier market would be.

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.