Skip to content

charton API


charton API / @chart-on/ta / connorsRsi

Function: connorsRsi() ​

connorsRsi(values, rsiLength, streakLength, rankLength, out?, state?): Float64Array

Defined in: composite.ts:168

Connors RSI, 0 to 100: the average of an rsi of the values over rsiLength, an rsi over streakLength of the up/down streak (+n after n higher closes in a row, -n after n lower, 0 when unchanged), and the percent of the last rankLength one-bar changes strictly below the latest (a tie does not count). Lookback max(rsiLength, streakLength, rankLength + 1). A NaN input restarts the streak. A one-bar change has no value after a zero close, so the rank is NaN while its window holds one.

Pass state to keep the parts for connorsRsiAt.

Parameters ​

values ​

Series

rsiLength ​

number

streakLength ​

number

rankLength ​

number

out? ​

Float64Array<ArrayBufferLike>

state? ​

ConnorsRsiState

Returns ​

Float64Array