The simple-supertrend
is a simple yet powerful tool for determining market trends. It provides a boolean signal indicating whether the market is in an uptrend or downtrend based on the Supertrend indicator.
- Calculates the Supertrend indicator
- Returns a boolean signal for uptrend (true) or downtrend (false)
- Lightweight and easy to integrate
- Based on TradingView's Supertrend Indicator
import supertrend from "simple-supertrend";
const isSupertrendUptrend = supertrend(klines, period, multiplier);
// returns boolean