Add math.js dependency
BlaaSwe opened this issue · comments
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.
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.