Add IchimokuKumoTrend indicator support across application
- Introduced IchimokuKumoTrend indicator in GeneticService with configuration settings for tenkanPeriods, kijunPeriods, senkouBPeriods, offsetPeriods, senkouOffset, and chikouOffset. - Updated ScenarioHelpers to handle creation and validation of the new indicator type. - Enhanced CustomScenario, backtest, and scenario pages to include IchimokuKumoTrend in indicator lists and parameter mappings. - Modified API and types to reflect the addition of the new indicator in relevant enums and mappings.
This commit is contained in:
@@ -108,6 +108,13 @@ public class GeneticService : IGeneticService
|
||||
{
|
||||
["period"] = 20.0,
|
||||
["multiplier"] = 2.0
|
||||
},
|
||||
[IndicatorType.IchimokuKumoTrend] = new()
|
||||
{
|
||||
["tenkanPeriods"] = 9.0,
|
||||
["kijunPeriods"] = 26.0,
|
||||
["senkouBPeriods"] = 52.0,
|
||||
["offsetPeriods"] = 26.0
|
||||
}
|
||||
};
|
||||
|
||||
@@ -196,6 +203,13 @@ public class GeneticService : IGeneticService
|
||||
{
|
||||
["period"] = (5.0, 50.0),
|
||||
["multiplier"] = (1.0, 5.0)
|
||||
},
|
||||
[IndicatorType.IchimokuKumoTrend] = new()
|
||||
{
|
||||
["tenkanPeriods"] = (5.0, 20.0),
|
||||
["kijunPeriods"] = (10.0, 40.0),
|
||||
["senkouBPeriods"] = (20.0, 80.0),
|
||||
["offsetPeriods"] = (10.0, 50.0)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -217,7 +231,8 @@ public class GeneticService : IGeneticService
|
||||
[IndicatorType.StochasticCross] = ["stochPeriods", "signalPeriods", "smoothPeriods", "kFactor", "dFactor"],
|
||||
[IndicatorType.Stc] = ["cyclePeriods", "fastPeriods", "slowPeriods"],
|
||||
[IndicatorType.LaggingStc] = ["cyclePeriods", "fastPeriods", "slowPeriods"],
|
||||
[IndicatorType.BollingerBandsPercentBMomentumBreakout] = ["period", "multiplier"]
|
||||
[IndicatorType.BollingerBandsPercentBMomentumBreakout] = ["period", "multiplier"],
|
||||
[IndicatorType.IchimokuKumoTrend] = ["tenkanPeriods", "kijunPeriods", "senkouBPeriods", "offsetPeriods"]
|
||||
};
|
||||
|
||||
public GeneticService(
|
||||
|
||||
Reference in New Issue
Block a user