运线:EMA(C, 13),COLORWHITE,DOTLINE;
命线:EMA(C, 30),COLORRED;
牛熊线:EMA(C, 60),COLORCYAN,LINETHICK2;
长线趋势线:=EMA(C, 90),COLORBLUE,LINETHICK2;
gspt120:=EMA(C, 120);
gspt250:=EMA(C, 250);
gspt1:=命线-牛熊线< 130/1000 AND 命线-长线趋势线< 230/1000 AND 命线-gspt120< 330/1000;
gspt2:=牛熊线-命线< 130/1000 AND 牛熊线-长线趋势线< 230/1000 AND 牛熊线-gspt120< 330/1000;
gspt3:=长线趋势线-命线< 130/1000 AND 长线趋势线-牛熊线< 230/1000 AND 长线趋势线-gspt120< 330/1000;
gspt4:=gspt120-命线< 130/1000 AND gspt120-牛熊线< 230/1000 AND gspt120-长线趋势线< 330/1000;
gspt5:=命线-牛熊线< 100/1000 AND 命线-长线趋势线< 200/1000;
Fgspt1:=gspt1 AND gspt2 AND gspt3 AND gspt4 AND CROSS(命线, 牛熊线);
Fgspt2:=gspt1 AND gspt2 AND gspt3 AND gspt4 AND CROSS(EMA(C, 13), 命线);
Fgspt3:=gspt5 AND C>gspt250 AND CROSS(命线, 牛熊线);
gspt6:=牛熊线-长线趋势线< 220/1000 AND 牛熊线-gspt120< 320/1000 AND 牛熊线-gspt250< 420/1000;
gspt7:=长线趋势线-命线< 220/1000 AND 长线趋势线-牛熊线< 320/1000 AND 长线趋势线-gspt250< 420/1000;
gspt8:=gspt120-牛熊线< 220/1000 AND gspt120-长线趋势线< 320/1000 AND gspt120-gspt250< 420/1000;
gspt9:=gspt250-牛熊线< 220/1000 AND gspt250-长线趋势线< 320/1000 AND gspt250-gspt120< 420/1000;
Ggspt6:=gspt6 AND gspt7 AND gspt8 AND gspt9 AND CROSS(运线, 命线);
Ggspt7:=gspt6 AND gspt7 AND gspt8 AND gspt9 AND CROSS(命线, 牛熊线);
猎妖:=(Fgspt1 OR Fgspt2 OR Fgspt3 OR Ggspt6 OR Ggspt7) AND C>O;
LYDAY:=BARSLAST(猎妖);
STICKLINE(LYDAY>0,REF(H,LYDAY),REF(H,LYDAY),3,0),COLORYELLOW;
STICKLINE(LYDAY>0,REF(L,LYDAY),REF(L,LYDAY),3,0),COLORCYAN;
STICKLINE(猎妖,O,CLOSE,4.5,0),COLORLIMAGENTA;
STICKLINE(猎妖,O,CLOSE,1.5,0), COLORYELLOW;
DRAWTEXT(猎妖,LOW*0.99,' ▲猎妖1号'), COLORYELLOW;
DRAWICON(猎妖,L,29);