Open Source Library

Freqtrade

freqtrade/freqtrade

Crypto trading bot framework with FreqAI ML extension supporting multiple machine learning and deep learning models.

Language PythonAssets cryptoMarkets spot, derivativesType framework

Source and practical starting point

Model paths below were verified against Freqtrade develop revision c0a991f (2026-09-24). These are example implementations; no speed, accuracy or trading-return ratings have been measured.

The official FreqAI guide starts with FreqaiExampleStrategy, LightGBMRegressor and config_freqai.example.json. Its example strategy is for learning and testing, not production trading. See FreqAI.

freqtrade trade --config config_examples/config_freqai.example.json --strategy FreqaiExampleStrategy --freqaimodel LightGBMRegressor --strategy-path freqtrade/templates

Install FreqAI dependencies and review the example configuration first. Validate with time-ordered data and trading costs before using predictions in a strategy.

Indicator-based Templates

SampleStrategy
Freqtrade
Indicator-Basedbeginner

Template strategy demonstrating basic technical indicator usage for entry/exit signals.

Source:freqtrade/templates/sample_strategy.py

Machine Learning Models (FreqAI)

FreqAI prediction models for machine learning-based price prediction. Each model requires feature engineering via Freqtrade's feature pipeline.

LightGBMRegressor
Freqtrade
Machine Learningintermediate

Gradient boosting regression model for price movement prediction using LightGBM.

Source:freqtrade/freqai/prediction_models/LightGBMRegressor.py
LightGBMClassifier
Freqtrade
Machine Learningintermediate

LightGBM classification model for user-defined discrete labels.

Source:freqtrade/freqai/prediction_models/LightGBMClassifier.py
XGBoostRegressor
Freqtrade
Machine Learningintermediate

XGBoost-based regression model for continuous value prediction.

Source:freqtrade/freqai/prediction_models/XGBoostRegressor.py
XGBoostClassifier
Freqtrade
Machine Learningintermediate

XGBoost classification model for user-defined discrete labels.

Source:freqtrade/freqai/prediction_models/XGBoostClassifier.py
PyTorchMLPRegressor
Freqtrade
Machine Learningadvanced

Multi-layer perceptron neural network for regression-based price prediction.

Source:freqtrade/freqai/prediction_models/PyTorchMLPRegressor.py
PyTorchTransformerRegressor
Freqtrade
Machine Learningadvanced

Transformer architecture for time-series regression using self-attention mechanism.

Source:freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py

Reinforcement Learning (FreqAI)

Reinforcement learning agents built on Stable Baselines3. The agent learns trading decisions through environment interaction rather than labeled data.

ReinforcementLearner
Freqtrade
Reinforcement Learningadvanced

Reinforcement learning agent using Stable Baselines3 (PPO/A2C/etc.) for trading decisions.

Source:freqtrade/freqai/prediction_models/ReinforcementLearner.py

Freqtrade Strategies and FreqAI Models, Algorithm Reference

SampleStrategy (Freqtrade)
Template strategy demonstrating basic technical indicator usage for entry/exit signals. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/templates/sample_strategy.py.
LightGBMRegressor (Freqtrade)
Gradient boosting regression model for price movement prediction using LightGBM. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/LightGBMRegressor.py.
LightGBMClassifier (Freqtrade)
LightGBM classification model for user-defined discrete labels. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/LightGBMClassifier.py.
XGBoostRegressor (Freqtrade)
XGBoost-based regression model for continuous value prediction. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/XGBoostRegressor.py.
XGBoostClassifier (Freqtrade)
XGBoost classification model for user-defined discrete labels. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/XGBoostClassifier.py.
PyTorchMLPRegressor (Freqtrade)
Multi-layer perceptron neural network for regression-based price prediction. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/PyTorchMLPRegressor.py.
PyTorchTransformerRegressor (Freqtrade)
Transformer architecture for time-series regression using self-attention mechanism. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py.
ReinforcementLearner (Freqtrade)
Reinforcement learning agent using Stable Baselines3 (PPO/A2C/etc.) for trading decisions. Source: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/ReinforcementLearner.py.