How about this?

Also, what are the exact definitions of these functions, what do they do and where are the source codes for these?

SETSERIES(Data,Period);

series(x,y);

Finally, do the functions inside indicators.c get called for each tick and from where/how?