OPEN-SOURCE SCRIPT
Market Direction

This script uses the ETF "VTI" to track the trend of the market
It requires 2 consecutive 5 day periods up or down to verify the direction otherwise the trend is neutral
It also uses a BB%B calculation to determine over bought and over sold conditions.
It will display numbers for 10 days ago, 5 days ago, downtrend today and uptrend today and finally the %B
Feel free to use or modify and offer suggestions for improvements
It requires 2 consecutive 5 day periods up or down to verify the direction otherwise the trend is neutral
It also uses a BB%B calculation to determine over bought and over sold conditions.
It will display numbers for 10 days ago, 5 days ago, downtrend today and uptrend today and finally the %B
Feel free to use or modify and offer suggestions for improvements
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.