Test
This commit is contained in:
@@ -2250,8 +2250,8 @@ int64_t komodo_pricecorrelated(uint64_t seed,int32_t ind,uint32_t *rawprices,int
|
|||||||
sum = correlation = 0;
|
sum = correlation = 0;
|
||||||
i = (j + seed) % daywindow;
|
i = (j + seed) % daywindow;
|
||||||
refprice = rawprices[i] * (ind < 36 ? 10000 : 1);
|
refprice = rawprices[i] * (ind < 36 ? 10000 : 1);
|
||||||
highprice = ((int64_t)refprice * (COIN + PRICES_MAXCHANGE/10)) / COIN;
|
highprice = ((int64_t)refprice * (COIN + PRICES_MAXCHANGE)) / COIN;
|
||||||
lowprice = ((int64_t)refprice * (COIN - PRICES_MAXCHANGE/10)) / COIN;
|
lowprice = ((int64_t)refprice * (COIN - PRICES_MAXCHANGE)) / COIN;
|
||||||
if ( highprice == refprice )
|
if ( highprice == refprice )
|
||||||
highprice++;
|
highprice++;
|
||||||
if ( lowprice == refprice )
|
if ( lowprice == refprice )
|
||||||
|
|||||||
Reference in New Issue
Block a user