Navigation: Realtest Script Language > Syntax Element Details >

SinceHigh

 

 

 

 

Category

Multi-Bar Functions

Description

Count of bars since the highest value of an expression in a number of bars

Syntax

SinceHigh(expr, count)

Parameters

expr - data series formula

count - lookback period

Notes

If today's value is the highest (largest) value in count days, the function returns 0. If the high was yesterday, the return value is 1, and so on.

If there are multiple instances of the highest value then the most recent one is used.

This function supports ultra-fast one-pass calculation when used in the Data Section with a non-variable count.

 

 

 

Copyright © 2020-2022 Systematic Solutions, LLC