Skip to content

API Reference


API Reference / supertrend

Function: supertrend() ​

supertrend(bars, __namedParameters?): SupertrendResult

Defined in: src/ta/indicators.ts:360

Supertrend — ATR bands that flip direction when price closes through them.

Parameters ​

bars ​

OhlcBar[]

__namedParameters? ​

period? ​

number = 10

multiplier? ​

number = 3

Returns ​

SupertrendResult

Community project — not affiliated with Dhan. MIT License.