Skip to content

Function: superTrend()

ts
function superTrend(
   high, 
   low, 
   close, 
   period?, 
   mult?): SuperTrend;

Defined in: finance/indicators.ts:339

SuperTrend (ATR bands with trend-following flip). trend is the line; direction is +1 (up / support below price) or −1 (down / resistance above price).

Parameters

ParameterTypeDefault value
highArrayLike<number>undefined
lowArrayLike<number>undefined
closeArrayLike<number>undefined
periodnumber10
multnumber3

Returns

SuperTrend

MIT licensed. WebGL2 required.