FIRSTINITRUN in Train not set per Asset

Posted By: Zheka

FIRSTINITRUN in Train not set per Asset - 09/01/21 14:02

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.
Posted By: jcl

Re: FIRSTINITRUN in Train not set per Asset - 09/01/21 16:02

That's why it's named FIRSTINITRUN. If you need it in any training cycle, use INITRUN.
Posted By: Zheka

Re: FIRSTINITRUN in Train not set per Asset - 09/01/21 17:51

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.
Posted By: Petra

Re: FIRSTINITRUN in Train not set per Asset - 09/02/21 06:01

http://manual.zorro-project.com/loop.htm
Posted By: Zheka

Re: FIRSTINITRUN in Train not set per Asset - 09/02/21 09:33

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:-)
© 2024 lite-C Forums