Replies: 9 comments 11 replies
-
The two most obvious differences between what I run and this are the capital (100k, rather than £400k or about $500k) which will reduce performance overall. Also, the .csv files don't cover all the markets I cover. Both of these effects will lead to a lack of diversification which may manifest in large tracking error for some periods. Does your backtest show big long positions in energy markets in Feb/March? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for taking the time to answer my question. To answer your question on energy positions as of Feb/March 2022, I exported system.optimisedPositions.get_optimised_weights_df as a CSV and attached it here. Correct me if that is not the intended way. It is too large to display here for all periods but below are the positions for the last day of February. There are long positions in BRENT-LAST, CRUDE_W_mini, GASOILINE, HEATOIL; out of total of 31 positions (account size of 1 million).
Anyone should be able to reproduce this output using a fresh git clone of pysystemtrade. I posted the code used to do it for reference in my post above and correct me if that is not the intended way. Thanks. |
Beta Was this translation helpful? Give feedback.
-
It also show very slightly negative gross returns for 2022 (judged by |
Beta Was this translation helpful? Give feedback.
-
Interesting, thanks for sharing this idea and for suggesting to look at the impact of the base currency. To be clear, all my comments from the start of this discussion are for a capital of 1 million ( Regarding the impact of the base currency, here are % returns in 2022 with and for comparison here are % returns in 2022 with There is indeed some material impact of the base currency as during the second half of the year the returns seem to decline more slowly with GBP than with USD. However, the two curves are very similar for 2022, both results in closer to flat returns for the year, slightly negative with USD, slightly positive with GBP, both much lower than Rob's realized returns in the same period: To be clear, the backtested returns look fantastic over the entire history with either base currencies. Differences between backtested and realized are expected but given these seem somewhat important for 2022 (do they?), this seems an opportunity to look into it and understand better what we should expect with the system or find if we (or I?) might have a bug or misconfiguration perhaps. Note: in case you wonder why the cumulative % return over the entire history is in the 1400% for USD vs. only 650% for GPB, that seems to be because with USD as the base currency, the backtesting starts doing investments ~1970 while with GBP investments don't start until 1991-03-06, which is the day after the file GBPUSD.csv has its first rate. |
Beta Was this translation helpful? Give feedback.
-
There might be some more colour on this when I do my april blog post on performance which will include live vs realised. |
Beta Was this translation helpful? Give feedback.
-
So I take it that they are already directly comparable. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi Rob, May I ask if in your own backtesting you get the expected high returns for 2022? |
Beta Was this translation helpful? Give feedback.
-
I won't know until April |
Beta Was this translation helpful? Give feedback.
-
nice, thanks for material |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone,
If my goal is to backtest rob_system out of the box (with a fresh git clone of pysystemtrade, using the supplied CSV files, before any code or config change), is the following the expected way to do it, please?
It shows the following great stats:
The reason for asking is that the account curve generated this way shows negative cumulative returns in 2022 while Rob's realized returns were great in the same period. In particular the account curve does not seem to mimic the very large returns that Rob had in Feb/Mar.
So, I wondered whether the results out of the box should be expected to be closer (am I doing something wrong?) or if this is as expected?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions