Allow more variance

This commit is contained in:
jl777
2019-04-02 04:19:05 -11:00
parent 5058732d55
commit 2b1dff7b0c

View File

@@ -2244,8 +2244,8 @@ int64_t komodo_pricecorrelated(uint64_t seed,int32_t ind,uint32_t *rawprices,int
correlation = 0;
i = (j + seed) % daywindow;
refprice = rawprices[i];
highprice = (refprice * (COIN + PRICES_MAXCHANGE)) / COIN;
lowprice = (refprice * (COIN - PRICES_MAXCHANGE)) / COIN;
highprice = (refprice * (COIN + PRICES_MAXCHANGE*2)) / COIN;
lowprice = (refprice * (COIN - PRICES_MAXCHANGE*2)) / COIN;
if ( highprice == refprice )
highprice++;
if ( lowprice == refprice )