π Delta EMA Order Placer β Algorithmic Crypto Trading

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
β¨ 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)