How jimtin/algorithmic_trading_bot works
This repository is a tutorial-oriented algorithmic trading bot, not a single standalone trading product. The runtime supports exchange access, technical indicators, strategy signals, order handling, visualization, and backtesting. The clearest principal workflow is market data into strategy analysis and signal generation, with exchange order execution; the sampled root entry point itself only demonstrates cancelling a Binance order. Several strategy and backtesting relationships are documented by the source index, but their full control flow was not sampled.
Main entry points: mt5_lib.py MetaTrader Access · indicator_lib.py Indicators · ema_cross_strategy.py EMA Strategy · macd_crossover_strategy.py MACD Crossover
Components 13
Exchange Access
- MetaTrader Access
mt5_lib.py - Binance Access
binance_lib.py
Analysis and Signals
- Indicators
indicator_lib.py - EMA Strategy
ema_cross_strategy.py - MACD Crossover
strategies/macd_crossover_strategy.py - MACD Zero Cross
strategies/macd_zero_cross_strategy.py
Trading and Backtests
- Bot Entry
main.py - Risk Helpers
helper_functions.py - Order Handling
make_trade.py - Backtesting Engine
backtest_lib.py - EMA Backtest Strategy
backtesting_py_strategies/ema_cross.py
Visualization
- Charts and Displays
display_lib.py
Other components
- Bot Operator
Connections 14
- Bot Operator → Bot Entry: runs
main.py - Bot Entry → Binance Access: cancels order
main.py - MACD Crossover → MetaTrader Access: retrieves history
strategies/macd_crossover_strategy.py - MACD Crossover → Indicators: calculates signals
strategies/macd_crossover_strategy.py - MACD Zero Cross → Indicators: calculates zero cross
strategies/macd_zero_cross_strategy.py - EMA Strategy → MetaTrader Access: uses market data
ema_cross_strategy.py - EMA Strategy → Indicators: uses indicators
ema_cross_strategy.py - EMA Strategy → Order Handling: submits trades
ema_cross_strategy.py - Risk Helpers → MetaTrader Access: queries trade data
helper_functions.py - Risk Helpers → Binance Access: retrieves candles
helper_functions.py - Order Handling → MetaTrader Access: sends orders
make_trade.py - Backtesting Engine → MetaTrader Access: retrieves history
backtest_lib.py - Backtesting Engine → EMA Backtest Strategy: uses strategy
backtest_lib.py - Indicators → Charts and Displays: adds chart lines
indicator_lib.py