Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,296 guests, and 26 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
False ReTrain state entered when running -train at command line. #447905
01/12/15 05:04
01/12/15 05:04
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
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.

Last edited by GPEngine; 01/12/15 05:05.
Re: False ReTrain state entered when running -train at command line. [Re: GPEngine] #447912
01/12/15 15:44
01/12/15 15:44
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
ReTrain is just a define in variables.h.

#define ReTrain (is(COMMAND) && is(TRAINMODE))

Re: False ReTrain state entered when running -train at command line. [Re: jcl] #447913
01/12/15 15:50
01/12/15 15:50
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
ok but


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