Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,546 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Error 041: Too many series! #467785
08/31/17 13:48
08/31/17 13:48
Joined: Aug 2017
Posts: 40
J
johnnyp Offline OP
Newbie
johnnyp  Offline OP
Newbie
J

Joined: Aug 2017
Posts: 40
Is the limit to the number of series a global limit, or is it a per function limit? Could I increase the limit?

More importantly, what is the limit? How many series can I have?

Here is why I need lots of series.

I am experimenting with recording data for machine learning https://robotwealth.com/machine-learning-financial-prediction-david-aronson/.

To help with this I wrote a function to add the value of the indicator, the change in value, and the reciprocal of the time since the last peak or valley to the output. The code is here...

Code:
var addWithDeltaAndPeaks(string column_header, vars data)
{
	vars peakTime = series(0,2);
	if(peak(data))
		peakTime[0] = 1;
	else if(valley(data))
		peakTime[0] = -1;
	else
		peakTime[0] = peakTime[1] + sign(peakTime[1]);
	
	vars inversePeakTime = series(0, TargetLookahead+1);
	if(peakTime[0] != 0)
		inversePeakTime[0] = 1 / peakTime[0];
	
	if(is(INITRUN)) strcat(header, strf(",%s,d_%s,p_%s",column_header,column_header,column_header));
	strcat(line, strf(",%.5f,%.5f,%.5f",
		data[TargetLookahead],
		100.*(data[TargetLookahead] - data[TargetLookahead+1]),
		inversePeakTime[TargetLookahead]
		));
}



Obviously this function creates two series for every series that I use it on, and I end up with a whole lot of series, and probably too much data. But I don't yet know which bits are going to be useful.

Re: Error 041: Too many series! [Re: johnnyp] #467874
09/05/17 10:15
09/05/17 10:15
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Increase TradesPerBar. This will also allow to create more series.

Re: Error 041: Too many series! [Re: jcl] #467881
09/05/17 17:15
09/05/17 17:15
Joined: Aug 2017
Posts: 40
J
johnnyp Offline OP
Newbie
johnnyp  Offline OP
Newbie
J

Joined: Aug 2017
Posts: 40
Brilliant!
Thanks.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1