can anyone describe what's happening (preferable with an example) in the following code.
s1, e1 = core.getcandle(source:barSize(), core.now(), 0, 0);
s2, e2 = core.getcandle("D1", core.now(), 0, 0);
Size1 = (e1-s1)*Period;
Size2 = (e2-s2)*365;