Clean a bit and add prod env to front
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Managing.Application.Backtesting
|
||||
bool isForWatchingOnly = false,
|
||||
bool save = false,
|
||||
List<Candle>? initialCandles = null,
|
||||
decimal cooldownPeriod = 1,
|
||||
int cooldownPeriod = 1,
|
||||
int maxLossStreak = 0)
|
||||
{
|
||||
var config = new TradingBotConfig
|
||||
@@ -121,7 +121,7 @@ namespace Managing.Application.Backtesting
|
||||
bool isForWatchingOnly = false,
|
||||
bool save = false,
|
||||
List<Candle>? initialCandles = null,
|
||||
decimal cooldownPeriod = 1,
|
||||
int cooldownPeriod = 1,
|
||||
int maxLossStreak = 0)
|
||||
{
|
||||
var config = new TradingBotConfig
|
||||
@@ -172,7 +172,7 @@ namespace Managing.Application.Backtesting
|
||||
List<Candle> candles,
|
||||
decimal balance,
|
||||
User user = null,
|
||||
decimal cooldownPeriod = 1,
|
||||
int cooldownPeriod = 1,
|
||||
int maxLossStreak = 0)
|
||||
{
|
||||
var ticker = MiscExtensions.ParseEnum<Ticker>(candles.FirstOrDefault().Ticker);
|
||||
@@ -214,7 +214,7 @@ namespace Managing.Application.Backtesting
|
||||
List<Candle> candles,
|
||||
decimal balance,
|
||||
User user = null,
|
||||
decimal cooldownPeriod = 1,
|
||||
int cooldownPeriod = 1,
|
||||
int maxLossStreak = 0)
|
||||
{
|
||||
var ticker = MiscExtensions.ParseEnum<Ticker>(candles.FirstOrDefault().Ticker);
|
||||
|
||||
@@ -1008,6 +1008,7 @@ public class TradingBot : Bot, ITradingBot
|
||||
BotTradingBalance = data.BotTradingBalance,
|
||||
BotType = data.BotType,
|
||||
CooldownPeriod = data.CooldownPeriod,
|
||||
MaxLossStreak = data.MaxLossStreak,
|
||||
Name = data.Name
|
||||
};
|
||||
|
||||
@@ -1077,5 +1078,6 @@ public class TradingBotBackup
|
||||
public MoneyManagement MoneyManagement { get; set; }
|
||||
public DateTime StartupTime { get; set; }
|
||||
public decimal BotTradingBalance { get; set; }
|
||||
public decimal CooldownPeriod { get; set; }
|
||||
public int CooldownPeriod { get; set; }
|
||||
public int MaxLossStreak { get; set; }
|
||||
}
|
||||
@@ -15,7 +15,7 @@ public class TradingBotConfig
|
||||
public bool FlipPosition { get; set; }
|
||||
public BotType BotType { get; set; }
|
||||
public decimal BotTradingBalance { get; set; }
|
||||
public decimal CooldownPeriod { get; set; } = 1;
|
||||
public int MaxLossStreak { get; set; } = 0; // 0 means no limit
|
||||
public int CooldownPeriod { get; set; } = 1;
|
||||
public int MaxLossStreak { get; set; } = 0;
|
||||
public string Name { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user