Skip to content

Example Implementations

Implementation Approaches

There are two main approaches to implementing trading bots with Traderion:

  1. Direct Implementation: Implement trading logic directly in your bot class by overriding event handlers
  2. 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

Getting Started with Examples

  1. Clone the repository
  2. Navigate to the examples directory
  3. Run any example:
    python ema_bot.py
    

Next Steps