c1:=c/ref(ema(c,30),30);c2:=indexc/ref(ema(indexc,30),30);l1:=c1/c2*10-10;c3:=c/ma(c,60);c4:=indexc/ma(indexc,60);:=c3/c4*10-10;c5:=c/ma(c,120);c6:=indexc/ma(indexc,120);l3:=c5/c6*10-10;L4:=MA(L1+L2+L3,5);诊断3:='【诊断】 '+IFS(REF(L4,1)>0 AND REF(L4,1)>REF(L4,2),'该股中长期走势强于,且近期继续走强。','')+IFS(REF(L4,1)>0 AND REF(L4,1)<=REF(L4,2),'该股中长期走势强于大盘,但近期有所走弱。','')+IFS(REF(L4,1)<=0 AND REF(L4,1)>REF(L4,2),'该股中长期走势弱于大盘,但近期有所转强。','')+IFS(REF(L4,1)<=0 AND REF(L4,1)<=REF(L4,2),'该股中长期走势弱于大盘,且近期继续走弱。','')