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, juanex, Grant), 1,018 guests, and 8 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
Upper limit on number of series() calls in a script? #431234
10/11/13 15:54
10/11/13 15:54
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Is there an implicit limit on the number of series() calls a script can make?
Would it be a number somewhere between 255 and 259 ?

I have a script with 259 series calls. It crashes in Train mode in unpredictable ways.
1. A Windows dialog tells me the program has crashed, or
2. I get a pile of runtime errors, followed by (1), or
3. Zorro just freezes, requiring task kill.

If the failure mode is 1 or 2, at least, the diag file has something in it. Zorro's last breath is
Code:
return
Exit Loop TA-Lib Series



If I bring the number of series calls down to 255, Train succeeds.

Re: Upper limit on number of series() calls in a script? [Re: GPEngine] #431237
10/11/13 16:14
10/11/13 16:14
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
There is no fixed limit, but of course all data on a PC is limited by the available memory. However even on a very old PC this limit is far higher than 259. Exceeding it will produce an error message, not a crash.

Writing or reading past the length of a series however will cause a crash - that's where I'd look first.

Re: Upper limit on number of series() calls in a script? [Re: jcl] #431240
10/11/13 16:37
10/11/13 16:37
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Come to think of it, I have executed a script containing 652 distinct series() calls, successfully. At least, without apparent error. This script wrote values to a file for offline feature selection.
Now I'm looping back with the chosen features and trying to get a DTREE on them.

Maybe there is a bad interaction when there are >259 series calls followed by calls
adviseLong(DTREE, 0, ...) and
adviseShort()

Re: Upper limit on number of series() calls in a script? [Re: GPEngine] #431242
10/11/13 16:43
10/11/13 16:43
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Or maybe the limit only appears in Train mode, not Test.

Re: Upper limit on number of series() calls in a script? [Re: GPEngine] #431243
10/11/13 16:58
10/11/13 16:58
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
No, I'm afraid a bad interaction or a limit that only appears in Train mode are also unlikely.

Re: Upper limit on number of series() calls in a script? [Re: jcl] #431253
10/12/13 03:44
10/12/13 03:44
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Thanks.
I'll dig deeper.
In general, is this allowed?
Html:
set(PARAMETERS+RULES+TESTNOW+PLOTNOW);


Train.

Re: Upper limit on number of series() calls in a script? [Re: GPEngine] #431280
10/12/13 20:07
10/12/13 20:07
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
After many hours isolating the problem, I am able to reproduce at least one of the crash conditions with a script that has only 16 series() calls, and sets only set(RULES).
I'll post the example script in a new thread in the Scripts forum.
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=431279&#Post431279


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1