Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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