Back to projects
Sep 15, 2025
3 min read

Delta EMA Order Placer

An algorithmic trading tool that automates crypto order execution on Delta Exchange based on Exponential Moving Average (EMA) crossovers.

πŸ“‰ Delta EMA Order Placer β€” Algorithmic Crypto Trading

Delta EMA Banner

Delta EMA Order Placer is a specialized algorithmic trading utility engineered for the Delta Exchange ecosystem. It automates the execution of trend-following strategies using Exponential Moving Average (EMA) crossover logic, enabling traders to lock in entries and exits with mathematical precision and zero emotional bias.

Combining Python’s analytical power with a lightweight Dash interface, it provides a β€œset-and-forget” solution for managing high-volatility crypto positions.


πŸ› οΈ Technology Stack

Python Dash Pandas NumPy Delta Exchange WebSockets


✨ Features at a Glance

πŸ€– High-Precision Algo Engine

  • EMA Crossover Strategy: Automated Long/Short entry triggers based on fast and slow EMA intersections.
  • Low-Latency Execution: Direct integration with Delta Exchange’s REST API for rapid order placement.
  • Real-Time Data Streaming: Uses WebSockets to ingest live price ticks, ensuring the strategy acts on the most current data.

πŸ–₯️ Monitoring Dashboard

  • Visual Analytics: A clean Dash interface that displays live account balance, current positions, and active PnL.
  • Interactive Charts: Dynamic Plotly charts showing the price action overlaid with your configured EMA lines.
  • Execution Logs: A real-time terminal window inside the dashboard that tracks every API call and trade decision.

βš™οΈ Risk Management

  • Automated Stop-Loss/Take-Profit: Once an order is placed, the system can automatically attach exit triggers to protect your capital.
  • Dynamic Position Sizing: Configurable risk-per-trade settings that adjust based on your current wallet balance.

πŸ“ Project Structure

delta-ema-placer/
β”œβ”€β”€ app.py               # Main Dash Application & UI logic
β”œβ”€β”€ engine/              # Core Trading Logic
β”‚   β”œβ”€β”€ strategy.py      # EMA Crossover implementation
β”‚   β”œβ”€β”€ delta_api.py     # Wrapper for Delta Exchange REST/WS
β”‚   └── logger.py        # Professional trade logging
β”œβ”€β”€ config/              # User Configuration
β”‚   └── settings.yaml    # EMA periods, Risk settings, Symbols
β”œβ”€β”€ utils/               # Technical Analysis helpers
└── requirements.txt     # Python dependencies

πŸš€ Installation & Setup

1. Prerequisites

  • Python 3.9+
  • Delta Exchange Account (with API Key and Secret)

2. Clone & Install

git clone https://github.com/aditya-2129/delta_ema_order_placer_dash_window.git
cd delta_ema_order_placer_dash_window
pip install -r requirements.txt

3. API Configuration

Create a config/secrets.json file (or use environment variables):

{
  "api_key": "your_delta_key",
  "api_secret": "your_delta_secret"
}

4. Adjust Strategy

Edit config/settings.yaml:

symbol: "BTCUSD"
ema_fast: 9
ema_slow: 21
risk_percentage: 2.0

5. Launch Dashboard

python app.py

Visit http://localhost:8050 to monitor the algorithm.


⚠️ Disclaimer

Trading cryptocurrencies involves significant risk. This tool is for educational and portfolio demonstration purposes. Always test on a testnet before using real capital.


πŸ“„ License

Distributed under the MIT License.

Designed & Developed by Aditya (aka aditya-2129)