diff --git a/strategy.js b/strategy.js index 180e5cf..2d579aa 100644 --- a/strategy.js +++ b/strategy.js @@ -16,13 +16,13 @@ const prompts = { LONG: - 9-EMA > 21-EMA (둘 다 상승). - - RSI14가 40~60 사이이고 이전 캔들 대비 상승하는 경우. + - RSI14가 40 보다 작으며 이전 캔들 대비 상승하는 경우. - Close ≥ VWAP. - Close ≤ 스윙 고점 - ATR14×0.5 (작은 하락 구간). SHORT: - 9-EMA < 21-EMA (둘 다 하락). - - RSI14가 40~60 사이이고 이전 캔들 대비 하락하는 경우. + - RSI14가 60 보다 크며 이전 캔들 대비 하락하는 경우. - Close ≤ VWAP. - Close ≥ 스윙 저점 + ATR14×0.5 (작은 하락 구간). diff --git a/test.js b/test.js index af54753..cb85734 100644 --- a/test.js +++ b/test.js @@ -11,7 +11,7 @@ const ex = new ccxt.bybit({ options: { defaultType: 'swap' } }); -const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 300); +const ohlcv = await ex.fetchOHLCV(cfg.cctxSymbol, cfg.ohlcvInterval, undefined, 336); const bars = ohlcv.map(c => ({ t: c[0], o: c[1],