From 13a1463f02ea6358a49216bfff379babb60253a3 Mon Sep 17 00:00:00 2001 From: dimxy Date: Mon, 29 Apr 2019 21:23:46 +0500 Subject: [PATCH] removed clearing precision to 0.0001 --- src/cc/prices.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index 4be0afd4e..302777f84 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -716,7 +716,10 @@ int64_t prices_syntheticprice(std::vector vec, int32_t height, int32_t if (errcode != 0) break; - std::cerr << "top pricestack[depth-1=" << depth-1 << "]=" << pricestack[depth-1] << std::endl; + if( depth >= 0 ) + std::cerr << "top pricestack[depth-1=" << depth-1 << "]=" << pricestack[depth-1] << std::endl; + else + std::cerr << "pricestack empty" << std::endl; } free(pricedata); @@ -759,8 +762,8 @@ int32_t prices_syntheticprofits(int64_t &costbasis, int32_t firstheight, int32_t } // clear lowest positions: - price /= PRICES_POINTFACTOR; - price *= PRICES_POINTFACTOR; + //price /= PRICES_POINTFACTOR; + //price *= PRICES_POINTFACTOR; outprice = price; if (minmax) { // if we are within day window, set temp costbasis to max (or min) price value