Update bot config on front and back
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user