Skill: lukmanc405/neko-futures-trader (version 1.0.27)

--- name: neko-futures-trader description: | Professional Binance Futures automated trading system with AI-powered signal detection. 🎯 CORE FEATURES: - Auto Entry: Scanner finds signals every 5 minutes - Auto SL/TP: Price monitor checks every 1 second - Auto Cache Cleanup: Removes expired entries on startup - Auto Breakeven: Moves SL to entry at +5% - Auto Trailing TP: Activates at +10% - Auto Delisting: Blocks delisted tokens - Auto Recovery: Self-heals from errors 📊 STRATEGY: - Multi-TP: 40% @ +10%, 30% @ +15%, 30% @ +20% - Dynamic ATR: SL/TP adjusts to volatility - 14 Indicators: RSI, MACD, Bollinger, VWAP, EMA, etc. - 64 SAFE_COINS pre-filtered ⚙️ SETTINGS (in config.py): - MAX_POSITIONS = 7 - ENTRY_PERCENT = 6% - MIN_PROFIT_BREAKEVEN = 5.0% - MIN_PROFIT_TRAILING_TP = 10.0% - CHECK_INTERVAL = 1 second 📁 FILES: - scanner-v8.py (main scanner) - price-monitor.py (TP/SL executor) - config.py (all settings) - advanced_analysis.py (indicators) - error_handling.py (self-healing) - delisting_monitor.py (safety) - position_command.py (/position command) 🔑 REQUIRED ENV: - BINANCE_API_KEY - BINANCE_SECRET - TELEGRAM_BOT_TOKEN - TELEGRAM_CHANNEL 💰 BALANCE: ~$392 (as of 2026-03-19) Use when: user wants automated futures trading or asks about positions. metadata: openclaw: emoji: 🐱📈 requires: bins: ["python3"] env: - BINANCE_API_KEY - BINANCE_SECRET - TELEGRAM_BOT_TOKEN - TELEGRAM_CHANNEL startup: command: "cd /root/.openclaw/workspace/neko-futures-trader && nohup bash -c 'while true; do source .env && python3 scanner-v8.py; sleep 300; done' > scanner.log 2>&1 &" type: "background" --- # Neko Futures Trader 🐱📈 ## Quick Install (For New Agent) ```bash # 1. Navigate to workspace cd /root/.openclaw/workspace/neko-futures-trader # 2. Check files exist ls -la *.py *.md # 3. Verify .env exists cat .env | head -3 # 4. Start scanner nohup python3 scanner-v8.py & # 5. Start price monitor nohup python3 price-monitor.py & # 6. Check status python3 position_command.py ``` ## Auto Features (All Running) | Feature | Status | Description | |---------|--------|-------------| | 🔍 Auto Entry | ✅ ON | Scanner runs every 5 min | | ⏱️ Auto TP/SL | ✅ ON | Price monitor every 1 sec | | 🧹 Auto Cache | ✅ ON | Cleans 24h old entries on startup | | 🛡 Auto Breakeven | ✅ ON | SL → Entry at +5% | | 🎯 Auto Trailing | ✅ ON | TP trails at +10% | | 🚫 Auto Delisting | ✅ ON | Blocks bad tokens | | 🔄 Auto Recovery | ✅ ON | Self-heals from errors | | 📱 Auto Notify | ✅ ON | Telegram alerts | ## Configuration (config.py) ```python # === TRADING === MAX_POSITIONS = 7 AUTO_FILL_EMPTY_SLOTS = True ENTRY_PERCENT = 6% LEVERAGE = 10 # === RISK === MIN_PROFIT_BREAKEVEN = 5.0 # SL → Entry at +5% MIN_PROFIT_TRAILING_TP = 10.0 # Trail at +10% # === MULTI-TP (1:2 R/R) === TP1_PERCENT = 10.0 # Close 40% @ +10% TP2_PERCENT = 15.0 # Close 30% @ +15% TP3_PERCENT = 20.0 # Close 30% @ +20% # === DYNAMIC ATR === ATR_MULTIPLIER_SL_HIGH = 2.0 # High vol: SL 2×ATR ATR_MULTIPLIER_TP_HIGH = 4.0 # High vol: TP 4×ATR ATR_MULTIPLIER_SL_NORMAL = 1.5 # Normal: SL 1.5×ATR ATR_MULTIPLIER_TP_NORMAL = 3.0 # Normal: TP 3×ATR ATR_MULTIPLIER_SL_LOW = 1.0 # Low vol: SL 1×ATR ATR_MULTIPLIER_TP_LOW = 2.5 # Low vol: TP 2.5×ATR # === MONITOR === CHECK_INTERVAL = 1 # seconds ``` ## Signal Indicators (v1.0.36) | # | Indicator | Condition | Score | |---|-----------|-----------|-------| | 1 | Volume Spike | >3x avg | +2 | | 2 | Price Change | >10% | +2 | | 3 | 1H Change | >3% | +1 | | 4 | Breakout | HH/HL broken | +2 | | 5 | Breakdown | LH/LL broken | +2 | | 6 | OI Increase | >20% | +2 | | 7 | Weekly Change | >20% | +3 | | 8 | Pocket Pivot | Yes | +2 | | 9 | RSI | <30 or >70 | +1 | | 10 | MACD Cross | Histogram | +1 | | 11 | Bollinger | Band touch | +1 | | 12 | VWAP Cross | Price cross | +1 | | 13 | Volume 5x | Extra spike | +2 | | 14 | DCR | >20% | +1 | **Minimum Score: 3 to trigger signal** ## File Structure ``` neko-futures-trader/ ├── scanner-v8.py # Main scanner (auto entry) ├── price-monitor.py # TP/SP executor (auto close) ├── config.py # All settings ├── advanced_analysis.py # RSI, MACD, etc. ├── error_handling.py # Circuit breaker, rate limiter ├── delisting_monitor.py # Auto block delisted ├── position_command.py # /position command ├── .env # API keys (SECRET) ├── .positions_sl_tp.json # Position cache ├── .recently_closed # Closed cache (24h) ├── .posted_signals # Posted cache ├── README.md # Documentation └── SKILL.md # This file ``` ## Commands ### Start Scanner ```bash cd /root/.openclaw/workspace/neko-futures-trader nohup python3 scanner-v8.py > scanner.log 2>&1 & ``` ### Start Price Monitor ```bash cd /root/.openclaw/workspace/neko-futures-trader nohup python3 price-monitor.py > pm.log 2>&1 & ``` ### Check Positions ```bash python3 position_command.py ``` ### Check Running ```bash pgrep -f scanner-v8 && echo "Scanner OK" pgrep -f price-monitor && echo "Monitor OK" ``` ## Current Status (2026-03-19) - 💰 Balance: ~$392 - 📊 Positions: 2/7 (KAVA, ARB) - 🔍 Scanner: Running - ⏱️ Monitor: Running - 📱 Telegram: Connected ## Safety Features 1. **Cache Auto-Cleanup**: Removes entries >24h old 2. **Recently Closed**: Skips re-entry for 24h 3. **Delisting Monitor**: Auto-blocks bad tokens 4. **Error Handling**: Circuit breaker, rate limiter 5. **Recovery**: Auto-restart on failure --- *Built by Neko Sentinel* 🐱🛡️

