chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
50 lines (49 loc) • 1.31 kB
TypeScript
import { Chart } from '../Chart';
import { StopLossOptions, StopLossLine } from '../../types/stopLoss';
/**
* 스톱로스 관련 메서드들을 모아놓은 헬퍼 클래스
*/
export declare class ChartStopLossHelper {
private chart;
constructor(chart: Chart);
/**
* 스톱로스 라인 추가
*/
addStopLossLine(price: number, options?: StopLossOptions): string;
/**
* 스톱로스 라인 제거
*/
removeStopLossLine(id: string): boolean;
/**
* 모든 스톱로스 라인 제거
*/
clearStopLossLines(): void;
/**
* 스톱로스 라인 업데이트
*/
updateStopLossLine(id: string, updates: Partial<StopLossOptions & {
price?: number;
}>): boolean;
/**
* 모든 스톱로스 라인 가져오기
*/
getStopLossLines(): StopLossLine[];
/**
* 평단선 추가 (스톱로스 매니저 활용)
*/
addAveragePriceLine(price: number, options?: {
label?: string;
color?: string;
lineWidth?: number;
dashed?: boolean;
}): string;
/**
* 평단선 업데이트
*/
updateAveragePriceLine(id: string, updates: {
price?: number;
label?: string;
color?: string;
lineWidth?: number;
}): boolean;
}