Backtesting question

thanks for your reply.

So if I understand you correctly I first need to calculate and fill the Buy, Sell, Short, Cover etc. arrays which would be the first phase of the backtest. And then I can do the the second phase? I thought I read somewhere that this was not necessary. Let me search for that comment, will get back to you.

That was this comment:

but maybe the context is different. Will have a look at it again