N:=5;M:=20;N1:=20;M1:=60; a:=(c-ma(c,n))/ma(c,n)*(-1); b:=(c-ma(c,m))/ma(c,m)*(-1); 短均线差:a-b,COLORSTICK; a1:=(c-ma(c,n1))/ma(c,n1)*(-1); b1:=(c-ma(c,m1))/ma(c,m1)*(-1); 长均线差:a1-b1,colorstick; {负差:a-b,colorred,LINETHICK2;} STICKLINE(a-b>0,a-b,0,0.8,0),COLORMAGENTA; STICKLINE(a-b<0,a-b,0,0.8,0),COLORGREEN; partline(a-b>0,a-b),COLORMAGENTA,linethick2; partline(a-b<0,a-b),COLORGREEN,linethick2; |