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:
2025-11-24 19:43:18 +07:00
parent 478dca51e7
commit 4268626897
16 changed files with 686 additions and 11 deletions

View File

@@ -4965,6 +4965,12 @@ export interface LightIndicator {
cyclePeriods?: number | null;
kFactor?: number | null;
dFactor?: number | null;
tenkanPeriods?: number | null;
kijunPeriods?: number | null;
senkouBPeriods?: number | null;
offsetPeriods?: number | null;
senkouOffset?: number | null;
chikouOffset?: number | null;
}
export enum IndicatorType {
@@ -4985,6 +4991,7 @@ export enum IndicatorType {
SuperTrendCrossEma = "SuperTrendCrossEma",
DualEmaCross = "DualEmaCross",
BollingerBandsPercentBMomentumBreakout = "BollingerBandsPercentBMomentumBreakout",
IchimokuKumoTrend = "IchimokuKumoTrend",
}
export enum SignalType {
@@ -5575,6 +5582,12 @@ export interface IndicatorBase {
cyclePeriods?: number | null;
kFactor?: number | null;
dFactor?: number | null;
tenkanPeriods?: number | null;
kijunPeriods?: number | null;
senkouBPeriods?: number | null;
offsetPeriods?: number | null;
senkouOffset?: number | null;
chikouOffset?: number | null;
user?: User | null;
}
@@ -5606,6 +5619,7 @@ export interface IndicatorsResultBase {
stdDev?: StdDevResult[] | null;
superTrend?: SuperTrendResult[] | null;
chandelierLong?: ChandelierResult[] | null;
ichimoku?: IchimokuResult[] | null;
}
export interface ResultBase {
@@ -5682,6 +5696,14 @@ export interface SuperTrendResult extends ResultBase {
lowerBand?: number | null;
}
export interface IchimokuResult extends ResultBase {
tenkanSen?: number | null;
kijunSen?: number | null;
senkouSpanA?: number | null;
senkouSpanB?: number | null;
chikouSpan?: number | null;
}
export interface GetCandlesWithIndicatorsRequest {
ticker?: Ticker;
startDate?: Date;