Trade Stats in EXITRUN

Posted By: trenki2

Trade Stats in EXITRUN - 03/01/17 08:01

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.
Posted By: jcl

Re: Trade Stats in EXITRUN - 03/06/17 17:21

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.
Posted By: trenki2

Re: Trade Stats in EXITRUN - 03/06/17 20:00

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.
Posted By: jcl

Re: Trade Stats in EXITRUN - 03/07/17 07:51

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.
© 2024 lite-C Forums