Genetics front (#29)
* Add Genetics js * Fix some error for genetics * Update removed backtest * Fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user