refactor: byPair-Map-Typ in grid-cycle vereinheitlicht (Review Task 1)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 07:48:01 +00:00
parent 713f4efc3c
commit 43b5ed10bd

View File

@@ -90,7 +90,7 @@ export function processGridCycle(
} }
return { pair, c4h, atr: atr(c4h, p.atrPeriod), adx: adx(c4h, p.atrPeriod), next4h }; return { pair, c4h, atr: atr(c4h, p.atrPeriod), adx: adx(c4h, p.atrPeriod), next4h };
}); });
const byPair = new Map(contexts.map((c) => [c.pair, c])); const byPair = new Map<Pair, (typeof contexts)[number]>(contexts.map((c) => [c.pair, c]));
const timeline: { ts: number; pair: Pair; candle: Candle }[] = []; const timeline: { ts: number; pair: Pair; candle: Candle }[] = [];
for (const ctx of contexts) { for (const ctx of contexts) {