源码
N:=10;N1:=30;
0,COLOR00AA00;
C1:(EMA(CLOSE,N)-EMA(CLOSE,N1))/EMA(CLOSE,N1)*100,colorred,linethick2;
C2:(EMA(C,N1)-EMA(C,N))/EMA(C,N)*100,COLORFF9900;
z1:=(C1-C2);
趋势线:z1;
Z2:=MA(Z1,3);
STICKLINE( Z1>Z2,Z1,Z2,5,0 ),colorwhite,linethick3;
STICKLINE( Z1<Z2,Z1,Z2,5,0 ),COLORFF9900,linethick3;
STICKLINE( c1>REF(c1,1),c1,0,8,0 ),colorred,linethick1;