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

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