源码
{指南针黑马草上飞系列}
Var2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
Var3:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1)*100;
Var4:=SUM(Var2-Var3,0)+100;
MA(Var4,5),colorred;
MA(Var4,10),coloryellow;
MA(Var4,21),ColorFFFFC0;
A0:=(MA(Var4,3)>MA(Var4,7) AND MA(Var4,7)>MA(Var4,21))*6;
A1:=(MA(C,3)>MA(C,7) AND MA(C,7)>MA(C,13))*6;
强于大盘:A0,colorred,LINETHICK0;
短线升势:A1,colorgreen,LINETHICK0;
DRAWICON(A0,MA(Var4,21),6),ALIGN0;
DRAWICON(A1,MA(Var4,21)-1.8,7),ALIGN0;