FAC Train mode

Posted By: MatPed

FAC Train mode - 08/30/19 13:34

In order to speed up test for different OptimalFRatio parameter or user supplied functions for Money Management, it would be nice to have tthe possibility to train only the Factors, without training all the parameters of the strategy.

Thank You
Posted By: leohermoso

Re: FAC Train mode - 07/10/20 17:16

Is it possible already!?
Posted By: danatrader

Re: FAC Train mode - 07/10/20 18:13

Yes, I would like that too.
Also just for generating facors for info purpose.

Or maybe we did miss something?
Posted By: jcl

Re: FAC Train mode - 07/17/20 07:34

That the manual is your friend?

https://manual.zorro-project.com/mode.htm
Posted By: danatrader

Re: FAC Train mode - 07/17/20 17:56

laugh

set(FACTORS);
NumWFOCycles = 1;
NumTrainCycles = 1;

works perfectly, indeed, the manual is your best friend laugh

although, maybe there could be an example, how train in trainmode the factors and in trade / test select execution of the trade based on a positive optIF factor.

https://www.zorro-trader.com/manual/en/mode.htm
FACTORS
[Train] mode: generate OptimalF capital allocation factors and store them in Data/*.fac. [Test] / [Trade] mode: load OptimalF factors for allocating capital. If this flag is not set, all OptimalF factors are 1.

-->> Does it mean that in Train mode the factors are also always 1 in order to generate them?

Looks like... the following works fine... Factors are generated, in test and live mode assets that are bad for the algo are omitted.

if(OptimalFShort > 0)
enterShort();

© 2024 lite-C Forums