backtesting Engine system state
Our backtesting engine needs to know the state of the system at each step of the iteration through the data set. This can be accomplished by writing a function to calculate the system state based on: Buy or sell entry signals generated from our code in a previous step Buy or sell exit signals generated …