Gamestudio Links
Zorro Links
Newest Posts
video memory and d3d_texfree
by jcl
Today at 17:21
Experienced 2D|3D Character artist|Concept Artist@ Indie Prices|
by DeathstalkerArs
Today at 13:11
Master the plot function
by sdh309795gaas
Yesterday at 20:35
Fractal-Based Trendlines
by edu
Yesterday at 19:28
What are you working on?
by Realspawn
Yesterday at 14:57
AUM Magazine
Latest Screens
Triton Wing
ZeaL
Computer Repair Simulator
Collider (working title)
Space Rider
Who's Online
12 registered (ibne, Iglarion, Dalla, Ayumi, Ezzett, Joaquin, alibaba, 3 invisible), 445 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
3dgamelight, izybikawu, janversa, Unsane, acaduseji
17608 Registered Users
Topic Options
Rate This Topic
#465352 - 04/21/17 08:40 SETSERIES
gtell Offline
Junior Member

Registered: 07/17/16
Posts: 56
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: 25416
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: 56
ok, thanks.

Top



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

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