- ✅ EMA logging every minute
- 🕒 Signal confirmation only on 15-minute candle close
- 🧠 Automatic re-optimization after each SELL
- 🖥️ GUI with Initial & Re-opt trials
- 💡 Optimized live trading using best EMA parameters
A fast, fully automated, GUI-based EMA strategy optimizer and live trading bot for Binance Spot.

- ✅ GUI built with PySide6 — no CLI needed.
- 🧮 Optimizes Fast/Mid/Slow EMAs and TP automatically for best win rate.
- 🔁 Auto re-optimization after each SELL — no restart needed.
- ⏳ Live EMA trend logging every 1 minute (to monitor trend evolution).
- 🕒 Crossover detection only on 15-minute candle close — avoids fake signals.
- 💰 Fully adjustable (pair, lookback period, TP range, initial & reopt trials).
- 🧰 Executable-ready (PyInstaller supported for Windows
.exe
builds).
- Python 3.9 or higher (3.10/3.11 recommended)
- Binance API keys with Read and Trade permissions
- Internet access
sudo apt update
sudo apt install python3 python3-pip python3-venv git -y
python3 -m venv smartemaenv
source smartemaenv/bin/activate
git clone https://github.com/<yourusername>/BINANCE_SMART-EMA_SINGLE_TOKEN_TRADER.git
cd BINANCE_SMART-EMA_SINGLE_TOKEN_TRADER
pip install --upgrade pip
pip install -r requirements.txt --break-system-packages
sudo apt update
sudo apt install python3 python3-pip python3-venv git -y
python3 -m venv smartemaenv
source smartemaenv/bin/activate
git clone https://github.com/<yourusername>/BINANCE_SMART-EMA_SINGLE_TOKEN_TRADER.git
cd BINANCE_SMART-EMA_SINGLE_TOKEN_TRADER
pip install --upgrade pip
pip install -r requirements.txt
python -m venv smartemaenv
smartemaenv\Scripts\activate
git clone https://github.com/<yourusername>/BINANCE_SMART-EMA_SINGLE_TOKEN_TRADER.git
cd BINANCE_SMART-EMA_SINGLE_TOKEN_TRADER
pip install --upgrade pip
pip install -r requirements.txt
Run from inside the repo folder:
python triple_ema_gui_bot.py
- A GUI window will open.
- Enter your Binance API key, trading symbol (e.g.,
BNBUSDT
), lookback, and trial counts. - Click 💾 Save Config to store settings.
- Press
▶️ Start to begin optimization and live trading.
The bot will:
- 🔥 Run initial optimization to find best EMA & TP.
- 📈 Log EMA trend every minute.
- 📊 Wait for a 15-minute candle close to confirm crossover.
- 💵 Place BUY/SELL orders using Binance Spot API.
- 🔁 Re-optimize after each SELL using the “Re-Opt Trials” count.
# Optional but recommended
code .
source smartemaenv/bin/activate # or smartemaenv\Scripts\activate on Windows
python triple_ema_gui_bot.py
Install the Python extension in VS Code for best experience.
The bot updates and logs Fast, Mid, and Slow EMA every 60 seconds using Binance ticker data.
The bot only confirms crossovers on 15-minute candle close, avoiding fake or premature signals.
After each SELL (TP or crossdown), the bot:
- Fetches fresh OHLCV data,
- Runs the optimizer using
Re-Opt Trials
count, - Updates live trading parameters without restarting.
-
⚠️ API Keys: Never share your keys. Enable only “Spot Trading” permission. -
🖥️ First run creates a local
ema_bot_config.json
to save your settings. -
🧰 Missing Qt libraries on Linux?
sudo apt install libxcb-cursor0 libxcb-xinerama0
-
🔄 Update with:
git pull
-
🪟 EXE builds supported via PyInstaller.
If you like this project, you can support development in two ways:
-
Register with my Binance referral link: 👉 Binance Referral — CPA_00V9WDVAJY
-
Donate USDT or any ERC20/BEP20 token:
0xc22f994de2a5b55b359221b51a813b999c713751
⭐ If you find this project useful, please star the repo!
✅ Stable, fast, optimized, fully automated. EMA-based. One token. Real edge.