Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (MadJack, AndrewAMD, Quad), 540 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Training curves into csv #474744
11/02/18 21:40
11/02/18 21:40
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
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?

Re: Training curves into csv [Re: Ger1] #474752
11/03/18 19:46
11/03/18 19:46
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
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

Last edited by Dalla; 11/03/18 19:46.
Re: Training curves into csv [Re: Dalla] #474799
11/05/18 22:11
11/05/18 22:11
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
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.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1