Export capital curve to Excel

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #111758 quote
    Wilko
    Participant
    Senior

    I would like to export the capital curve of a backtest to enable me to perform eg MC simulations on the backtest. Does anyone have a suggestion for how I could extract the values for the capital curve from PRT?

     

    Ideally it would be a csv-file with values for each date.

     

    Thanks for any ideas!

    #111794 quote
    Nicolas
    Keymaster
    Master
    #112045 quote
    Wilko
    Participant
    Senior

    @Nicolas

    Thank you for your response! After having reviewed the links you posted, I cannot see that any of them detail exporting the actual capital curve, ie. one value for each date. Or is there something I am missing here?

    Kind regards,

    Fredrik

    #112049 quote
    Nicolas
    Keymaster
    Master

    Right, because this is not available in the backtest result window, but you can easily compute it into Excel with a simple formula in each cell:

    Capital curve = capital at start + PnL

    Wilko thanked this post
    #112158 quote
    Wilko
    Participant
    Senior

    Thank you for your suggestion! Please excuse if I am not understanding this right, but if I employ your method, I suspect that I will not get a proper idea of portfolio risk as the capital curve will only reflect the results of closed positions, not the variation in PnL due to open positions, right? To compute eg diversification benefits resulting from combining one system with another, one only gets half the picture with your proposed method. Or do I misunderstand you?

    #112160 quote
    Nicolas
    Keymaster
    Master

    So you want the software to export a table with rows that contain  |bar date|live equity| ?

    Assuming that the backtest is made on a 200k bars history, the table would be 200.000 rows long?

    ProBacktest isn’t populating this kind of table, you’ll have to make it by yourself in Excel.

    #112168 quote
    Wilko
    Participant
    Senior

    Yes, that is exactly what I was hoping to be able to export from PRT. As PRT has very limited risk assessment tools for individual systems and lacks all ability to assess risk on a portfolio of systems, this needs to be done manually or in a separate system. The challenge, however, is that even though PRT calculates the required raw data, the data is not exportable. And to recreate the capital curve in Excel as you suggest, is impossible without complementing the exportable data with price data and building ones’s own pricing engine (a redundant operation, given PRT already does it). Therefore the reason for wanting to export the capital curve as such. As I haven’t managed to figure out a way to achieve that, I was hoping that a member of the forum had perhaps found a way to export the capital curve raw data.

     

    PS As a sidenote: I can understand why PRT is unable to offer the functionality (openly) as it would open up ability to export historical price series, which likely have been licensed to PRT without right to redistribute.

    #112179 quote
    Nicolas
    Keymaster
    Master

    Workaround for exporting price series: https://www.prorealcode.com/topic/how-to-extract-every-candles-data/#post-96205

    Enjoy 😉

    Wilko thanked this post
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Export capital curve to Excel


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Wilko @wilko Participant
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by Nicolas
6 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/31/2019
Status: Active
Attachments: No files
Logo Logo
Loading...