To avoid blocking the main thread and improve performance, I would suggest optionally calculating each indicator in a separate worker thread.
This is an idea
const sma = new SMA(4, { useWorker: true, });
Reference
https://nodejs.org/api/worker_threads.html