clear lowest pos in price
This commit is contained in:
@@ -629,6 +629,10 @@ int64_t prices_syntheticprofits(int64_t &costbasis, int32_t firstheight, int32_t
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clear lowest positions:
|
||||||
|
price /= 10000;
|
||||||
|
price *= 10000;
|
||||||
|
|
||||||
if (minmax) { // if we are within day window, set costbasis to max or min price value
|
if (minmax) { // if we are within day window, set costbasis to max or min price value
|
||||||
if (leverage > 0 && price > costbasis) {
|
if (leverage > 0 && price > costbasis) {
|
||||||
costbasis = price; // set temp costbasis
|
costbasis = price; // set temp costbasis
|
||||||
|
|||||||
Reference in New Issue
Block a user