Example Implementations¶
Implementation Approaches¶
There are two main approaches to implementing trading bots with Traderion:
- Direct Implementation: Implement trading logic directly in your bot class by overriding event handlers
- Strategy-Based Implementation: Use modular strategy components to organize your trading logic
Both approaches are valid, and you can choose the one that best fits your needs or even combine them.
Basic Examples¶
- EMA Bot - Simple moving average crossover strategy
- MACD Bot - Moving Average Convergence Divergence strategy
- RSI Bot - Relative Strength Index strategy
Advanced Examples¶
- Composite Strategy Bot - Combining multiple strategies (optional components)
- Client Management Bot - Managing client accounts
Getting Started with Examples¶
- Clone the repository
- Navigate to the examples directory
- Run any example:
python ema_bot.py