There are insane values for the first Period - 1 periods in this indicator.
Attached the screenshot,
for Value1 = 0 to Period - 1
begin
If Currentbar - Value1 < 0 then break;
sumXY += Value1 * Price[Value1];
end;
Status changed from New to Fixed
Normally for such simple indicator to output correct results minimum requirement is n periods.
Previous implementation of this indicator required 2 * n - 1.
But in the code it actually seems like it requires only n periods.
Please check that this is fixed too.