Bollinger Band Percent

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.

Syntax:

Public Function BollingerBandPercent(ByVal BBPIn() As Double, ByVal Lag As Long, ByVal Deviation As Long) As Double

Parameters:

  • ByVal BBPIn() As Double
  • ByVal Lag As Long
  • ByVal Deviation As Long

Back to list

 

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)

 


TA4.NET® Franz AG 2004©
Web site: http://www.ta4.net
e-mail: support@ta4.net

Browser Based Help. Published by chm2web software.