|
|
@@ -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
|