N:=9;
M:=21;
MAH1:SMA(2*SMA(C,ROUND(N/2,1),1)-SMA(C,N,1),ROUND(SQRT(N),1),1);
MAH2:SMA(2*SMA(C,ROUND(M/2,1),1)-SMA(C,M,1),ROUND(SQRT(M),1),1);