RealCode API
PercentChange Method (barsAgo)
RealCode APIWBI.CommonBlocksRealCodeIndicatorPercentChange(Int32)
Returns the percent change vs the specified bars ago.
Declaration Syntax
Visual Basic
Public Function PercentChange ( _
	barsAgo As Integer _
) As Single
Parameters
barsAgo (Int32)
Number of bars ago to perform the percent comparison. 1 = previous bar.
Return Value
Percent change vs barsAgo.
Remarks
Not used during manual loop calculations
Examples
Example: plot the price percent change vs previous bar
CopyVB.NET
plot = price.percentChange(1)
See Also

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