Gamestudio Links
Zorro Links
Newest Posts
How to continuing Zorro trading statistics after restarting VPS?
by Zheka
15 minutes 25 seconds ago
Entity Memory steigt ins Unendliche
by jcl
Today at 08:42
What are you working on?
by HellThunder
Today at 03:47
Strange behaviour
by alibaba
Yesterday at 22:58
Recoil + aftershock + proper bullet creation
by 3run
Yesterday at 20:21
How to do a windows update on vps?
by mcteilchen
Yesterday at 13:57
Some general questions
by easyX
Yesterday at 00:28
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
14 registered (preacherX, jenGs, DMB, Lobo, firecrest, JoFo, sivan, Dbat, MasterQ32, 1 invisible), 480 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
byano, Tuguldur717, jmgrnt7, AGI, Materz
17831 Registered Users
Topic Options
Rate This Topic
#465352 - 04/21/17 08:40 SETSERIES
gtell Offline
Junior Member

Registered: 07/17/16
Posts: 60
Dear all,
Dear jcl,

I am looking at the indicators.c just to see how to write indicators and found you often have use SETSERIES.
For example:

Code:
// ALMA, Arnaud Legoux Moving Average 
//  2013 acidburn @ Zorro Trader Forum
var ALMA(var *Data, int Period, int sigma, var offset)
{
	checkLookBack(Period);
	if(sigma == 0) sigma = 6;
	if(offset == 0.) offset = 0.85;
	Period = Max(Period,2);
	var m = floor(offset * (Period - 1));
	var s = Period / sigma;
	var alma = 0., wSum = 0.;
	int i;

	for (i = 0; i < Period; i++) {
		var w = exp(-((i - m) * (i - m)) / (2 * s * s));
		alma += Data[Period - 1 - i] * w;
		wSum += w;
	}
	SETSERIES(Data,Period);	
	return alma / wSum;
}




I have tried to search in the help but I could not find it.
Could you please explain me what is the meaning of this function?

Thanks.
Best regards.

Top
#465367 - 04/21/17 17:57 Re: SETSERIES [Re: gtell]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 25979
Loc: Frankfurt
You can ignore it. I believe it is a function for internal test purposes that stores info about the last generated series.

Top
#465374 - 04/21/17 19:40 Re: SETSERIES [Re: jcl]
gtell Offline
Junior Member

Registered: 07/17/16
Posts: 60
ok, thanks.

Top



Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net