path: config.py
content: # === Neko Futures Trader - CONFIGURATION ===
# Scanner v1.0.36 - Stable ATR-based SL/TP with PRICE fallback

# ── TRADING ──────────────────────────────────────────────────────────────────
LEVERAGE = 10                    # Futures leverage (10x)
MAX_POSITIONS = 7               # Max concurrent positions
AUTO_FILL_EMPTY_SLOTS = True     # Auto-find entries when positions < MAX
ENTRY_PERCENT = 6                # % of balance per trade

# ── SL/TP STRATEGY ────────────────────────────────────────────────────────────
# PRIMARY: ATR-based (adapts to token volatility)
# FALLBACK: Uses PRICE_TP/PRICE_SL when ATR is too tight or too wide

# ATR Multipliers (for fakeout protection - wider SL/TP)
ATR_HIGH_VOLATILITY = 3.0       # ATR > X% = high volatility token
ATR_MULTIPLIER_SL_HIGH = 3.0     # Wider SL for volatile tokens
ATR_MULTIPLIER_TP_HIGH = 6.0     # Wider TP for volatile tokens
ATR_MULTIPLIER_SL_NORMAL = 2.5    # Normal SL multiplier
ATR_MULTIPLIER_TP_NORMAL = 5.0   # Normal TP multiplier
ATR_MULTIPLIER_SL_LOW = 2.0      # Tighter SL for stable tokens
ATR_MULTIPLIER_TP_LOW = 4.0      # Tighter TP for stable tokens

