Bollinger Band Width
The width of Bollinger Band shows middle price value in percent for the last
PERIOD time periods. Sharp price changes tend to occur after the bandwidths
tighten. You must be careful after the bandwidth’s tighten, because upon the
historical experience, the market often starts the false movement just before
the big price changes in another direction.
Syntax:
Public Function BollingerBandWidth(ByVal BBWIn() As Double, ByVal Lag As Long, ByVal Deviation As Long) As Double
Parameters:
- ByVal BBWIn() 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
HLOCV =
GetHLOCVValues()
' calculating Technical Analysis function
Result = TA4Net.BollingerBandWidth(CloseValues, 14, 10)
|