QPACE:
AlgoAlpha:
- Adaptive Schaff Trend Cycle (STC)
- Amazing Oscillator (AO)
- Exponential Trend
- Supertrended RSI
- Triple Smoothed Signals
pip install qpace algoalphaimport qpace as qp
import algoalpha as aa
ohlcv = qp.Ohlcv.read_csv("btc_csv", qp.Timeframe.Days(1))
ctx = qp.Ctx(ohlcv, qp.Sym.BTC_USD())
res = aa.supertrended_rsi.main(ctx.copy())
print(res["locals"]["rsi_value"][0:30])npm add qpace algoalphaNode.js:
import * as qp from "qpace/node";
import * as aa from "algoalpha/node";
const ohlcv = qp.Ohlcv.readCsv("btc_csv", qp.Timeframe.Days(1))
const ctx = qp.Ctx(ohlcv, qp.BTC_USD())
const res = aa.supertrended_rsi.main(ctx.copy())
console.log(res.locals.rsi_value.slice(0, 30))Browser:
import * as qp from "qpace/web";
import * as aa from "algoalpha/web";
window.onload = async () => {
// Initialize WASM Modules
{
await qp.init();
await qp.ta.init();
await aa.init();
}
const ohlcv = qp.Ohlcv.fromBars([ ... ])
const ctx = qp.Ctx(ohlcv, qp.BTC_USD())
const res = aa.supertrended_rsi.main(ctx.copy())
console.log(res.locals.rsi_value.slice(0, 30))
}