The resource loading... loading...

How do you calculate slope in js?

Author: The bone knife, Created: 2021-03-18 20:44:55, Updated:

My language has a very simple SLOPE. Can I ask if there are any good functions in the js language that I can use?

Thank you.


More

The bone knifeIf you have a question about a ready-made function, you can find it in the API documentation: The index of the function in talib library is: - Statistical functions Statistical functions -LINEARREG_SLOPE Linear regression slope is the slope of the linear regression. -LINEARREG_SLOPE ((Records[Close], Time Period = 14) = Array ((outReal) is the name of the file in the array. But it doesn't work, can you just call the function directly?

The grassYou can write it directly.