Public Function ChaikinVolatility(chart_ID As Long,period As Integer,Rate As Integer,MA As ENUM_MA_METHOD) As String
The Chaikin Volatility Oscillator is a moving average derivative of the Accumulation/Distribution index.
The Chaikin Volatility Oscillator adjusts with respect to volatility, independent of long-term price action.
|chart_iD||Chart identifier, 0 is the current chart, a value of type Long|
|period||The calculation period, on which the indicator will be calculated, avalue of type Integer
|Rate||Rate Of change, a value of type Integer.|
|MA||Moving average method can be one of theENUM_MA_METHOD.|
Returns the handles of a technical indicator, in case of failure returns an empty string.
Public Sub main()AlertMessage (chaikinVolatility(0,14,1,2))'Draws the indicator on chart and shows a message box with the indicator name.End Sub