Superalgos / Superalgos

Free, open-source crypto trading bot, automated bitcoin / cryptocurrency trading software, algorithmic trading bots. Visually design your crypto trading bot, leveraging an integrated charting system, data-mining, backtesting, paper trading, and multi-server crypto bot deployments.

Home Page:https://www.superalgos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add math.js dependency

BlaaSwe opened this issue · comments

commented

Problem
When building indicators it sometimes relies upon advanced math the is not natively supported by JavaScript, such mathematical problems could include multiplication of matrices. Today that code has to be type in the indicator/data mine and can't be reused in another indicator/data mine except for ctrl+c / ctrl+v.

Proposed solution
Add math.js as a dependency in SA, this would make it much easier to create advanced indicators without the need of coding the mathematics.
To easily access the various functions in math.js the required function for the indicator/data mine could be added by simply using code like:

const { sqrt } = require('mathjs')
const { qr } = require('mathjs')

Alternative or addtion
jstat is another great library as a complement, this one has more statistical test.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.