Genetics front (#29)

* Add Genetics js

* Fix some error for genetics

* Update removed backtest

* Fixes
This commit is contained in:
Oda
2025-07-08 20:06:09 +07:00
committed by GitHub
parent 7a74c44739
commit 3439f13156
12 changed files with 2014 additions and 18 deletions

View File

@@ -1504,7 +1504,7 @@ public class TradingBot : Bot, ITradingBot
/// <returns>True if the position has exceeded the time limit, false otherwise</returns>
private bool HasPositionExceededTimeLimit(Position position, DateTime currentTime)
{
if (!Config.MaxPositionTimeHours.HasValue)
if (!Config.MaxPositionTimeHours.HasValue || Config.MaxPositionTimeHours.Value <= 0)
{
return false; // Time-based closure is disabled
}