Navigation: Realtest Script Language > Syntax Element Details >

PeakBars

 

 

 

 

Category

Multi-Bar Functions

Description

Count of bars since the nth most recent peak of a series of prices or other values

Syntax

PeakBars(expr, pctChg, nth {1})

Parameters

expr - data series formula

pctChg - percent change required to delimit peaks and troughs

nth - which peak to locate (1, i.e., most recent if omitted)

Notes

The definition of a Peak is the highest value which is then followed by one or more values that are at least n% below that most recent high.

See Peak for important additional information about how these functions work in RealTest.

 

 

 

Copyright © 2020-2022 Systematic Solutions, LLC