Test strategy combo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Managing.Domain.MoneyManagements;
|
||||
using Managing.Domain.Scenarios;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Domain.Bots;
|
||||
@@ -9,7 +10,6 @@ public class TradingBotConfig
|
||||
[Required] public string AccountName { get; set; }
|
||||
[Required] public MoneyManagement MoneyManagement { get; set; }
|
||||
[Required] public Ticker Ticker { get; set; }
|
||||
[Required] public string ScenarioName { get; set; }
|
||||
[Required] public Timeframe Timeframe { get; set; }
|
||||
[Required] public bool IsForWatchingOnly { get; set; }
|
||||
[Required] public decimal BotTradingBalance { get; set; }
|
||||
@@ -20,6 +20,17 @@ public class TradingBotConfig
|
||||
[Required] public bool FlipPosition { get; set; }
|
||||
[Required] public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The scenario object containing all strategies. When provided, this takes precedence over ScenarioName.
|
||||
/// This allows running backtests without requiring scenarios to be saved in the database.
|
||||
/// </summary>
|
||||
public Scenario Scenario { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The scenario name to load from database. Only used when Scenario object is not provided.
|
||||
/// </summary>
|
||||
public string ScenarioName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Maximum time in hours that a position can remain open before being automatically closed.
|
||||
/// If null, time-based position closure is disabled.
|
||||
|
||||
Reference in New Issue
Block a user