Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 425 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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