Syntax
Public Function VolumeOscillator(VolumeVal As ENUM_VOLUME_METHOD, ShortTerm As Integer, LongTerm As Integer, OutputScal As ENUM_OUTPUT_SCAL) As String
Description
The Volume Oscillator shows a spread of two different moving averages of volume over a specified period of time.
Parameters
Key | Description |
VolumeVal | An integer value of typeENUM_VOLUME_METHOD |
ShortTerm | An integerspecifiesthe length of time used in the moving average calculations |
LongTerm | An integerspecifiesthe length of time used in the moving average calculations |
OutputScal | An integer value of typeENUM_OUTPUT_SCAL.Points Or Percent is an integer specifying Points output for 1 or Percent output for 2 |
Return value
Returns the handles of a technical indicator, in case of failure returns an empty string.
Sample
Public Sub main()AlertMessage (VolumeOscillator (VOLUME_OPEN,7,14, OUTPUT_SCAL_POINTS))'Draws the indicator on chart and shows a message box with the indicator name.End Sub
See Also