This commit is contained in:
jl777
2019-04-02 09:35:01 -11:00
parent 22ffcfeacc
commit 0ebf3934e4

View File

@@ -2361,7 +2361,7 @@ int64_t komodo_pricesmoothed(int64_t *correlated,int32_t daywindow,int64_t *nonz
sum = den = 0; sum = den = 0;
for (i=0; i<daywindow; i++) for (i=0; i<daywindow; i++)
{ {
sum += (daywindow - i) * (correlated[i] + firstprice*19)/20; sum += (daywindow - i) * (correlated[i] + firstprice*2)/3;
den += (daywindow - i); den += (daywindow - i);
} }
smoothed = (sum / den); smoothed = (sum / den);