RealCode API
STOC Method (period, percentK)
RealCode APIWBI.CommonBlocksRealCodeIndicatorSTOC(Int32, Int32)
Returns the Stochastics specified period and %k.
Declaration Syntax
Visual Basic
Public Function STOC ( _
	period As Integer, _
	percentK As Integer _
) As Single
Parameters
period (Int32)
The number of bars to perform the average
percentK (Int32)
The %K parameter for the Stochastics
Return Value
Returns a Singe data point.
Remarks
Not used during manual loop calculations
Examples
Example: Plot the 12,3 Stochastics
CopyVB.NET
plot = price.STOC(12,3)
See Also

Assembly: WBI.CommonBlocks (Module: WBI.CommonBlocks) Version: 1.0.25.0 (1.0.0.0)