Introduction
Automation Platform
Botmain DAO
Building Trading Strategies
API References Dev Live Stream
@botmain/indicators / Class

RelativeStrengthIndex

No documentation has been provided.

Constructor

The default constructor will set the period to 14

Presentation
constructor(
	
): RelativeStrengthIndex;

Properties

NameTypeDescription
historyCapacity
inherited from BaseIndicator
number

The maximum history held by the indicator. As new data comes in only this many points are kept.

historyCount
inherited from BaseIndicator
number

The number of historical points currently held by the indicator. Will never be larger than historyCapacity.

last
inherited from BaseIndicator
T
values
inherited from BaseIndicator
T[]

Methods

add()

inherited from BaseBarsIndicator
No documentation has been provided.
Presentation
add(bar: Bar): void;
Parameters
NameTypeDescription
bar
Bar

Adds the latest OHLCV bar to the indicator. Normally called for each indicator in onBarClose()

Returns

void