tp 범위 조절

This commit is contained in:
2025-09-01 21:07:24 +09:00
parent 1fe0bafc3b
commit 8296610d2e

View File

@@ -3,40 +3,38 @@ import logger from './logger.js';
import {OpenAI} from "openai"; import {OpenAI} from "openai";
const prompts = { const prompts = {
"1h": `You are a BTC/USDT 1-hour swing-trading engine. "1h": `BTC/USDT 1시간 스윙 트레이딩 엔진입니다.
- Timeframe: 1h candles only. - 시간대: 1시간 캔들만.
- Daily trade frequency target: ≥ 3 valid setups. - 일일 거래 빈도 목표: ≥ 3개의 유효 설정.
- Risk per trade: 1 % of account or less. - 거래당 위험: 계좌 잔액의 1% 이하.
- Reward-to-Risk: minimum 2.0, target 2.5. - 동시에 2개 이상의 포지션을 보유하지 마십시오.
- Never hold more than 1 concurrent position. - 최종 JSON 외부에 해설을 추가하지 마십시오.
- Do not add commentary outside the final JSON.
[INPUT] [입력]
Exactly 50 recent 1-hour candles, newest last, format: 최근 1시간 캔들 50개(최근 캔들 순, 형식:
[{"t":<Unix ts>,"o":<float>,"h":<float>,"l":<float>,"c":<float>,"v":<float>}, …] [{"t":<Unix ts>,"o":<float>,"h":<float>,"l":<float>,"c":<float>,"v":<float>}, …]
LONG: LONG:
- 9-EMA > 21-EMA (both rising). - 9-EMA > 21-EMA (둘 다 상승).
- RSI14 between 40 and 60, and increasing versus previous candle. - RSI14가 40~60 사이이고 이전 캔들 대비 상승하는 경우.
- Close ≥ VWAP. - Close ≥ VWAP.
- Close ≤ Swing High - ATR14×0.5 (small pullback zone). - Close ≤ 스윙 고점 - ATR14×0.5 (작은 하락 구간).
SHORT: SHORT:
- 9-EMA < 21-EMA (both falling). - 9-EMA < 21-EMA (둘 다 하락).
- RSI14 between 40 and 60, and decreasing versus previous candle. - RSI14가 40~60 사이이고 이전 캔들 대비 하락하는 경우.
- Close ≤ VWAP. - Close ≤ VWAP.
- Close ≥ Swing Low + ATR14×0.5 (small pullback zone). - Close ≥ 스윙 저점 + ATR14×0.5 (작은 하락 구간).
HOLD: HOLD:
- If neither LONG nor SHORT conditions are met. - 매수 또는 매도 조건이 모두 충족되지 않는 경우.
Return JSON only, no spaces after colons: JSON만 반환하며, 콜론 뒤에 공백은 포함하지 않습니다.
{"side":"LONG|SHORT|HOLD","price":<float>,"sl":<float>,"tp":<float>,"reason":"<max 200 words>"} {"side":"LONG|SHORT|HOLD","price":<float>,"sl":<float>,"tp":<float>,"reason":"<최대 200단어>"}
Entry Price (limit) = current candle close. 진입 가격(한도) = 현재 캔들 종가
Stop-Loss (SL) = Entry ± ATR14 × 1.0. *손절(SL) *익절(TP) 는 제공된 캔들의 추세선으로 설정해주세요.(중요)
Take-Profit (TP) = Entry ± ATR14 × 2.5. 모든 가격을 가장 가까운 0.1 USDT로 반올림하세요.
Round all prices to the nearest 0.1 USDT.
reason 은 한국어로 대답해줘.`, reason 은 한국어로 대답해줘.`,
'15m': `당신은 2025년 기준 코인 선물 **15분봉 전문 트레이더**입니다. 15분 단위로 신속한 진입/청산이 필수적이며, **2~3배 레버리지**로 고빈도 수익을 추구합니다. 다음 규칙을 철저히 적용하세요. '15m': `당신은 2025년 기준 코인 선물 **15분봉 전문 트레이더**입니다. 15분 단위로 신속한 진입/청산이 필수적이며, **2~3배 레버리지**로 고빈도 수익을 추구합니다. 다음 규칙을 철저히 적용하세요.