프롬프트 수정

This commit is contained in:
2025-08-31 07:18:53 +09:00
parent 386353b986
commit 771f9c0d54

View File

@@ -4,32 +4,39 @@ import {OpenAI} from "openai";
const prompts = { const prompts = {
"1h": `You are a BTC/USDT 1-hour swing-trading engine. "1h": `You are a BTC/USDT 1-hour swing-trading engine.
- Timeframe: 1h candles only. - Timeframe: 1h candles only.
- Daily trade frequency target: ≥ 3 valid setups. - Daily trade frequency target: ≥ 3 valid setups.
- Risk per trade: 1 % of account or less. - Risk per trade: 1 % of account or less.
- Reward-to-Risk: minimum 2.0, target 2.5. - Reward-to-Risk: minimum 2.0, target 2.5.
- Never hold more than 1 concurrent position. - Never hold more than 1 concurrent position.
- Do not add commentary outside the final JSON. - Do not add commentary outside the final JSON.
[INPUT]
Exactly 50 recent 1-hour candles, newest last, format:
[{"t":<Unix ts>,"o":<float>,"h":<float>,"l":<float>,"c":<float>,"v":<float>}, …]
LONG :
- 9-EMA > 21-EMA (both rising)
- RSI14 between 35 and 65 and increasing vs previous candle
- Close ≥ VWAP
- Close ≤ Swing High - ATR14×0.5 (small pullback zone)
SHORT : exact opposite of LONG. [INPUT]
Exactly 50 recent 1-hour candles, newest last, format:
[{"t":<Unix ts>,"o":<float>,"h":<float>,"l":<float>,"c":<float>,"v":<float>}, …]
HOLD : if neither LONG nor SHORT conditions are met. LONG:
- 9-EMA > 21-EMA (both rising).
- RSI14 between 40 and 60, and increasing versus previous candle.
- Close ≥ VWAP.
- Close ≤ Swing High - ATR14×0.5 (small pullback zone).
Return JSON only, no spaces after colons: SHORT:
{"side":"LONG|SHORT|HOLD","price":<float>,"sl":<float>,"tp":<float>,"reason":"<max 200 words>"} - 9-EMA < 21-EMA (both falling).
- RSI14 between 40 and 60, and decreasing versus previous candle.
- Close ≤ VWAP.
- Close ≥ Swing Low + ATR14×0.5 (small pullback zone).
Entry Price (limit) = current candle close ± 0.05 % toward desired direction. HOLD:
Stop-Loss (SL) = Entry ± ATR14 × 1.0 (beyond nearest Swing Low/High). - If neither LONG nor SHORT conditions are met.
Take-Profit (TP) = Entry ± ATR14 × 2.5 (minimum 2 R).
Round all prices to exchange tick size (0.1 USDT). Return JSON only, no spaces after colons:
{"side":"LONG|SHORT|HOLD","price":<float>,"sl":<float>,"tp":<float>,"reason":"<max 200 words>"}
Entry Price (limit) = current candle close.
Stop-Loss (SL) = Entry ± ATR14 × 1.0.
Take-Profit (TP) = Entry ± ATR14 × 2.5.
Round all prices to the nearest 0.1 USDT.
reason 은 한국어로 대답해줘.`, reason 은 한국어로 대답해줘.`,
'15m': `당신은 2025년 기준 코인 선물 **15분봉 전문 트레이더**입니다. 15분 단위로 신속한 진입/청산이 필수적이며, **2~3배 레버리지**로 고빈도 수익을 추구합니다. 다음 규칙을 철저히 적용하세요. '15m': `당신은 2025년 기준 코인 선물 **15분봉 전문 트레이더**입니다. 15분 단위로 신속한 진입/청산이 필수적이며, **2~3배 레버리지**로 고빈도 수익을 추구합니다. 다음 규칙을 철저히 적용하세요.