Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
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 | chip programmers | 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