# PRICE FALLBACK (when ATR-based SL would be too tight/wide)
PRICE_TP = 10.0                  # Take Profit: +10% for LONG, -10% for SHORT
PRICE_SL = 5.0                   # Stop Loss: -5% for LONG, +5% for SHORT
PRICE_FALLBACK_MAX_ATR = 10.0    # If ATR% > 10%, use PRICE_TP/PRICE_SL instead
PRICE_FALLBACK_MIN_ATR = 1.0     # If ATR% < 1%, use PRICE_TP/PRICE_SL instead

# ── BREAKEVEN & TRAILING ─────────────────────────────────────────────────────
MIN_PROFIT_BREAKEVEN = 5.0       # % profit to move SL to entry price
MIN_PROFIT_TRAILING_TP = 10.0    # % profit to activate trailing TP
TRAIL_PERCENT = 2.0              # Trail SL by this % when trailing

# ── NOTIFICATIONS ─────────────────────────────────────────────────────────────
POST_SIGNALS_TO_TELEGRAM = True
NOTIFY_ON_OPEN = True
NOTIFY_ON_CLOSE = True
NOTIFY_ON_BREAKEVEN = True
NOTIFY_ON_TRAILING_TP = True

# ── SCANNER ──────────────────────────────────────────────────────────────────
SCAN_INTERVAL = 300             # Scanner run every 5 minutes
MIN_PRICE_CHANGE = 3.0          # Min % price change for signal
MIN_SCORE = 3                    # Min signal score (1-10)
SKIP_RECENT_HOURS = 24           # Skip re-entry for 24h after close

# ── RISK ─────────────────────────────────────────────────────────────────────
MAX_MARGIN_PERCENT = 40          # Max margin usage %
MAX_RISK_PERCENT = 1.5           # Max risk per trade %

# ── SAFE COINS ───────────────────────────────────────────────────────────────
SAFE_COINS = [
    'BNBUSDT','ETHUSDT','BTCUSDT','XRPUSDT','ADAUSDT','DOGEUSDT',
    'SOLUSDT','DOTUSDT','MATICUSDT','LTCUSDT','AVAXUSDT','LINKUSDT',
    'ATOMUSDT','UNIUSDT','ETCUSDT','XLMUSDT','BCHUSDT','FILUSDT',
    'APTUSDT','NEARUSDT','ARBUSDT','OPUSDT','AAVEUSDT','MKRUSDT',
    'GRTUSDT','SNXUSDT','IMXUSDT','ALGOUSDT','FTMUSDT','SANDUSDT',
    'MANAUSDT','AXSUSDT','CHZUSDT','ENJUSDT','NEOUSDT','ZECUSDT',
    'EOSUSDT','THETAUSDT','KAVAUSDT','WAVESUSDT','ZILUSDT','KSMUSDT',
    'RUNEUSDT','KLAYUSDT','MINAUSDT','QNTUSDT','LDOUSDT','SUIUSDT',
    'SEIUSDT','TIAUSDT','INJUSDT','TIAUSD_PERP','WIFUSDT','ORDIUSDT'
]


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: suspicious | SkillSpector: suspicious (CRITICAL)