qstrader
qstrader copied to clipboard
Recommended method to output intermediary results
I'm getting used to the code and at the moment I'm trying to compare the results that the code is producing versus a spreadsheet that I already had for the strategy that I coded. I realize that the self.statistics object contains a lot of information but I wanted to know if there is a recommended way to deal with/output intermediary results. At this time I'm creating a DataFrame in the trading_session.py file to collect some results. But the issue is that you don't know when the code is done so that you can elegantly output the info. There is also the issue of 'scope' and I rather not change the function arguments of the code since I'm pulling the latest version fairly often... I could be completely missing something here and will admit that I'm about a week into looking at the code and experimenting. So instead of going down a path that may be incorrect, may I ask if there is a way to more correctly capture results so that I can verify the code is working as expected?
Thank you.
I missed that the 'results' object is a dictionary with various useful information (duh!). At this time I think that I've answered my own question so I will close this.
Issue closed.