Technical Documentation

The ndxtest package contains the following modules:

  • backtest.py

  • indicators.py

  • utils.py

backtest.py

Class ndxtest.backtest.BackTest

Class ndxtest.backtest.Strategy

indicators.py

`ndxtest.indicators` contains indicators that can be used to build trading strategies.

General indicators

The following functions are general indicators:

Crossover indicators

The following functions can be used to build conditions based on crossovers:

Candlesticks and price action

The following functions detect certain types of candlesticks or price actions:

utils.py

`ndxtest.utils` contains the internally used class ndxtest.utils.Portfolio as well as functions helping to maintain and update the data library.

Class ndxtest.utils.LibManager

Class ndxtest.utils.Portfolio

Miscellaneous