ta.supertrend
Supertrend: returns [supertrend, direction]; direction is -1 in an uptrend and 1 in a downtrend.
ta.supertrend(factor: float, atrPeriod: simple int) -> series [float, int]
Parameters
factorfloat: Multiple of the ATR between hl2 and the bands the line follows.atrPeriodsimple int: Bars of the ATR (Wilder's average of the true range); a literal or an input, 1 to 5000.
Example
[st, dir] = ta.supertrend(3, 10)