顯示儀表盤:=1;
總漲幅周期:=350;
范圍高A:=REFDATE(HHV(H,120),DATE)*1.05;
范圍低A:=REFDATE(LLV(L,120),DATE)*0.95;
MA5:=MA(C,5);
MA24:=MA(C,24);
MA72:=MA(C,72);
MA200:=IF((MA(C,200)<=范圍高A AND MA(C,200)>=范圍低A) OR C>=MA(C,200),MA(C,200),DRAWNULL);
主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪回調(diào):=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪深調(diào):=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);
初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;
底部反彈:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;
探底階段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;
觀望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);
有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);
放棄:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);
DRAWGBK(顯示儀表盤=1 AND 主升浪=0 AND 主浪回調(diào)=0 AND 主浪深調(diào)=0 AND 初升浪=0 AND 底部反彈=0 AND 探底階段=0 AND 觀望=0 AND 有牛=0 AND 放棄=0,0,0,0,'觀望',0);
DRAWGBK(顯示儀表盤=1 AND 主升浪,0,0,0,'主升浪',0);
DRAWGBK(顯示儀表盤=1 AND 主浪回調(diào),0,0,0,'主浪回調(diào)',0);
DRAWGBK(顯示儀表盤=1 AND 主浪深調(diào),0,0,0,'主浪深調(diào)',0);
DRAWGBK(顯示儀表盤=1 AND 初升浪,0,0,0,'初升浪',0);
DRAWGBK(顯示儀表盤=1 AND 底部反彈,0,0,0,'底部反彈',0);
DRAWGBK(顯示儀表盤=1 AND 探底階段,0,0,0,'探底階段',0);
DRAWGBK(顯示儀表盤=1 AND 觀望,0,0,0,'觀望',0);
DRAWGBK(顯示儀表盤=1 AND 有牛,0,0,0,'有牛',0);
DRAWGBK(顯示儀表盤=1 AND 放棄,0,0,0,'放棄',0);
{===================K線================================};
DRAWKLINE(H,O,L,C);
買線:=EMA(C,3);
賣線:=EMA(SLOPE(C,25)*18+C,55);
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
ISDOWN:=IF(CLOSE<OPEN,1,0);
ISUP:=IF(CLOSE>OPEN,1,0);
STICKLINE(買線<賣線 AND ISDOWN,HIGH,OPEN,0,0),COLORCYAN;
STICKLINE(買線<賣線 AND ISDOWN,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(買線<賣線 AND ISDOWN,CLOSE,LOW,0,0),COLORCYAN;
STICKLINE(買線>=賣線 AND ISUP,HIGH,CLOSE,0,1),COLORRED;
STICKLINE(買線>=賣線 AND ISUP,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(買線>=賣線 AND ISUP,OPEN,LOW,0,1),COLORRED;
STICKLINE(買線>=賣線 AND ISDOWN,CLOSE,LOW,0,0),COLORRED;
STICKLINE(買線>=賣線 AND ISDOWN,HIGH,OPEN,0,0),COLORRED;
STICKLINE(買線>=賣線 AND ISDOWN,CLOSE,OPEN,3,1),COLORRED,LINETHICK2;
STICKLINE(買線>=賣線 AND ISDOWN,CLOSE*1.0018,OPEN*0.9988,1.8,0),COLORCYAN;
STICKLINE(買線<賣線 AND ISUP,HIGH,CLOSE,0,1),COLORCYAN;
STICKLINE(買線<賣線 AND ISUP,CLOSE,OPEN,3,1),COLORCYAN;
STICKLINE(買線<賣線 AND ISUP,OPEN,LOW,0,1),COLORCYAN;
DRAWBMP(BU=1,L,'B');
DRAWBMP(SEL=1,HIGH*1.038,'S');
{======================均線===========================};
MA3:MA(CLOSE,3),COLORWHITE;
MA7:MA(CLOSE,7),COLORYELLOW;
MA13:MA(CLOSE,13),COLORMAGENTA;
MA21:MA(CLOSE,21),COLORGREEN,LINETHICK2;
MA34:MA(CLOSE,34),COLOR0099FF;
MA55:MA(CLOSE,55),COLORRED;
MA89:MA(CLOSE,89),COLORFF7700,LINETHICK1;
MA144:MA(CLOSE,144),COLORCYAN,LINETHICK2;
|