진단: _buildIchimokuCloudData SpanA/SpanB 원본 데이터 로그

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-02 22:02:14 +09:00
parent a9806d3f5e
commit 27e6f644e8
+11
View File
@@ -1397,6 +1397,17 @@ export class ChartManager {
.filter(p => p.value != null && !isNaN(p.value) && bMap.has(p.time)) .filter(p => p.value != null && !isNaN(p.value) && bMap.has(p.time))
.map(p => ({ time: p.time as number, spanA: p.value, spanB: bMap.get(p.time)! })); .map(p => ({ time: p.time as number, spanA: p.value, spanB: bMap.get(p.time)! }));
// 진단 로그: spanA/spanB 원본 값 비교
const aValid = (spanAPlot ?? []).filter(p => p.value != null && !isNaN(p.value));
const bValid = (spanBPlot ?? []).filter(p => p.value != null && !isNaN(p.value));
const aLast3 = aValid.slice(-3).map(p => p.value);
const bLast3 = bValid.slice(-3).map(p => p.value);
const histLast3 = historical.slice(-3).map(p => ({ a: p.spanA, b: p.spanB, eq: p.spanA === p.spanB }));
const maxHistDiff = historical.length > 0 ? Math.max(...historical.map(p => Math.abs(p.spanA - p.spanB))) : 0;
console.log('[IchimokuCloud] BUILD RAW: spanA last3=', aLast3, 'spanB last3=', bLast3,
'| hist last3=', JSON.stringify(histLast3), '| maxDiff=', maxHistDiff,
'| histLen=', historical.length, 'sameRef=', spanAPlot === spanBPlot);
// 미래 구름 // 미래 구름
const N = this.rawBars.length; const N = this.rawBars.length;
if (N < 2) return historical; if (N < 2) return historical;