Fix graph
This commit is contained in:
@@ -208,6 +208,10 @@ public enum IndicatorType
|
||||
**Update IndicatorRequest.cs:**
|
||||
- Add any new parameter properties to match LightIndicator
|
||||
|
||||
**Update DataController.cs:**
|
||||
- Add any new parameter properties to the `MapScenarioRequestToScenario()` method's `IndicatorBase` initialization
|
||||
- This ensures API requests with indicator parameters are properly mapped to domain objects
|
||||
|
||||
**Update ScenarioHelpers.cs:**
|
||||
- Add case to `BuildIndicator()` method: `IndicatorType.{EnumName} => new {IndicatorName}(indicator.Name, {parameters})`
|
||||
- Add case to `GetSignalType()` method: `IndicatorType.{EnumName} => SignalType.{Type}`
|
||||
@@ -219,6 +223,10 @@ public enum IndicatorType
|
||||
- Update LightIndicator creation in bundle job creation to include all new properties
|
||||
- Ensure all indicator parameters are properly mapped from requests
|
||||
|
||||
**Update DataController.cs:**
|
||||
- Update `MapScenarioRequestToScenario()` method to include all new parameters in the `IndicatorBase` initialization
|
||||
- Ensure all properties from `IndicatorRequest` are properly mapped to `IndicatorBase` (Period, StDev, KFactor, DFactor, TenkanPeriods, etc.)
|
||||
|
||||
**Update GeneticService.cs:**
|
||||
- Add default values to `DefaultIndicatorValues`: `[IndicatorType.{EnumName}] = new() { {param_mappings} }`
|
||||
- Add parameter ranges to `IndicatorParameterRanges`: `[IndicatorType.{EnumName}] = new() { {param_ranges} }`
|
||||
@@ -502,6 +510,7 @@ public class BollingerBandsVolatilityProtection : BollingerBandsBase { /* Volati
|
||||
- [ ] IndicatorRequest.cs properties added
|
||||
- [ ] ScenarioHelpers.cs BuildIndicator and BaseToLight methods updated
|
||||
- [ ] BacktestJobService.cs LightIndicator mapping updated
|
||||
- [ ] DataController.cs MapScenarioRequestToScenario method updated
|
||||
- [ ] GeneticService.cs configurations updated (defaults, ranges, mappings)
|
||||
- [ ] Frontend CustomScenario.tsx updated for new parameters
|
||||
- [ ] Frontend TradeChart.tsx updated for visualization if needed
|
||||
|
||||
Reference in New Issue
Block a user