オープンソースライブラリ

Freqtrade

freqtrade/freqtrade

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

言語 Pythonアセット crypto市場 spot, derivativesタイプ framework

参照元と実践の出発点

以下のモデルのパスはFreqtrade developリビジョンで確認しました c0a991f (2026-09-24). これらは実装例であり、速度、精度、取引収益の評価値は測定していません。

公式FreqAIガイドはFreqaiExampleStrategy、LightGBMRegressor、config_freqai.example.jsonから始めます。サンプル戦略は学習とテスト用で、本番取引向けではありません。参照: FreqAI.

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

最初にFreqAIの依存関係を導入し、設定例を確認してください。予測を戦略に使う前に、時系列順のデータと取引コストで検証してください。

インジケーターベースのテンプレート

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.

ソース:freqtrade/freqai/prediction_models/LightGBMRegressor.py
LightGBMClassifier
Freqtrade
機械学習intermediate

LightGBM classification model for user-defined discrete labels.

ソース:freqtrade/freqai/prediction_models/LightGBMClassifier.py
XGBoostRegressor
Freqtrade
機械学習intermediate

XGBoost-based regression model for continuous value prediction.

ソース:freqtrade/freqai/prediction_models/XGBoostRegressor.py
XGBoostClassifier
Freqtrade
機械学習intermediate

XGBoost classification model for user-defined discrete labels.

ソース:freqtrade/freqai/prediction_models/XGBoostClassifier.py
PyTorchMLPRegressor
Freqtrade
機械学習advanced

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

ソース:freqtrade/freqai/prediction_models/PyTorchMLPRegressor.py
PyTorchTransformerRegressor
Freqtrade
機械学習advanced

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

ソース:freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py

強化学習(FreqAI)

Stable Baselines3 上に構築された強化学習エージェント。ラベル付きデータではなく環境との相互作用を通じてエージェントが取引判断を学習します。

ReinforcementLearner
Freqtrade
強化学習advanced

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

ソース:freqtrade/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/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/templates/sample_strategy.py.
LightGBMRegressor (Freqtrade)
Gradient boosting regression model for price movement prediction using LightGBM. ソース: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/LightGBMRegressor.py.
LightGBMClassifier (Freqtrade)
LightGBM classification model for user-defined discrete labels. ソース: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/LightGBMClassifier.py.
XGBoostRegressor (Freqtrade)
XGBoost-based regression model for continuous value prediction. ソース: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/XGBoostRegressor.py.
XGBoostClassifier (Freqtrade)
XGBoost classification model for user-defined discrete labels. ソース: 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. ソース: 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. ソース: 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. ソース: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/ReinforcementLearner.py.