Skip to content

charton API


charton API / @chart-on/ta / cr

Function: cr() ​

cr(high, low, length, out?): Float64Array

Defined in: ratios.ts:79

CR: how far each bar's high reached above the previous bar's midpoint (high + low) / 2, against how far its low reached below it, summed over length bars, in percent. NaN while the downside sum is 0. Lookback length.

Parameters ​

high ​

Series

low ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array