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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user