Emmatassone / GEN-Bots

1 stars 0 forks source link

Draft: Add package for common logic and show custom vbt indicators #3

Closed chao5monkey closed 10 months ago

chao5monkey commented 10 months ago

This MR attempts the following:

  1. To define a basic package structure for common logic such as custom indicators, algorithms, mathematical procedures, etc. A custom vectorbt indicator has been defined in a ge.analysis.indicators along with a test.

  2. To show how to define and use custom vectorbt indicators. This may help people new to vectorbt (e.g. me) to get familiar with the procedures. It will definitely save time if we are all aware of the features that the underlying framework provides. The custom-defined indicator is based on source code in the vectorbt repository. There is also a notebook that shows how to initialize and use a custom indicator.

  3. To show how to use Numba to optimize Python source code. Numba is a JIT compiler that generates LLVM code from Python code, and it can speed up computational processes.