Replies: 4 comments 1 reply
-
Take a look at the Backtesting doc - in particular the section that describes the objects for looking at results.
...you can display a few charts at once, for instance:
I've cut and paste this from my own code, so you'll need to tweak it to work for you. |
Beta Was this translation helpful? Give feedback.
-
I also wrote a function that dumps a whole of the results columns into csv which can then be analysed/ charted in Excel. I tried to write it in a way to easily add extra result columns... there's probably a better way of doing this - I'm not a Python expert:
Again, I've cut & paste this from my own code - you'll need to tweak it to get it to work for you. regards, |
Beta Was this translation helpful? Give feedback.
-
Hi David, Thanks a lot, I went through P&L contribution of each instrument, and the biggest issues arise from Ethanol and Euribor. On the cost reports, Rob also points out these two having massive SR costs. I thought I had excluded them in the backtest but apparently not. Now I am running without them. I used the following code to diagnose.
|
Beta Was this translation helpful? Give feedback.
-
Thank you, I was using portfolio() method of accounts to see the P&L, let me try system.accounts.optimised_portfolio() and calculate sharp based on that. |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone,
I ran my first backtest trial using dynamic optimised system, and something is going terribly wrong. Entire capital goes to zero quickly, please see the jpeg image.
I wanted to ask how one should go about diagnosing where the problem originates from. A particular instrument, particular rule, data issue, config issue?
I am attaching my config file, estimated weights as well as code showing how I ran the backtest in Jupyter. Any pointers greatly appreciated.
config.out.txt
config_out.txt
Beta Was this translation helpful? Give feedback.
All reactions