Gamestudio Links
Zorro Links
Newest Posts
U4GM Arc Raiders: This Week's Vulpine Cosmetics
by Benniehench03. 08/12/26 05:23
What U4gm Expects From the CFB 27 Patch
by Benniehench03. 08/12/26 03:49
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Pause button for evaluation shell?
by jcl. 08/07/26 11:43
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Benniehench03, VoroneTZ), 6,097 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Benniehench03, riggi89, shuhari, KD1990, Student_64151
19226 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: 28,131
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,131
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: 28,131
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,131
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 | 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