Gamestudio Links
Zorro Links
Newest Posts
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 (AndrewAMD, VoroneTZ), 1,258 guests, and 4 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
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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