Update bot config on front and back

This commit is contained in:
2025-06-04 15:42:21 +07:00
parent f41af96406
commit 756cd5fb11
14 changed files with 422 additions and 369 deletions

View File

@@ -26,6 +26,14 @@ public class TradingBotConfig
/// </summary>
public decimal? MaxPositionTimeHours { get; set; }
/// <summary>
/// When MaxPositionTimeHours is set and this is true, the position will be closed as soon as
/// it reaches breakeven or profit, rather than waiting for the full time duration.
/// If false, the position will only be closed when MaxPositionTimeHours is reached.
/// Default is false to maintain existing behavior.
/// </summary>
public bool CloseEarlyWhenProfitable { get; set; } = false;
/// <summary>
/// If true, positions will only be flipped when the current position is in profit.
/// If false, positions will be flipped regardless of profit status.