VolatilityThe Volatility measures the risk or stock variability. It’s calculated using standard deviations on daily returns. When volatility increases, the risk increases as bigger changes in the stock price are expected. Syntax:Public Function Volatility(ByVal VIn() As Double, ByVal Lag As Long) As Double Parameters:
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.Volatility(CloseValues, 14)
|
|
TA4.NET® Franz AG
2004© |
| Browser Based Help. Published by chm2web software. |