A working 150-line bot for Binance Futures testnet. EMA-cross strategy with risk management. Read it, run it, modify it.
~150 lines. Connection, candle fetch, EMA signal, order placement, main loop.
API keys, symbol, EMA periods, SL/TP %, position size — all in one file.
Two dependencies: ccxt (exchange) + pandas (candle math). Both PyPI-popular.
Quick start, strategy explanation, what's missing, risk warning.
First console output appears within 5 seconds. EMA values + current signal logged every minute.
Classic EMA(12)/EMA(26) crossover. ~15 lines of actual signal logic.
Grid bot calculator, security scanner, AI agents templates — sent when ready, no fluff.
No spam. Unsubscribe in one click. ~1 email/week max.
This is a starter / educational example. It runs on Binance testnet (virtual USDT) by default. Do not switch to mainnet until you understand every line, have backtested on historical data, and accept full responsibility for losses.
The config.json stays on your machine. Use IP whitelisting in Binance settings. Never commit config.json to git (we don't include it — only config.json.example).
The code uses ccxt, which supports 100+ exchanges. Change ccxt.binanceusdm to ccxt.bybit, ccxt.okx, etc. Signal logic stays the same.
Yes, EMA cross alone is a losing strategy long-term — about 40% win rate, false signals in ranges. That's why the full NEXUS Algo course adds volatility filters, multi-timeframe confirmation, and combined indicators. The starter shows the structure, not a profitable system.
It's MIT-licensed — fork, modify, sell. Attribution appreciated, not required.