Quellcode durchsuchen

时损逻辑修复

龚成明 vor 2 Jahren
Ursprung
Commit
01ee1a1512
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      scripts/one-pro.js

+ 1 - 1
scripts/one-pro.js

@@ -20,7 +20,7 @@ const holdingHandler = async function(context, task, token, pair) {
   const isTimeOverStopWin = token.BinancePrice > token.orderPrice && nowTimestamp > token.orderTime + config.stopWinTimeOverHours * TimeKit.ONE_HOUR
 
   const isHardStopLoss = token.BinancePrice < (token.orderPrice * (100 - config.hardStopLossPercentage) / 100)
-  const isTimeOverStopLoss = token.BinancePrice < token.orderPrice && nowTimestamp < token.orderTime + config.stopLossTimeOverHours * TimeKit.ONE_HOUR
+  const isTimeOverStopLoss = token.BinancePrice < token.orderPrice && nowTimestamp > token.orderTime + config.stopLossTimeOverHours * TimeKit.ONE_HOUR
 
   const isStopWin = isHardStopWin || isTimeOverStopWin
   const isStopLoss = isHardStopLoss || isTimeOverStopLoss