OPEN-SOURCE SCRIPT
Updated CM_Williams_Vix_Fix - Market Top and Bottom with multi-timeframe

This is a modification of CM_Williams_Vix_Fix indicator to include both market tops and bottoms with multi-timeframe support. The original indicator only finds market bottoms.
All credits go to the original author ChrisMoody.
Original script link
Working:
The histogram above 0 signifies the trend of market going UP and the histogram below 0 signifies the trend of market going DOWN.
The histogram bar is calculated using "LookBack Period Standard Deviation High" number of candles. A threshold is calculated using bollinger bands and based on percentile of "Look Back Period Percentile High" number of candles.
If the histogram bar above 0 crosses the up threshold then we have market top which is signified by histogram bar having the color green. If the histogram bar below 0 crosses the down threshold then we have market bottom which is signified by histogram bar having the color red.
The market tops and bottoms can also be calculated across multiple timeframes.
Sample usage:
Suppose the market is in an uptrend and the indicator displays red market bottom bar, this might be an indication that the market has reached the end of a pullback. We can use additional indicators like stochastic or rsi to get additional confluence.
This indicator does not repaint but you need to wait for the candle to close.
All credits go to the original author ChrisMoody.
Original script link
Working:
The histogram above 0 signifies the trend of market going UP and the histogram below 0 signifies the trend of market going DOWN.
The histogram bar is calculated using "LookBack Period Standard Deviation High" number of candles. A threshold is calculated using bollinger bands and based on percentile of "Look Back Period Percentile High" number of candles.
If the histogram bar above 0 crosses the up threshold then we have market top which is signified by histogram bar having the color green. If the histogram bar below 0 crosses the down threshold then we have market bottom which is signified by histogram bar having the color red.
The market tops and bottoms can also be calculated across multiple timeframes.
Sample usage:
Suppose the market is in an uptrend and the indicator displays red market bottom bar, this might be an indication that the market has reached the end of a pullback. We can use additional indicators like stochastic or rsi to get additional confluence.
This indicator does not repaint but you need to wait for the candle to close.
Release Notes
Alerts addedOpen-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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.