Install Freqtrade directly on Windows, as Freqtrade also supports installation via Docker and in an Ubuntu environment. If you understand development, it is recommended to install directly on Docker or in a local Ubuntu environment. However, most users are likely using Windows, so this tutorial primarily focuses on direct installation in a Windows environment.
Official documentation: https://www.freqtrade.io/en/stable/windows_installation/
Open PowerShell in the target directory (you need to right-click and open with administrator privileges), execute the following command:
git clone https://github.com/freqtrade/freqtrade.git
After pulling is complete, execute the following code,
Set-ExecutionPolicy -ExecutionPolicy Bypass
When prompted to choose to execute strategy changes, be sure to select yes.
cd freqtrade
Here you need to find the installation file location, generally by default it is in C:\Users\XXXX\freqtrade, then in PowerShell type the command LS to check if there is a file named setup.sp1
Run the script:
.\setup.ps1
The program will install automatically.
3. Create a virtual environment
python -m venv .env
4. Activate the virtual environment
source .venv/Scripts/activate
After successful activation, the command will have the prefix (.env).
5. Verify if the installation was successful
Input
freqtrade --version
If you see the following information, it means you have installed correctly.
5. Use sample strategy for backtesting
freqtrade new-config --config config.json
freqtrade create-userdir --userdir user_data
freqtrade download-data --config config.json
freqtrade backtesting --strategy sample_strategy