Add StochasticCross indicator support in CustomScenario and TradeChart components

- Implemented StochasticCross indicator in CustomScenario with associated parameters and labels.
- Enhanced TradeChart to visualize StochasticCross data, including %K and %D series.
- Updated API and types to include kFactor and dFactor properties for StochasticCross.
- Modified backtest and scenario pages to incorporate StochasticCross in indicator lists and parameter mappings.
This commit is contained in:
2025-11-24 11:04:05 +07:00
parent 43d7c5c929
commit 18f868a221
9 changed files with 685 additions and 15 deletions

View File

@@ -4963,6 +4963,8 @@ export interface LightIndicator {
smoothPeriods?: number | null;
stochPeriods?: number | null;
cyclePeriods?: number | null;
kFactor?: number | null;
dFactor?: number | null;
}
export enum IndicatorType {
@@ -4976,6 +4978,7 @@ export enum IndicatorType {
EmaTrend = "EmaTrend",
Composite = "Composite",
StochRsiTrend = "StochRsiTrend",
StochasticCross = "StochasticCross",
Stc = "Stc",
StDev = "StDev",
LaggingStc = "LaggingStc",
@@ -5569,6 +5572,8 @@ export interface IndicatorBase {
smoothPeriods?: number | null;
stochPeriods?: number | null;
cyclePeriods?: number | null;
kFactor?: number | null;
dFactor?: number | null;
user?: User | null;
}