Navigation: Realtest Script Language > Syntax Element Details >

PctChg or ROC

 

 

 

Category

Multi-Bar Functions

Description

%gain/loss

Syntax

PctChg(expr, count) or ROC(expr, count)

Parameters

expr - formula referencing bar data

count - formula specifying a number of bars

Notes

Either PctChg or ROC can be used as the name of this function.

Return value is equivalent to 100 * (expr / expr[count] - 1).

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC