tp 범위 조절

This commit is contained in:
2025-09-01 21:10:21 +09:00
parent 8296610d2e
commit 025cd5753e
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ let curPrice = null;
async function bootstrap() { async function bootstrap() {
try { try {
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 50); const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 336);
bars = ohlcv.map(c => ({ bars = ohlcv.map(c => ({
t: c[0], t: c[0],
o: c[1], o: c[1],
@@ -82,7 +82,7 @@ function initWs() {
}; };
bars.push(bar); bars.push(bar);
if (bars.length > 50) bars.shift(); if (bars.length > 336) bars.shift();
logger.debug('새로운 분봉 수신', { logger.debug('새로운 분봉 수신', {
timestamp: new Date(bar.t).toISOString(), timestamp: new Date(bar.t).toISOString(),

View File

@@ -11,7 +11,7 @@ const ex = new ccxt.bybit({
options: { defaultType: 'swap' } options: { defaultType: 'swap' }
}); });
const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 50); const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 300);
const bars = ohlcv.map(c => ({ const bars = ohlcv.map(c => ({
t: c[0], t: c[0],
o: c[1], o: c[1],