전략평가 매매시그널 표시안되는 문제 수정

This commit is contained in:
Macbook
2026-06-13 00:00:39 +09:00
parent 2c0570c95e
commit 24128e6a0a
7 changed files with 55 additions and 90 deletions
+5
View File
@@ -531,6 +531,11 @@ export class ChartManager {
if (this._auxIndicatorOnlyLayout) {
this.syncChartOverlayVisibility();
}
// setData 시 마커 플러그인만 dispose 되고 backtestMarkers 배열은 유지됨 — 재적용
if (this.backtestMarkers.length > 0 || this.liveStrategyMarkers.length > 0) {
this._reapplyAllPatternMarkers();
}
}
/**
+3 -2
View File
@@ -139,10 +139,11 @@ export async function fetchBacktestHistoryCandles(
const raw = (await res.json()) as OHLCVBar[];
if (raw.length === 0) break;
const before = byTime.size;
for (const b of raw) byTime.set(b.time, b);
remaining -= raw.length;
if (byTime.size === before) break;
if (raw.length < batch) break;
remaining -= raw.length;
const oldest = raw[0]?.time;
if (!oldest || oldest <= 0) break;