Correlates current price with high and low Bollinger Band. The value %B
reflects current price position calculated in percents of bandwidth. The values
greater than 100% shows the price is above the high band. The values lower than
0% shows the price is under the low band. The values between 0% and 100% shows
the price is within the Bollinger Bands.
Public Function BollingerBandPercent(ByVal BBPIn() As Double, ByVal Lag As Long, ByVal Deviation As Long) As Double
Example:
Dim TA4Net As
New TA4Net.CTAFunctions("YOUR-REGISTRATION-CODE")
Dim Result() As
Double
Dim CloseValues() As
Double
' loading values to array
CloseValues =
GetCloseValues()
' calculating Technical Analysis function
Result = TA4Net.BollingerBandPercent(CloseValues, 14, 10)