Add BollingerBandsPercentBMomentumBreakout indicator support across application
- Introduced BollingerBandsPercentBMomentumBreakout indicator in GeneticService with configuration settings for period and multiplier. - Updated ScenarioHelpers to handle creation and validation of the new indicator type. - Enhanced CustomScenario, backtest, and scenario pages to include BollingerBandsPercentBMomentumBreakout 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:
@@ -103,6 +103,11 @@ public class GeneticService : IGeneticService
|
||||
["cyclePeriods"] = 10.0,
|
||||
["fastPeriods"] = 12.0,
|
||||
["slowPeriods"] = 26.0
|
||||
},
|
||||
[IndicatorType.BollingerBandsPercentBMomentumBreakout] = new()
|
||||
{
|
||||
["period"] = 20.0,
|
||||
["multiplier"] = 2.0
|
||||
}
|
||||
};
|
||||
|
||||
@@ -186,6 +191,11 @@ public class GeneticService : IGeneticService
|
||||
["cyclePeriods"] = (5.0, 30.0),
|
||||
["fastPeriods"] = (5.0, 50.0),
|
||||
["slowPeriods"] = (10.0, 100.0)
|
||||
},
|
||||
[IndicatorType.BollingerBandsPercentBMomentumBreakout] = new()
|
||||
{
|
||||
["period"] = (5.0, 50.0),
|
||||
["multiplier"] = (1.0, 5.0)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -206,7 +216,8 @@ public class GeneticService : IGeneticService
|
||||
[IndicatorType.StochRsiTrend] = ["period", "stochPeriods", "signalPeriods", "smoothPeriods"],
|
||||
[IndicatorType.StochasticCross] = ["stochPeriods", "signalPeriods", "smoothPeriods", "kFactor", "dFactor"],
|
||||
[IndicatorType.Stc] = ["cyclePeriods", "fastPeriods", "slowPeriods"],
|
||||
[IndicatorType.LaggingStc] = ["cyclePeriods", "fastPeriods", "slowPeriods"]
|
||||
[IndicatorType.LaggingStc] = ["cyclePeriods", "fastPeriods", "slowPeriods"],
|
||||
[IndicatorType.BollingerBandsPercentBMomentumBreakout] = ["period", "multiplier"]
|
||||
};
|
||||
|
||||
public GeneticService(
|
||||
|
||||
Reference in New Issue
Block a user