전략평가 메뉴 추가
This commit is contained in:
@@ -61,7 +61,7 @@ export const SIGNAL_SNAPSHOT_VISIBLE_BARS = SIGNAL_SNAPSHOT_CONTEXT_BARS * 2 + 1
|
||||
/** CCI·RSI 등 보조지표 계산용 선행 워밍업 봉 (표시 범위와 별도) */
|
||||
const SIGNAL_SNAPSHOT_WARMUP_BARS = 50;
|
||||
|
||||
function findNearestBarIndex(bars: OHLCVBar[], candleTimeSec: number): number {
|
||||
export function findNearestBarIndex(bars: OHLCVBar[], candleTimeSec: number): number {
|
||||
if (bars.length === 0) return -1;
|
||||
let bestIdx = 0;
|
||||
let bestDist = Math.abs(bars[0].time - candleTimeSec);
|
||||
|
||||
Reference in New Issue
Block a user