Skip to content

Latest commit

 

History

History
executable file
·
43 lines (26 loc) · 1.83 KB

README.md

File metadata and controls

executable file
·
43 lines (26 loc) · 1.83 KB

Jesse Brute-Force script

It's a regular Jesse's project template including a script for batch backtesting using the Research module.

"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.

Usage

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.

Screenshot 2023-10-30 at 14 11 42-min

Upon completion, you'll receive a .csv file containing all results along with the hyperparameters in /storage/brute-force:

Screenshot 2023-10-30 at 17 04 12-min

⚠️ Currently only works with one route.

To launch the standard UI, type:

jesse run

Now, open localhost:9000 in your browser to view the dashboard.