Navigation: Realtest Script Language > Syntax Element Categories >

Multi-Bar Functions

 

 

 

Calculate any expression across multiple bars of any data series going back in time from the current bar. To start at an earlier bar, use the function()[offset] syntax. Any parameter of a function, as well as the offset (if provided) can be a literal number, a single value, or a formula.

Avg or MA - simple moving average

Correl - correlation of two series

CountTrue - count of all bars for which expression was true

HAvg or HMA - Hull moving average

Highest or HHV - highest value

LinReg - linear regression

Lowest or LLV - lowest value

Median - median of values

PctChg - %gain/loss

Percentile - percent rank among values

PercentileN - value with nth percent rank

Rank - numeric rank among values

RankN - value with nth numeric rank

RsiF - RSI as a function

SinceHigh - bars since highest value

SinceLow - bars since lowest value

SinceTrue - bars since expression was true (0 if now, -1 if never)

Slope - slope of linear regression

Spearman - Spearman's Rank Correlation

StdDev - standard deviation

Sum - sum of values

SumSQ - sum of squared values

TrueInRow - count of bars in a row for which expression was true

UntilTrue - bars until expression will be true (0 if now, -1 if never)

WAvg or WMA - weighted moving average

XAvg or EMA - exponential moving average

YInt - y-intercept of linear regression

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC