StratCraftStratCraftItaliano
Libreria open source

Freqtrade

freqtrade/freqtrade

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

Linguaggio PythonAsset cryptoMercati spot, derivativesTipo framework

Fonti e punto di partenza pratico

I percorsi dei modelli sono stati verificati con la revisione develop di Freqtrade c0a991f (2026-09-24). Sono implementazioni di esempio; non sono stati misurati punteggi di velocità, accuratezza o rendimento di trading.

La guida ufficiale FreqAI parte da FreqaiExampleStrategy, LightGBMRegressor e config_freqai.example.json. La strategia di esempio serve per apprendimento e test, non per trading in produzione. Vedi FreqAI.

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

Installare prima le dipendenze FreqAI e controllare la configurazione di esempio. Validare su dati ordinati nel tempo e con costi di trading prima di usare le previsioni in una strategia.

Template basati su indicatori

SampleStrategy
Freqtrade
Basato su indicatoribeginner

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

Sorgente:freqtrade/templates/sample_strategy.py

Modelli di machine learning (FreqAI)

Modelli di previsione FreqAI per la previsione dei prezzi basata sul machine learning. Ogni modello richiede feature engineering tramite la pipeline di feature di Freqtrade.

LightGBMRegressor
Freqtrade
Machine Learningintermediate

Gradient boosting regression model for price movement prediction using LightGBM.

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

LightGBM classification model for user-defined discrete labels.

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

XGBoost-based regression model for continuous value prediction.

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

XGBoost classification model for user-defined discrete labels.

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

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

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

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

Sorgente:freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py

Apprendimento per rinforzo (FreqAI)

Agenti di apprendimento per rinforzo costruiti su Stable Baselines3. L'agente apprende decisioni di trading tramite l'interazione con l'ambiente anziché dati etichettati.

ReinforcementLearner
Freqtrade
Apprendimento per rinforzoadvanced

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

Sorgente:freqtrade/freqai/prediction_models/ReinforcementLearner.py

Strategie Freqtrade e modelli FreqAI, riferimento algoritmi

SampleStrategy (Freqtrade)
Template strategy demonstrating basic technical indicator usage for entry/exit signals. Sorgente: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/templates/sample_strategy.py.
LightGBMRegressor (Freqtrade)
Gradient boosting regression model for price movement prediction using LightGBM. Sorgente: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/LightGBMRegressor.py.
LightGBMClassifier (Freqtrade)
LightGBM classification model for user-defined discrete labels. Sorgente: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/LightGBMClassifier.py.
XGBoostRegressor (Freqtrade)
XGBoost-based regression model for continuous value prediction. Sorgente: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/XGBoostRegressor.py.
XGBoostClassifier (Freqtrade)
XGBoost classification model for user-defined discrete labels. Sorgente: 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. Sorgente: 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. Sorgente: 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. Sorgente: https://github.com/freqtrade/freqtrade/blob/c0a991f5632cb900075ff2864b6671ed71a319d7/freqtrade/freqai/prediction_models/ReinforcementLearner.py.