N:=30;
M:=7;
R:=20;
VPC:=SUM(C*V,N)/SUM(V,N) - SMA(C,N,1);
VPR:=(SUM(C*V,M)/SUM(V,M))/SMA(C,M,1);
VM:=SMA(V,M,1)/SMA(V,N,1);
VPCI:VPC*VPR*VM;
MAVPCI:MA(VPCI,R);
0;