开源库

Freqtrade

freqtrade/freqtrade★ 28k+

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

语言 Python资产 crypto市场 spot, derivatives类型 framework

基于指标的模板

SampleStrategy
Freqtrade
指标驱动beginner

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

速度⚡⚡
准确度📊📊📊
源代码:freqtrade/templates/sample_strategy.py

机器学习模型(FreqAI)

FreqAI 预测模型用于基于机器学习的价格预测。每个模型都需要通过 Freqtrade 的特征流水线进行特征工程。

LightGBMRegressor
Freqtrade
机器学习intermediate

Gradient boosting regression model for price movement prediction using LightGBM.

速度⚡⚡⚡
准确度📊📊📊
关键参数
n_estimators1000Number of boosting rounds
learning_rate0.01Step size shrinkage
源代码:freqai/prediction_models/LightGBMRegressor.py
LightGBMClassifier
Freqtrade
机器学习intermediate

Gradient boosting classification model for directional prediction (up/down/neutral).

速度⚡⚡⚡
准确度📊📊📊
关键参数
n_estimators1000Number of boosting rounds
源代码:freqai/prediction_models/LightGBMClassifier.py
XGBoostRegressor
Freqtrade
机器学习intermediate

XGBoost-based regression model for continuous value prediction.

速度⚡⚡⚡
准确度📊📊📊
关键参数
n_estimators1000Number of boosting rounds
max_depth6Maximum tree depth
源代码:freqai/prediction_models/XGBoostRegressor.py
XGBoostClassifier
Freqtrade
机器学习intermediate

XGBoost-based classification model for directional prediction.

速度⚡⚡⚡
准确度📊📊📊
关键参数
n_estimators1000Number of boosting rounds
源代码:freqai/prediction_models/XGBoostClassifier.py
CatboostRegressor
Freqtrade
机器学习intermediate

CatBoost gradient boosting model with native categorical feature support.

速度⚡⚡
准确度📊📊📊
关键参数
iterations1000Number of boosting iterations
源代码:freqai/prediction_models/CatboostRegressor.py
PyTorchMLPRegressor
Freqtrade
机器学习advanced

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

速度⚡⚡
准确度📊📊📊
关键参数
hidden_dim128Hidden layer dimension
dropout_percent0.2Dropout rate
源代码:freqai/prediction_models/PyTorchMLPRegressor.py
PyTorchTransformerRegressor
Freqtrade
机器学习advanced

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

速度
准确度📊📊📊📊
关键参数
num_heads8Number of attention heads
num_layers2Number of transformer layers
源代码:freqai/prediction_models/PyTorchTransformerRegressor.py

强化学习(FreqAI)

基于 Stable Baselines3 构建的强化学习智能体。智能体通过与环境交互而非标注数据来学习交易决策。

ReinforcementLearner
Freqtrade
强化学习advanced

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

速度⚡⚡
准确度📊📊📊
关键参数
model_typePPORL algorithm (PPO, A2C, etc.)
total_timesteps10000Training timesteps
源代码:freqai/prediction_models/ReinforcementLearner.py

Freqtrade 策略与 FreqAI 模型,算法参考

SampleStrategy (Freqtrade)
Template strategy demonstrating basic technical indicator usage for entry/exit signals. 源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqtrade/templates/sample_strategy.py.
LightGBMRegressor (Freqtrade)
Gradient boosting regression model for price movement prediction using LightGBM. 关键参数: n_estimators (Number of boosting rounds), learning_rate (Step size shrinkage).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/LightGBMRegressor.py.
LightGBMClassifier (Freqtrade)
Gradient boosting classification model for directional prediction (up/down/neutral). 关键参数: n_estimators (Number of boosting rounds).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/LightGBMClassifier.py.
XGBoostRegressor (Freqtrade)
XGBoost-based regression model for continuous value prediction. 关键参数: n_estimators (Number of boosting rounds), max_depth (Maximum tree depth).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/XGBoostRegressor.py.
XGBoostClassifier (Freqtrade)
XGBoost-based classification model for directional prediction. 关键参数: n_estimators (Number of boosting rounds).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/XGBoostClassifier.py.
CatboostRegressor (Freqtrade)
CatBoost gradient boosting model with native categorical feature support. 关键参数: iterations (Number of boosting iterations).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/CatboostRegressor.py.
PyTorchMLPRegressor (Freqtrade)
Multi-layer perceptron neural network for regression-based price prediction. 关键参数: hidden_dim (Hidden layer dimension), dropout_percent (Dropout rate).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/PyTorchMLPRegressor.py.
PyTorchTransformerRegressor (Freqtrade)
Transformer architecture for time-series regression using self-attention mechanism. 关键参数: num_heads (Number of attention heads), num_layers (Number of transformer layers).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/PyTorchTransformerRegressor.py.
ReinforcementLearner (Freqtrade)
Reinforcement learning agent using Stable Baselines3 (PPO/A2C/etc.) for trading decisions. 关键参数: model_type (RL algorithm (PPO, A2C, etc.)), total_timesteps (Training timesteps).源代码: https://github.com/freqtrade/freqtrade/blob/develop/freqai/prediction_models/ReinforcementLearner.py.