Technical indicators with possibility of update/add last item (candle) of result. This may be usefull when use realtime (for example WebSockets) data.
- ATR
- Average gain
- Average loss
- Bollinger bands
- EMA
- PMax - https://www.tradingview.com/script/sU9molfV/
- RMA
- RSI
- SMA
- Standard deviation
- Stochastic
- True range
- VWAP
- T3
- VWMA
- FBB - https://www.tradingview.com/script/qIKR3tbN-Fibonacci-Bollinger-Bands/
- WWMA
- VAR
- OTT - https://www.tradingview.com/script/zVhoDQME/
- Highest
- Lowest
- Williams VIX - https://www.tradingview.com/script/og7JPrRA-CM-Williams-Vix-Fix-Finds-Market-Bottoms/
const candles = [
{ time: 0, close: 12.2 },
{ time: 1, close: 12.4 },
{ time: 2, close: 13 }
];
const period = 1;
const rsi = RSI({ candles, period });
console.log(rsi);
/*
{
result: [
{ time: 1, value: 100, candle: { time: 1, close: 12.4 } },
{ time: 2, value: 100, candle: { time: 2, close: 13 } }
],
update: [Function: update]
}
*/
const rsiResult = rsi.update({ time: 2, close: 1 });
console.log(rsiResult);
/*
{ time: 2, value: 0, candle: { time: 2, close: 1 } }
*/