Add Bollinger Bands Volatility Protection indicator support
- Introduced BollingerBandsVolatilityProtection indicator in GeneticService with configuration settings for period and standard deviation (stdev). - Updated ScenarioHelpers to handle creation and validation of the new indicator type. - Enhanced CustomScenario, backtest, and scenario pages to include BollingerBandsVolatilityProtection in indicator lists and parameter mappings. - Modified API and types to reflect the addition of the new indicator in relevant enums and mappings. - Updated frontend components to support new parameters and visualization for Bollinger Bands.
This commit is contained in:
@@ -155,16 +155,24 @@ public class JobService
|
||||
{
|
||||
Indicators = sReq.Indicators?.Select(ind => new LightIndicator(ind.Name, ind.Type)
|
||||
{
|
||||
SignalType = ind.SignalType,
|
||||
MinimumHistory = ind.MinimumHistory,
|
||||
Period = ind.Period,
|
||||
FastPeriods = ind.FastPeriods,
|
||||
SlowPeriods = ind.SlowPeriods,
|
||||
SignalPeriods = ind.SignalPeriods,
|
||||
Multiplier = ind.Multiplier,
|
||||
StDev = ind.StDev,
|
||||
SmoothPeriods = ind.SmoothPeriods,
|
||||
StochPeriods = ind.StochPeriods,
|
||||
CyclePeriods = ind.CyclePeriods
|
||||
CyclePeriods = ind.CyclePeriods,
|
||||
KFactor = ind.KFactor,
|
||||
DFactor = ind.DFactor,
|
||||
TenkanPeriods = ind.TenkanPeriods,
|
||||
KijunPeriods = ind.KijunPeriods,
|
||||
SenkouBPeriods = ind.SenkouBPeriods,
|
||||
OffsetPeriods = ind.OffsetPeriods,
|
||||
SenkouOffset = ind.SenkouOffset,
|
||||
ChikouOffset = ind.ChikouOffset
|
||||
}).ToList() ?? new List<LightIndicator>()
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user