This PR is a suggestion on how code could be organized inside each individual sub-project. This MR organizes the trading strategies project as follows:
The root directory holds directories ge, examples, as well as runnable scripts. These items are meant as follows:
ge: Core logic of the backtesting / trading strategies project. May include trading concepts such as indicators and strategies (implemented over vectorbt), as well as other utilities such as data handling functionality.
examples: Jupyter notebooks.
Runnable scripts can be executed from the command line and make use of the core functionality defined in the ge package.
Strategy Classes
This PR proposes a new way of defining entry/exit point identification strategies. Strategies are defined in the package ge.trading.strategy and there is one file per strategy. The following are examples of two strategies that were adapted from the version before this PR:
Project Structure
This PR is a suggestion on how code could be organized inside each individual sub-project. This MR organizes the trading strategies project as follows:
The root directory holds directories
ge
,examples
, as well as runnable scripts. These items are meant as follows:ge
: Core logic of the backtesting / trading strategies project. May include trading concepts such as indicators and strategies (implemented over vectorbt), as well as other utilities such as data handling functionality.examples
: Jupyter notebooks.Runnable scripts can be executed from the command line and make use of the core functionality defined in the
ge
package.Strategy Classes
This PR proposes a new way of defining entry/exit point identification strategies. Strategies are defined in the package
ge.trading.strategy
and there is one file per strategy. The following are examples of two strategies that were adapted from the version before this PR: