mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-20 00:02:16 +09:00
tp 범위 조절
This commit is contained in:
70
strategy.js
70
strategy.js
@@ -3,42 +3,40 @@ 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]
|
최근 1시간 캔들 50개(최근 캔들 순, 형식:
|
||||||
Exactly 50 recent 1-hour candles, newest last, format:
|
[{"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 (둘 다 상승).
|
||||||
- 9-EMA > 21-EMA (both rising).
|
- RSI14가 40~60 사이이고 이전 캔들 대비 상승하는 경우.
|
||||||
- RSI14 between 40 and 60, and increasing versus previous candle.
|
- Close ≥ VWAP.
|
||||||
- Close ≥ VWAP.
|
- Close ≤ 스윙 고점 - ATR14×0.5 (작은 하락 구간).
|
||||||
- Close ≤ Swing High - ATR14×0.5 (small pullback zone).
|
|
||||||
|
SHORT:
|
||||||
SHORT:
|
- 9-EMA < 21-EMA (둘 다 하락).
|
||||||
- 9-EMA < 21-EMA (both falling).
|
- RSI14가 40~60 사이이고 이전 캔들 대비 하락하는 경우.
|
||||||
- RSI14 between 40 and 60, and decreasing versus previous candle.
|
- Close ≤ VWAP.
|
||||||
- Close ≤ VWAP.
|
- Close ≥ 스윙 저점 + ATR14×0.5 (작은 하락 구간).
|
||||||
- Close ≥ Swing Low + ATR14×0.5 (small pullback zone).
|
|
||||||
|
HOLD:
|
||||||
HOLD:
|
- 매수 또는 매도 조건이 모두 충족되지 않는 경우.
|
||||||
- If neither LONG nor SHORT conditions are met.
|
|
||||||
|
JSON만 반환하며, 콜론 뒤에 공백은 포함하지 않습니다.
|
||||||
Return JSON only, no spaces after colons:
|
{"side":"LONG|SHORT|HOLD","price":<float>,"sl":<float>,"tp":<float>,"reason":"<최대 200단어>"}
|
||||||
{"side":"LONG|SHORT|HOLD","price":<float>,"sl":<float>,"tp":<float>,"reason":"<max 200 words>"}
|
|
||||||
|
진입 가격(한도) = 현재 캔들 종가
|
||||||
Entry Price (limit) = current candle close.
|
*손절(SL) *익절(TP) 는 제공된 캔들의 추세선으로 설정해주세요.(중요)
|
||||||
Stop-Loss (SL) = Entry ± ATR14 × 1.0.
|
모든 가격을 가장 가까운 0.1 USDT로 반올림하세요.
|
||||||
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배 레버리지**로 고빈도 수익을 추구합니다. 다음 규칙을 철저히 적용하세요.
|
||||||
### 📌 핵심 분석 지표 (15분봉 최적화)
|
### 📌 핵심 분석 지표 (15분봉 최적화)
|
||||||
- **롱 진입 조건** (2가지 충족 시):
|
- **롱 진입 조건** (2가지 충족 시):
|
||||||
|
|||||||
Reference in New Issue
Block a user