Cached data from fetch — survives mode/indicator changes
| 47 | |
| 48 | /** Cached data from fetch — survives mode/indicator changes */ |
| 49 | interface ChartData { |
| 50 | key: string; // "marketId:timeRange" to identify cache validity |
| 51 | multi: { label: string; points: { time: number; value: number }[] }[] | null; |
| 52 | bars: OHLCBar[]; |
| 53 | } |
| 54 | |
| 55 | function computeMA(bars: OHLCBar[], period: number): { time: number; value: number }[] { |
| 56 | const result: { time: number; value: number }[] = []; |
nothing calls this directly
no outgoing calls
no test coverage detected