mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-20 00:02:16 +09:00
프롬프트 수정
This commit is contained in:
57
strategy.js
57
strategy.js
@@ -20,35 +20,36 @@ export async function aiSignal(bars) {
|
|||||||
{
|
{
|
||||||
role: 'user',
|
role: 'user',
|
||||||
content: `
|
content: `
|
||||||
You are a BTC/USDT 1-hour swing-trading engine.
|
당신은 2025년 기준 코인 선물 스윙 트레이딩 전문가입니다.
|
||||||
- Timeframe: 1h candles only.
|
1시간봉 기준으로 **3~5배 레버리지**로 안정적 수익을 추구하며, 다음 규칙을 엄수합니다.
|
||||||
- Daily trade frequency target: ≥ 3 valid setups.
|
|
||||||
- Risk per trade: 1 % of account or less.
|
### 📌 핵심 분석 지표 (2025년 검증)
|
||||||
- Reward-to-Risk: minimum 2.0, target 2.5.
|
**롱 진입 조건**
|
||||||
- Never hold more than 1 concurrent position.
|
(3가지 중 2개 충족 시):
|
||||||
- Do not add commentary outside the final JSON.
|
1. EMA20 > EMA50 상향 정배열 + 가격이 VWAP 지지
|
||||||
[INPUT]
|
2. RSI(14) 40 이하에서 반등 + 양봉 수신
|
||||||
Exactly 50 recent 1-hour candles, newest last, format:
|
3. Funding Rate < -0.05% (과도한 숏 포지션)
|
||||||
|
|
||||||
|
**숏 진입 조건** (3가지 중 2개 충족 시):
|
||||||
|
1. 가격이 볼린저 밴드 상단 돌파 후 재수렴 + MACD 히스토그램 감소
|
||||||
|
2. Liquidation Heatmap에서 롱 리퀴 전방 클러스터 발생
|
||||||
|
3. Funding Rate > 0.1% (과도한 롱 포지션)
|
||||||
|
|
||||||
|
### ⚙️ 리스크 관리
|
||||||
|
**스탑로스**: 최근 6봉 저점(롱)/고점(숏) ± 0.5% or ATR(14)*1.5
|
||||||
|
**테이크프로핏**: 1:2 비율 (예: SL 1% → TP 2%)
|
||||||
|
**홀드 조건**: 지표 간 신호 충돌 또는 뉴스 이벤트 1시간 전
|
||||||
|
### 📊 데이터 해석 규칙
|
||||||
|
**VWAP**: 가격이 상승 시 지지/저항 역할
|
||||||
|
**다이버전스**: RSI/MACD와 가격 움직임 불일치 시 강력 신호
|
||||||
|
**OVM**: Liquidation Cluster 밀집 구간 확인 (Coinalyze 기준)
|
||||||
|
### 📝 출력 형식 (반드시 JSON)
|
||||||
|
{ side : LONG/SHORT/HOLD, price : 진입가(소수점 1자리), sl : "손절가(소수점 1자리), tp : 익절가(소수점 1자리),reason : 지표 조합 요약 (예: EMA 정배열+VWAP 지지+Funding Rate 저수준)}
|
||||||
|
⚠️ **2025년 특이사항**: 기관 매집 구간(EMA20)과 리퀴데이션 헌팅 구간 필수 확인, 과매매 신호(RSI 30/70)는 보조 필터로만 사용
|
||||||
|
|
||||||
|
아래 1시간봉 200개 데이터 입니다.
|
||||||
|
[데이터 타입]
|
||||||
[{"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 :
|
|
||||||
- 9-EMA > 21-EMA (both rising)
|
|
||||||
- RSI14 between 40 and 65 and increasing vs previous candle
|
|
||||||
- Close ≥ VWAP
|
|
||||||
- Close ≤ Swing High - ATR14×0.5 (small pullback zone)
|
|
||||||
|
|
||||||
SHORT : exact opposite of LONG.
|
|
||||||
|
|
||||||
HOLD : if neither LONG nor SHORT conditions are met.
|
|
||||||
|
|
||||||
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 ± 0.05 % toward desired direction.
|
|
||||||
Stop-Loss (SL) = Entry ± ATR14 × 1.0 (beyond nearest Swing Low/High).
|
|
||||||
Take-Profit (TP) = Entry ± ATR14 × 2.5 (minimum 2 R).
|
|
||||||
Round all prices to exchange tick size (0.1 USDT).
|
|
||||||
|
|
||||||
reason 은 한국어로 대답해줘.
|
|
||||||
|
|
||||||
${JSON.stringify(bars)}
|
${JSON.stringify(bars)}
|
||||||
`,
|
`,
|
||||||
|
|||||||
Reference in New Issue
Block a user