Training curves into csv

Posted By: Ger1

Training curves into csv - 11/02/18 21:40

I am trying to export curves from each training run into csv.
The manual states that when curves are set up equity curves of all optimize parameter variants are exported.

I tried following:

set(LOGFILE+PARAMETERS);
Curves="C:\Program Files\Zorro\Log\test.csv"

When I train the strategy a test.csv file is created but only nonsensical results (the file only shows strange symbols) are shown.

Could anyone advise on how to properly do it?
Posted By: Dalla

Re: Training curves into csv - 11/03/18 19:46

You are seeing "nonsensical" results because the curves file is a binary file, not a CSV. See an example on the bottom of this page on how to read it:
http://zorro-project.com/manual/en/export.htm#balance
Posted By: Ger1

Re: Training curves into csv - 11/05/18 22:11

Hi Dalla,

thanks that's of great help. I haven't realised that it's binary.

So with the code snippet I can ready the end values from the binary file into Zorro.

My goal is to get a pnl.csv file similar to the one created during the test run.

For getting the daily balances I can simply run a loop from 0 to (num-1) and print the profit to a csv.

But how can I access the date column in the binary file?

Thanks.
© 2024 lite-C Forums