M:=2;
N:=0;
zma1:=ma(vol,5);
zma2:=ma(VOL,10);
zma3:=ma(vol,20);
zma6:=ma(vol,5);
zma4:=ma(vol,35);
zma5:=ma(vol,135);
pingjun:=(zma1+zma2+zma3+zma4+zma5)/5;
ca1:=abs(ma(vol,5)-pingjun);
ca2:=abs(ma(vol,10)-pingjun);
ca3:=abs(ma(vol,20)-pingjun);
ca4:=abs(ma(vol,35)-pingjun);
ca5:=abs(ma(vol,135)-pingjun);
capingjun:=(ca1+ca2+ca3+ca4+ca5)/5;
cajun:=ma(sum(capingjun,4),m);
mMA2:=MA(VOL,35);
mMA3:=MA(VOL,135);
zhanhe1:=INTPART(pingjun+mma2+mma3);
pingjunzan:INTPART((pingjun/zhanhe1)*100),colorred,linethick2;
mma2zhan:INTPART((mma2/zhanhe1)*100),colorgreen,linethick2;
mma3zhan:INTPART((mma3/zhanhe1)*100),linethick2,colorff00ff;
cha1:abs(pingjunzan-mma3zhan),linethick0;
cha2:abs(mma2zhan-mma3zhan),linethick0;
cha3:abs(pingjunzan-mma2zhan),linethick0;
voljj1:cha1<=3 and cha2<=3 and cha3<=3,linethick0;
volljj2:cha1<=0 and cha2<=0 and cha3<=0,coloryellow,linethick0;
stickline(volljj2>0,volljj2*5+mma3zhan,mma3zhan,6,0),coloryellow;
chuji:if(ref(volljj2,1)>0 or ref(volljj2,2)>0 and mma2zhan<pingjunzan and mma2zhan>mma3zhan,1,0),linethick0;
tongshixuan:count(chuji,10),linethick0;
stickline(chuji>0 or(last(volljj2>0)>1),chuji*10+mma3zhan,mma3zhan,6,0),colorred;
zong:=INTPART((pingjunzan+mma2zhan+mma3zhan)/3);
xiaoxug:cross(pingjunzan,mma2zhan),linethick0;
zhongxian:(mma2zhan+pingjunzan+mma3zhan)/3,colorwhite;
zxcha:(abs(mma2zhan-zhongxian)+abs(pingjunzan-zhongxian)+abs(mma3zhan-zhongxian))/3,linethick0;
zuorizxcha:ref(zxcha,n),linethick0;