源码
{红涨绿跌主图}
A1:=MA(C,21);
A2:=MA(C,48);
A3:=(A1+A2)/2;
IF (A1>A2,A1,A3),COLORRED,LINETHICK2;
IF (A1>A2,A2,A3),COLORRED,LINETHICK2;
IF (A1<=A2,A1,A3),COLOR00FF00,LINETHICK2;
IF (A1<=A2,A2,A3),COLOR00FF00,LINETHICK2;
A3,COLORWHITE,LINETHICK2;
DRAWICON(CROSS(A1,A2),H*1.05,2);
DRAWICON(CROSS(A2,A1),L*0.98,1);
绿:MA(C,120),LINETHICK3,CIRCLEDOT,COLORGREEN;
红:IF (绿>REF(绿,1),绿,0),LINETHICK3,CIRCLEDOT,COLORRED;