γγΉγγΌ (also called Haski) is an statistical forecast algorithm conceived to be a stock forecaster.
The Haski's algorithm iterate through all the values in a dataset. The process of finding a pattern for a value is:
-
Calculate the
deviationwhich is defined by the following formula:deviation = |((f / n * 100) - 100|Where:
faverage of a given number of values after the current onenthe current value
-
Check if
deviationis greater than a given number, if it's not the following steps are skipped. -
If
deviationis greater than0an up trend is predicted, otherwise a down trend. -
Then, fetch a number of values previous to the current value and for each each of those values calculate the
back2FrontDeviationdefined by the following formula (note that for the first value theback2FrontDeviationis not calculated):back2FrontDeviation = round(ln(|((h / z) * 100) - 100|))Where:
hone of those previous valueszthe value beforeh
And:
round()round the number to have no decimals
-
Lastly, calculate a hash of all of the
back2FrontDeviationvalues obtained.
I hope that I didn't forget anything π₯²
γγγγͺγοΌ