Skip to content

PahtrikProper/BINANCE-SMART-EMA-SINGLE-TOKEN-TRADER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

  • ✅ 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

BINANCE SMART-EMA SINGLE TOKEN TRADER

A fast, fully automated, GUI-based EMA strategy optimizer and live trading bot for Binance Spot.

image

Table of Contents


1. Features

  • ✅ 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).

2. Prerequisites

  • Python 3.9 or higher (3.10/3.11 recommended)
  • Binance API keys with Read and Trade permissions
  • Internet access

3. Setup Instructions

A. Linux on ChromeOS (Crostini)

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

B. Ubuntu Linux

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

C. Windows 11

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

4. Running the Bot

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.

5. Visual Studio Code Setup (All Platforms)

# 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.


6. Strategy Behavior

📊 1-Minute EMA Logging

The bot updates and logs Fast, Mid, and Slow EMA every 60 seconds using Binance ticker data.

🕒 15-Minute Candle Confirmation

The bot only confirms crossovers on 15-minute candle close, avoiding fake or premature signals.

🔁 Auto Re-Optimization

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.

7. Notes & Troubleshooting

  • ⚠️ 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.


💸 Sponsor / Donate

If you like this project, you can support development in two ways:

  1. Register with my Binance referral link: 👉 Binance Referral — CPA_00V9WDVAJY

  2. Donate USDT or any ERC20/BEP20 token: 0xc22f994de2a5b55b359221b51a813b999c713751

Donate USDT QR Code

⭐ If you find this project useful, please star the repo!


Stable, fast, optimized, fully automated. EMA-based. One token. Real edge.