This template serves as a foundation for creating your own Jesse project, enabling a "brute force" approach to strategy optimization.
"Brute force" refers to a method where all possible configurations of a given strategy are tested to identify the optimal settings. Unlike heuristic methods, this approach relies on exhaustive computation to find the best solution based on specified criteria, without taking any shortcuts.
Assuming you have already installed the necessary environment dependencies and imported candles, follow the steps below to create your project:
# Change "my-project" to any name you prefer
git clone https://github.com/nick-dolan/brute-force-project-template my-project
# Create a .env file from the example
cp .env.example .env
To initiate a brute-force, type:
python brute-force.py
This setup works out-of-the-box with an example strategy from example-strategies.
The script generates all possible permutations from strategy hyperparameters. You can specify the "step" in hyperparameters; if not specified, the default step value is 0.1
if float and 1
if int.
Upon completion, you'll receive a .csv file containing all results along with the hyperparameters in /storage/brute-force
:
To launch the standard UI, type:
jesse run
Now, open localhost:9000 in your browser to view the dashboard.