Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
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
1 registered members (7th_zorro), 529 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trade Stats in EXITRUN #464606
03/01/17 08:01
03/01/17 08:01
Joined: Aug 2016
Posts: 95
Wien
T
trenki2 Offline OP
Junior Member
trenki2  Offline OP
Junior Member
T

Joined: Aug 2016
Posts: 95
Wien
For my stock trading algorithm I wanted to compute trade statistics while training in the EXITRUN and then sort the stocks based on performance and only use the best 25 stocks in the test run. For that I would have written a file containing the stock selection and read that during the test run.

Now I tried a bit but found out, that I somehow don't have all the statistics of all the stocks in the EXITRUN.

It seems the script is run multiple times, every time with just one asset and it is run multiple times, for each parameter step once.

So I get multiple EXITRUNs but I don't know which one will be the correct one.


How should I do this? I want to compute a stock selection at the end of the WFOCycle and only trade that selection in TESTMODE and TRAINMODE.

Re: Trade Stats in EXITRUN [Re: trenki2] #464704
03/06/17 17:21
03/06/17 17:21
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
The objective() function is for calculating trade statistics in the training mode. The EXITRUN won't work since the statistics are only known after the run.

Re: Trade Stats in EXITRUN [Re: jcl] #464709
03/06/17 20:00
03/06/17 20:00
Joined: Aug 2016
Posts: 95
Wien
T
trenki2 Offline OP
Junior Member
trenki2  Offline OP
Junior Member
T

Joined: Aug 2016
Posts: 95
Wien
This does not answer my actual question:

How should I do this? I want to compute a stock selection at the end of the WFOCycle and only trade that selection in TESTMODE and TRAINMODE.

But I assume then there is no way.

Re: Trade Stats in EXITRUN [Re: trenki2] #464718
03/07/17 07:51
03/07/17 07:51
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
I admit that I do not really understand the problem. It's a programming language, you can calculate anything you want. If you can't use the statistics in the objective function, then why don't you do your own statistics? Zorro has lots of statistics functions.


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