MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
MA5:MA(CLOSE,120);
MA6:MA(CLOSE,240);
MA7:=MA(CLOSE,40);
月价托:=COUNT(CROSS(MA1,MA2),10) AND
COUNT(CROSS(MA1,MA3),10) AND
COUNT(CROSS(MA2,MA3),1)AND
MA4>REF(MA4,3) AND MA5>REF(MA5,3) AND MA6>REF(MA6,3);
DRAWTEXT(月价托,H+1,'月价托'),coloryellow;
STICKLINE(月价托,H+1,H+0.5,0.5,0) ,colorgreen;
A1:=COUNT(CROSS(MA2,MA3),1)=1;
A2:=COUNT(CROSS(MA1,MA3),1)=1;
A3:=COUNT(CROSS(MA1,MA2),1)=1;
金蜘蛛:=A1 AND A2 AND A3 ;
DRAWTEXT(金蜘蛛,H+1,'金蜘蛛'),coloryellow;
STICKLINE(金蜘蛛,H+1,H+0.5,0.5,0) ,colorgreen;
多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)REF(OPEN,1) AND CLOSE>OPEN;
DRAWTEXT(多方炮,H+1,'多方炮'),coloryellow;
STICKLINE(多方炮,H+1,H+0.5,0.5,0) ,colorgreen;
PMA1 := MA(CLOSE,5);
PMA2 := MA(CLOSE,10);
VMA1 := MA(VOL,5);
VMA2 := MA(VOL,10);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
PPDAY := BARSLAST(CROSS(PMA1,PMA2));
VVDAY := BARSLAST(CROSS(VMA1,VMA2));
MACDDAY := BARSLAST(CROSS(DIFF,DEA));
三金叉见底:=COUNT(CROSS(PMA1,PMA2),1) AND
COUNT(CROSS(VMA1,VMA2),5)AND
COUNT(CROSS(DIFF,DEA),3);
DRAWTEXT(三金叉见底,H+1,'三金叉见底'),coloryellow;
STICKLINE(三金叉见底,H+1,H+1.5,0.5,0) ,colorgreen;
三死叉见顶:=COUNT(CROSS(PMA2,PMA1),2) AND
COUNT(CROSS(VMA2,VMA1),5)AND
COUNT(CROSS(DEA,DIFF),2);
DRAWTEXT(三死叉见顶,H+2,'三死叉见顶'),coloryellow;
STICKLINE(三死叉见顶,H+2,H+2.5,0.5,0) ,colorgreen;