以下是通达信指南针主图 金叉 死叉 贴图
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORMAGENTA;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
STICKLINE(C>=O,H,C,0,0),COLOR000088;
STICKLINE(C>=O,H,C,0,0),COLOR0000AA;
STICKLINE(C>=O,O,L,0,0),COLOR0000BB;
STICKLINE(C>=O,O,L,0,0),COLOR0000CC;
STICKLINE(C>O,C,O,2.5,0),COLOR000082;
STICKLINE(C>O,C,O,1.5,0),COLOR000099;
STICKLINE(C>O,C,O,0.5,0),COLOR0000CC;
STICKLINE(C<=O,H,C,0,0),COLORGREEN;
STICKLINE(C<=O,H,C,0,0),COLORGREEN;
STICKLINE(C<=O,O,L,0,0),COLORGREEN;
STICKLINE(C<=O,O,L,0,0),COLORGREEN;
STICKLINE(C<=O,C,O,2.5,0),COLOR017300;
STICKLINE(C<=O,C,O,1.5,0),COLOR019000;
STICKLINE(C<=O,C,O,0.5,0),COLORGREEN;
STICKLINE(C=O,C,O,2.5,0),COLORFFFFFF;
STICKLINE(C=O,H,C,0,0),COLORFFFFFF;
STICKLINE(C=O,H,C,0,0),COLORFFFFFF;
STICKLINE(C=O,O,L,0,0),COLORFFFFFF;
STICKLINE(C=O,O,L,0,0),COLORFFFFFF;