Initial commit: Trading skills collection
- OKX交易自动化 (okx-auto-position, okx-crypto, okx-exchange) - 交易信号处理 (signal-confirmation-templates, trading-signal-aggregator) - 量化因子挖掘 (quant-factor-mining) - 长桥集成 (longbridge-cli, longbridge-python-sdk) - 六合彩分析 (lottery-hk) - 股息投资 (dividend-investing, dividend-scanner) - 日内交易 (intraday-trading) - 同花顺 (tonghuashun)
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
# TP/SL Evaluation Guide for OKX Contracts
|
||||
|
||||
## How to Evaluate a TP/SL Setup
|
||||
|
||||
### Step 1: Gather Data
|
||||
- Entry price, current price, TP trigger, SL trigger
|
||||
- Liquidation price (from position details)
|
||||
- 7-day OHLCV data for the asset
|
||||
|
||||
### Step 2: Calculate Key Metrics
|
||||
|
||||
| Metric | Formula | Good | Bad |
|
||||
|:---|:---|:---|:---|
|
||||
| Risk:Reward | (TP - entry) / (entry - SL) | ≥ 1.5 | ≤ 1.0 |
|
||||
| SL distance % | (entry - SL) / entry × 100 | > daily avg range | < daily avg range |
|
||||
| SL vs Liquidation | SL price vs liq price | Wide gap | Close to liq |
|
||||
| TP vs 7d High | Compare | Below 7d high | Above 7d high (needs breakout) |
|
||||
| Breakeven win rate | 1 / (1 + R:R) | < 40% | > 50% |
|
||||
|
||||
### Step 3: Common Issues
|
||||
|
||||
**Issue: Stop loss too tight**
|
||||
- Symptom: SL distance < asset's average daily range
|
||||
- Example: 0.76% SL on an asset with 5% daily volatility
|
||||
- Fix: Widen SL to at least 1.5× the daily ATR (Average True Range)
|
||||
|
||||
**Issue: TP unrealistic**
|
||||
- Symptom: TP is above the 7-day high for longs
|
||||
- Fix: Set TP within the recent range, or use trailing stop instead
|
||||
|
||||
**Issue: R:R too low**
|
||||
- Symptom: Win/loss amount ratio ≤ 1:1
|
||||
- Fix: Either widen TP or tighten SL (but not too tight!)
|
||||
- Rule: With R:R of 1:1, you need >50% accuracy to profit. With 2:1, you only need >33%.
|
||||
|
||||
**Issue: SL at round number**
|
||||
- Symptom: SL at exactly $1,000, $1,100, etc.
|
||||
- Fix: Offset by 0.5-1% (e.g., $1,005 or $995) to avoid stop hunts
|
||||
|
||||
### Step 4: Report Template
|
||||
|
||||
```
|
||||
📊 TP/SL 评估
|
||||
━━━━━━━━━━━━━
|
||||
入场: $X | 当前: $Y | 浮盈/亏: Z%
|
||||
止盈: $TP (+A%) | 止损: $SL (-B%)
|
||||
清算价: $Liq (距 SL: C%)
|
||||
|
||||
盈亏比: R:R
|
||||
SL 距当前: D% (日均波动: E%)
|
||||
TP vs 7日高: F
|
||||
|
||||
评价: ✅合理 / ⚠️需调整 / ❌风险过高
|
||||
建议: ...
|
||||
```
|
||||
|
||||
## OKX-Specific Notes
|
||||
|
||||
- OKX OCO orders: TP and SL are paired — one triggers, the other cancels
|
||||
- `tpOrdPx: "-1"` means market price execution on trigger (guaranteed fill but possible slippage)
|
||||
- `slOrdPx: "-1"` same for stop loss
|
||||
- `mgnMode: "isolated"` = only the margin amount is at risk (not cross-margin)
|
||||
- `mgnRatio` < 1.0 means close to liquidation
|
||||
- `uplRatio` is unrealized PnL as a fraction of margin (e.g., -0.024 = -2.4% of margin)
|
||||
Reference in New Issue
Block a user