Commit df9ede87 by zihan

调整放弃订单的规则

parent 87e079fa
......@@ -150,7 +150,7 @@ class BiboxStrategy3 extends Strategy3 {
this.lastPrice = sellPrices[0][0];
this.samePriceCount = 0;
}
if(possibleLoss*100 > 3 && this.samePriceCount <3){
if(possibleLoss*100-totalMarginRate > 3){
console.log(`此单风险过高,放弃。买一:${sellPrices[0][0]},买二:${sellPrices[1][0]},损失率${(possibleLoss * 100).toFixed(4)},利差:${totalMarginRate.toFixed(4)}`);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment