Update indicators range
This commit is contained in:
@@ -95,19 +95,19 @@ public class GeneticService : IGeneticService
|
||||
{
|
||||
[IndicatorType.RsiDivergence] = new()
|
||||
{
|
||||
["period"] = (5.0, 50.0)
|
||||
["period"] = (6.0, 70.0)
|
||||
},
|
||||
[IndicatorType.RsiDivergenceConfirm] = new()
|
||||
{
|
||||
["period"] = (5.0, 50.0)
|
||||
["period"] = (6.0, 70.0)
|
||||
},
|
||||
[IndicatorType.EmaCross] = new()
|
||||
{
|
||||
["period"] = (5.0, 200.0)
|
||||
["period"] = (10.0, 300.0)
|
||||
},
|
||||
[IndicatorType.EmaTrend] = new()
|
||||
{
|
||||
["period"] = (5.0, 200.0)
|
||||
["period"] = (10.0, 300.0)
|
||||
},
|
||||
[IndicatorType.StDev] = new()
|
||||
{
|
||||
@@ -119,9 +119,9 @@ public class GeneticService : IGeneticService
|
||||
},
|
||||
[IndicatorType.MacdCross] = new()
|
||||
{
|
||||
["fastPeriods"] = (10.0, 50.0),
|
||||
["slowPeriods"] = (20.0, 100.0),
|
||||
["signalPeriods"] = (5.0, 20.0)
|
||||
["fastPeriods"] = (10.0, 70.0),
|
||||
["slowPeriods"] = (20.0, 120.0),
|
||||
["signalPeriods"] = (5.0, 50.0)
|
||||
},
|
||||
[IndicatorType.DualEmaCross] = new()
|
||||
{
|
||||
@@ -152,9 +152,9 @@ public class GeneticService : IGeneticService
|
||||
},
|
||||
[IndicatorType.Stc] = new()
|
||||
{
|
||||
["cyclePeriods"] = (5.0, 30.0),
|
||||
["fastPeriods"] = (5.0, 50.0),
|
||||
["slowPeriods"] = (10.0, 100.0)
|
||||
["cyclePeriods"] = (5.0, 50.0),
|
||||
["fastPeriods"] = (5.0, 70.0),
|
||||
["slowPeriods"] = (10.0, 120.0)
|
||||
},
|
||||
[IndicatorType.LaggingStc] = new()
|
||||
{
|
||||
@@ -813,7 +813,7 @@ public class TradingBotFitness : IFitness
|
||||
).Result;
|
||||
|
||||
// Calculate multi-objective fitness based on backtest results
|
||||
var fitness = CalculateFitness(backtest, config);
|
||||
var fitness = CalculateFitness(backtest, config);
|
||||
|
||||
return fitness;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user