nick-dolan / brute-force-project-template

Project template for Jesse, including a brute-force testing script that outputs results in a CSV file for quick and effective data examination.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jesse Brute-Force script

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.

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, if your strategy has more than one route you can edit the source code here by yourself.

To launch the standard UI, type:

jesse run

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

About

Project template for Jesse, including a brute-force testing script that outputs results in a CSV file for quick and effective data examination.

License:MIT License


Languages

Language:Python 100.0%