Update config
This commit is contained in:
@@ -73,7 +73,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = true,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
};
|
||||
|
||||
// Act
|
||||
@@ -120,7 +123,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = false,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
};
|
||||
|
||||
// Act
|
||||
@@ -166,7 +172,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = false,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
};
|
||||
|
||||
// Act
|
||||
@@ -253,7 +262,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = false,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
}, candles, null).Result,
|
||||
BotType.FlippingBot => _backtester.RunFlippingBotBacktest(new TradingBotConfig
|
||||
{
|
||||
@@ -269,7 +281,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = true,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
}, candles, null).Result,
|
||||
_ => throw new NotImplementedException(),
|
||||
};
|
||||
@@ -389,7 +404,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = false,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
}, candles, null).Result,
|
||||
BotType.FlippingBot => _backtester.RunFlippingBotBacktest(new TradingBotConfig
|
||||
{
|
||||
@@ -405,7 +423,10 @@ namespace Managing.Application.Tests
|
||||
CooldownPeriod = 1,
|
||||
MaxLossStreak = 0,
|
||||
FlipPosition = true,
|
||||
Name = "Test"
|
||||
Name = "Test",
|
||||
FlipOnlyWhenInProfit = true,
|
||||
MaxPositionTimeHours = null,
|
||||
CloseEarlyWhenProfitable = false
|
||||
}, candles, null).Result,
|
||||
_ => throw new NotImplementedException(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user