|
@@ -503,7 +503,7 @@ impl Predictor {
|
|
|
// 硬止损,开单不久之后就在亏
|
|
// 硬止损,开单不久之后就在亏
|
|
|
(self.profit_high < dec!(0.001) && self.profit < dec!(-0.005))
|
|
(self.profit_high < dec!(0.001) && self.profit < dec!(-0.005))
|
|
|
// 浮动止损,如果profit_high较高产生了利润,但后续不给力
|
|
// 浮动止损,如果profit_high较高产生了利润,但后续不给力
|
|
|
- || (self.profit_high - self.profit > dec!(0.01) && self.profit < Decimal::ZERO)
|
|
|
|
|
|
|
+ || (self.profit_high - self.profit > dec!(0.0075) && self.profit < Decimal::ZERO)
|
|
|
// 利润较大时,追踪止盈
|
|
// 利润较大时,追踪止盈
|
|
|
|| (self.profit > dec!(0.005) && self.profit < self.profit_high * dec!(0.75))
|
|
|| (self.profit > dec!(0.005) && self.profit < self.profit_high * dec!(0.75))
|
|
|
);
|
|
);
|