JaRoRu

IBD Distribution Days

JaRoRu Updated   
This indicator seeks to mimic the conditions for Investors Business Daily's (IBD) Distribution Days that are tracked against the major indexes.

A distribution day is when the market index is down 0.2% or greater and the current day's volume is greater than yesterday's. By default, when a distribution day occurs a red arrow above the bar will appear.
The distribution days are only relevant for up to 25 trading days. This is represented by the gray bar that is shown. Therefore the count of distribution days is valid only to the right of the gray bar.

Distribution days can also be removed if the indexes move up more than 5% from the day of the distribution day.

This indicator must have a volume indicator in order for it to calculate properly. IXIC will not work without having a data subscription to the Nasdaq Index.

You are able to change the shape, shape color, and location of the shape in the menu. You are also free to change the color of the gray bar.

I welcome your feedback and any enhancements you may suggest.
Release Notes:
Fixed code in scenarios where the market has gain more than 5%, but a down day on volume which did not trigger a distribution day.

Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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?