lukmanc405

SKILL.md - Neko Futures Trader

```

lukmanc405 0 Updated 2mo ago

Resources

21
GitHub

Install

npx skillscat add lukmanc405/neko-futures-trader

Install via the SkillsCat registry.

SKILL.md

SKILL.md - Neko Futures Trader

Overview

Automated Binance Futures trading bot with advanced signal detection and risk management.

Emoji: ๐Ÿฑ๐Ÿ“ˆ
Requires: Python 3.8+, Binance Futures API


๐Ÿ“ File Structure

neko-futures-trader/
โ”œโ”€โ”€ scanner-v8.py           # Scanner (5min intervals)
โ”œโ”€โ”€ price-monitor.py        # SL/TP monitor (1sec)
โ”œโ”€โ”€ position_command.py     # Position checker
โ”œโ”€โ”€ dashboard_api.py        # Dashboard API
โ”œโ”€โ”€ emergency_close.py     # Emergency closer
โ”œโ”€โ”€ daily_eval.py           # Comprehensive daily evaluation
โ”œโ”€โ”€ config.py              # Trading parameters
โ”œโ”€โ”€ lib/                   # Helper modules
โ”‚   โ”œโ”€โ”€ signal_filter.py
โ”‚   โ”œโ”€โ”€ ict_indicators.py
โ”‚   โ”œโ”€โ”€ advanced_analysis.py
โ”‚   โ”œโ”€โ”€ delisting_monitor.py
โ”‚   โ””โ”€โ”€ error_handling.py
โ””โ”€โ”€ static/
    โ””โ”€โ”€ neko-light.html    # Dashboard UI

๐Ÿš€ Setup

1. Install

git clone https://github.com/lukmanc405/neko-futures-trader.git /root/.openclaw/skills/neko-futures-trader
cd /root/.openclaw/skills/neko-futures-trader

2. Dependencies

pip install python-dotenv requests pandas numpy scipy scikit-learn

3. Configure (.env)

BINANCE_API_KEY=your_key
BINANCE_SECRET=your_secret
TELEGRAM_BOT_TOKEN=your_token
TELEGRAM_CHANNEL=your_user_id

4. Setup Workspace

mkdir -p /root/.openclaw/workspace/neko-futures-trader/{logs,data}
cp .env /root/.openclaw/workspace/neko-futures-trader/

โš™๏ธ Systemd Services

Scanner

[Unit]
Description=Neko Futures Scanner
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/.openclaw/workspace/neko-futures-trader
ExecStart=/usr/bin/python3 /root/.openclaw/skills/neko-futures-trader/scanner-v8.py
Restart=always
RestartSec=10
StandardOutput=append:/root/.openclaw/workspace/neko-futures-trader/logs/scanner.log
StandardError=append:/root/.openclaw/workspace/neko-futures-trader/logs/scanner.log

[Install]
WantedBy=multi-user.target

Monitor

[Unit]
Description=Neko Futures Monitor
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/.openclaw/workspace/neko-futures-trader
ExecStart=/usr/bin/python3 /root/.openclaw/skills/neko-futures-trader/price-monitor.py
Restart=always
RestartSec=10
StandardOutput=append:/root/.openclaw/workspace/neko-futures-trader/logs/pm.log
StandardError=append:/root/.openclaw/workspace/neko-futures-trader/logs/pm.log

[Install]
WantedBy=multi-user.target

Enable

systemctl daemon-reload
systemctl enable neko-scanner neko-monitor
systemctl start neko-scanner neko-monitor

๐ŸŒ Dashboard

Setup

# Copy HTML
cp static/neko-light.html /var/www/html/

# Nginx (port 8443 SSL)
# See nginx config in repository

# Start service
systemctl start neko-dashboard

Access

https://YOUR_IP:8443/neko-light.html


๐Ÿ“Š Commands

# Check positions
python3 position_command.py

# Daily evaluation (comprehensive)
python3 daily_eval.py

# Emergency close
python3 emergency_close.py

# Service management
systemctl status neko-scanner neko-monitor
systemctl restart neko-scanner
journalctl -u neko-scanner -f

๐Ÿ“ˆ Indicators (Signal Scoring)

Active Indicators

Indicator Score Description
Volume Spike +2 >3x average volume
Price Change +1 to +2 >5% or >10% change
OI Change +2 >20% open interest change
Weekly Change +1 to +2 >5% or >20% weekly change

Filters (Reject Signals)

Filter Condition Action
RSI LONG when RSI > 70 Reject
RSI SHORT when RSI < 30 Reject
MACD Histogram Contradicts direction Reject
Bollinger Squeeze No squeeze + weak move Reject (chop)
EMA Position Price too extended Reject (chase)

Removed (Poor Accuracy)

  • โŒ Breakout/Breakdown
  • โŒ Pocket Pivot

โš™๏ธ Trading Parameters

Param Default Description
MAX_POSITIONS 5 Max open positions
MAX_MARGIN 30% Max margin usage
LEVERAGE 10x Leverage
MIN_SCORE 3 Signal threshold

R:R Ratio 1:3 (Optimized)

With 42.9% winrate, you need R:R > 1:1.07 to break even.
1:3 ratio ensures profitability even with 40% winrate.

Volatility ATR Range SL TP Ratio
HIGH > 10% 2x ATR 6x ATR 1:3
NORMAL 5-10% 2x ATR 6x ATR 1:3
LOW < 5% 1.5x ATR 4.5x ATR 1:3

๐Ÿ› Bug Fixes

  1. Algo API: /fapi/v1/algoOrder (not /orderAlg)
  2. Params: algoType=CONDITIONAL, quantity=1, reduceOnly=true
  3. Precision: Rounds to tickSize per symbol
  4. Floating point: String formatting for SL/TP prices

metadata

metadata:
  openclaw:
    emoji: ๐Ÿฑ๐Ÿ“ˆ
    requires:
      bins: [python3]
      env: [BINANCE_API_KEY, BINANCE_SECRET, TELEGRAM_BOT_TOKEN, TELEGRAM_CHANNEL]
    startup:
      command: "systemctl start neko-scanner neko-monitor"
      type: service