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 - formula referencing bar data

count - formula specifying a number of bars

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.

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC