False ReTrain state entered when running -train at command line.

Posted By: GPEngine

False ReTrain state entered when running -train at command line. - 01/12/15 05:04

I have a strategy which has a ReTrain conditional similar to what is suggested in the workshops. I noticed that it has different behavior depending on whether it it trained via Zorro -train at the command line or by manually pressing the [Train] button in the UI.

I was at a loss for figuring out how this could be. I was about to file a bug. Then I saw this.http://zorro-trader.com/manual/en/is.htm
ReTrain
Updating parameters while live trading; the same as (is(TRAINMODE) and is(COMMAND)) .

This is not intuitive. What the heck? (is(TRAINMODE) and is(COMMAND)) is NOT the same thing as ReTrain, conceptually.
Posted By: jcl

Re: False ReTrain state entered when running -train at command line. - 01/12/15 15:44

ReTrain is just a define in variables.h.

#define ReTrain (is(COMMAND) && is(TRAINMODE))
Posted By: GPEngine

Re: False ReTrain state entered when running -train at command line. - 01/12/15 15:50

ok but
© 2024 lite-C Forums