Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
FIRSTINITRUN in Train not set per Asset #484041
09/01/21 14:02
09/01/21 14:02
Joined: Jul 2017
Posts: 785
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 785
When using a "while (asset(loop("EUR/USD", EUR/JPY"...)) construct, FIRSTINITRUN is set per instrument in Test - as expected, but not in Train.

So, a script that reads some parameters from an Asset list or just initializes some param structures crashes on the second instruments when Training.

Re: FIRSTINITRUN in Train not set per Asset [Re: Zheka] #484044
09/01/21 16:02
09/01/21 16:02
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That's why it's named FIRSTINITRUN. If you need it in any training cycle, use INITRUN.

Re: FIRSTINITRUN in Train not set per Asset [Re: Zheka] #484046
09/01/21 17:51
09/01/21 17:51
Joined: Jul 2017
Posts: 785
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 785
Why would FIRSTINITRUN be set PER INSTRUMENT in Test, but not in Train?

A loop/ asset switch is an asset switch. This does not seem consistent.

Re: FIRSTINITRUN in Train not set per Asset [Re: Zheka] #484050
09/02/21 06:01
09/02/21 06:01
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria

Re: FIRSTINITRUN in Train not set per Asset [Re: Zheka] #484054
09/02/21 09:33
09/02/21 09:33
Joined: Jul 2017
Posts: 785
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 785
Yes, I am aware of how loop() works in Train. Just assumed that it will be "unfair" to other instruments if only the first had its FIRSTINITRUN and the other - not:-)


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