Table of Contents
Overview
The HFT (High-Frequency Trading) Signal is a momentum-based pattern detection system designed for short-term trading on 1-minute candles. It triggers when multiple consecutive green or red candles appear, capturing fast market momentum.
Key Features
- Simple Pattern Detection - No complex reversal logic
- Consecutive Candle Counting - Detects momentum streaks
- Fast Execution - Optimized for 1m–5m timeframes
- Configurable Thresholds - Adjust sensitivity
- Toggle On/Off - Easy enable/disable
CRITICAL: Symbol Selection — MOST IMPORTANT PART
HFT signals are NOT designed for 600+ symbols!
HFT momentum trading works only with:
- Major pairs only: BTCUSDT, ETHUSDT, SOLUSDT, BNBUSDT
- High liquidity + consistent volume
- Best results: ONE symbol at a time
- Second-based real-time kline/tick data (WebSocket)
Never enable HFT on all symbols — this creates hundreds of false signals per hour.
How It Works
HFT_LONG_SIGNAL (Buy)
Candle 1: GREEN (Close > Open) Candle 2: GREEN → HFT_LONG_SIGNAL triggered!
HFT_SHORT_SIGNAL (Sell)
Candle 1: RED (Close < Open) Candle 2: RED → HFT_SHORT_SIGNAL triggered!
DOJI candles (Close ≈ Open) break the streak and are ignored.
Configuration
```yaml # ========================================================================== # HFT SIGNAL SETTINGS # ========================================================================== enabled_hft_signal: false hft_consecutive_green_threshold: 2 hft_consecutive_red_threshold: 2 hft_min_confidence_threshold: 60.0 # 50.0 = aggressive, 70.0 = conservative ```
| Parameter | Type | Default | Description |
|---|---|---|---|
| enabled_hft_signal | boolean | false | Master switch |
| hft_consecutive_green_threshold | int | 2 | Consecutive greens for LONG |
| hft_consecutive_red_threshold | int | 2 | Consecutive reds for SHORT |
| hft_min_confidence_threshold | float | 60.0 | Minimum confidence to fire |
Recommended Settings
Conservative
threshold: 3
confidence: 70.0
threshold: 3
confidence: 70.0
Balanced (Recommended)
threshold: 2
confidence: 60.0
threshold: 2
confidence: 60.0
Aggressive
threshold: 2
confidence: 50.0
threshold: 2
confidence: 50.0
Signal Broadcasting Setup (Notifications)
```yaml supported_volatility_action_broadcast: - "BUY" - "SELL" - "PUMP" - "CRASH" - "HFT_LONG_SIGNAL" # Add these two lines - "HFT_SHORT_SIGNAL" ```
Auto Trading Setup (Paid License Only)
```yaml supported_volatility_action: - "BUY" - "SELL" - "PUMP" - "CRASH" - "HFT_LONG_SIGNAL" # Add these - "HFT_SHORT_SIGNAL" ```
After changes → delete symbols.json → restart bot → re-sync
Signal Types
- HFT_LONG_SIGNAL → Buy on upward momentum
- HFT_SHORT_SIGNAL → Sell/Short on downward momentum
Confidence Calculation
- Base = 60%
- Excess candles bonus: +5% per extra candle (max +20%)
- Body strength bonus: up to +20% (avg % body size × 2)
Example 1 → 2 greens, 0.5% body → 61% Example 2 → 4 greens, 1.2% body → 72.4% Example 3 → 5 greens, 2.5% body → 80%
Best Practices (Follow Strictly)
1. Symbol Selection — THE MOST IMPORTANT
RECOMMENDED (Best Results)
→ ONLY 1 symbol: BTCUSDT (1m + second-based refresh)
→ Maximum 2–3: BTC, ETH, SOL
→ ONLY 1 symbol: BTCUSDT (1m + second-based refresh)
→ Maximum 2–3: BTC, ETH, SOL
NEVER DO THIS
× All 600+ symbols
× Low-cap or low-volume coins
× Polling data (not real-time WebSocket)
× All 600+ symbols
× Low-cap or low-volume coins
× Polling data (not real-time WebSocket)
2. Data Requirements for Success
- 1-minute candles
- Second-based real-time data (WebSocket, not polling)
- Trending market (not choppy/range-bound)
- Small position size (5–10% of capital)
3. Recommended Final Setup
```yaml # Only BTCUSDT (or max 3 majors) # Second-based refresh enabled # 1m timeframe enabled_hft_signal: true hft_consecutive_green_threshold: 2 hft_consecutive_red_threshold: 2 hft_min_confidence_threshold: 60.0 supported_volatility_action_broadcast: - "HFT_LONG_SIGNAL" - "HFT_SHORT_SIGNAL" # After 1–2 weeks of good results → enable auto-trading supported_volatility_action: - "HFT_LONG_SIGNAL" - "HFT_SHORT_SIGNAL" ```
Troubleshooting
No Signals
enabled_hft_signal: true?- Using only 1–3 major symbols?
- Second-based data enabled?
- Confidence too high? → try 50.0
Too Many / Low-Quality Signals
99% of the time this is because you enabled HFT on too many symbols!
Solution: Reduce to 1 symbol (BTCUSDT) immediately.
Solution: Reduce to 1 symbol (BTCUSDT) immediately.
Still too many?
```yaml hft_consecutive_green_threshold: 3 hft_consecutive_red_threshold: 3 hft_min_confidence_threshold: 70.0 ```
Quick Start Checklist
- enabled_hft_signal: true
- Only BTCUSDT (or max 3 majors)
- Second-based real-time data
- Test with broadcasting only for 1–2 weeks
- Then enable auto-trading (paid license)
- Small positions (5–10% max)
- Never run on 600+ symbols