Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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