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