The DynamicZoneStochasticUp function in ProBuilder language is designed to calculate the upper boundary of the Dynamic Zone Stochastic indicator. This indicator enhances the traditional stochastic oscillator by incorporating dynamic overbought and oversold zones using Bollinger Bands. The purpose of this function is to help identify potential bearish signals when the price of a security is considered overbought.
dynamiczonestochasticup[BBperiod](price)
a = DynamicZoneStochasticUp[20](close)
b = DynamicZoneStochasticDown[20](close)
return a coloured(0,255,0) style(line,1), b coloured(255,0,0) style(line,1), Stochastic[14,3](close)
This example demonstrates how to calculate and plot the upper and lower boundaries of the Dynamic Zone Stochastic along with the standard Stochastic oscillator. The upper boundary is colored green, and the lower boundary is colored red.
The Dynamic Zone Stochastic oscillator ranges from 0 to 100, similar to the traditional stochastic oscillator. However, it adjusts the overbought and oversold levels dynamically based on the standard deviation of the stochastic values, rather than using fixed levels. This dynamic adjustment is achieved by applying Bollinger Bands to the stochastic values:
This function is particularly useful for traders who want to incorporate volatility-adjusted stochastic readings into their analysis, providing a more nuanced view than the standard stochastic oscillator.