chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
41 lines (40 loc) • 850 B
TypeScript
export interface IndicatorConfig {
id: string;
type: string;
params: IndicatorParams;
style?: {
color?: string;
lineWidth?: number;
colors?: string[];
opacity?: number;
};
panel?: string;
visible?: boolean;
}
export interface IndicatorData {
id: string;
type: string;
values: Array<{
time: number;
[key: string]: number | null;
}>;
}
export type IndicatorParams = Record<string, any>;
export interface MAClusterLine {
period: number;
color: string;
visible: boolean;
}
export interface IndicatorFieldConfig {
key: string;
label: string;
type: 'number' | 'boolean' | 'select' | 'color';
default: any;
options?: Array<{
label: string;
value: any;
}>;
min?: number;
max?: number;
step?: number;
}