N:=26;
M1:=10;
M2:=16;
强弱分界:EMA(COST(85),10){,PRECISION2,LINEDOT},COLORRED,DOTLINE;
分界:EMA(COST(99),10){,PRECISION2,LINEDOT},COLORGREEN,DOTLINE;
DRAWBAND(强弱分界,RGB(80,00,20),
分界,RGB(60,60,18));
{黄金通道}
UPPER:(1+M1/100)*MA(CLOSE,N),LINETHICK4,COLORGREEN;
LOWER:(1-M2/100)*MA(CLOSE,N),LINETHICK4,COLORRED;
黄金通道:(UPPER+LOWER)/2,POINTDOT,LINETHICK4,COLORYELLOW;
DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'BB',0);DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
M5:=MA(CLOSE,5);{,LINETHICK1;}
M20:=MA(CLOSE,20);{,LINETHICK1;}
{=======================仪表盘========================}
显示仪表盘:=1;
总涨幅周期:=350;
范围高A:=REFDATE(HHV(H,120),DATE)*1.05;
范围低A:=REFDATE(LLV(L,120),DATE)*0.95;
MAA:=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 MAA>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪回调:=ISLASTBAR AND MA24>MAA AND MAA>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MAA AND MAA>IF(MA200=DRAWNULL,0,MA200);
初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MAA>MA24 AND MA24>MA72;
底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MAA>MA24;
探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MAA;
观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C
放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24
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);
DRAWGBK(显示仪表盘=1 AND 观望,0,0,0,'观望',0);
DRAWGBK(显示仪表盘=1 AND 有牛,0,0,0,'有牛',0);
DRAWGBK(显示仪表盘=1 AND 放弃,0,0,0,'放弃',0);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
马线:=MA(牛线,5);
买卖线:=MA(牛线,2);
STICKLINE(牛线>=买卖线 AND C
STICKLINE(牛线>=买卖线,H,MAX(C,O),0,0),COLORRED;
STICKLINE(牛线>=买卖线,L,MIN(C,O),0,0),COLORRED;
STICKLINE(牛线<买卖线 AND C
STICKLINE(牛线<买卖线,H,MAX(C,O),0,0),COLORCYAN;
STICKLINE(牛线<买卖线,L,MIN(C,O),0,0),COLORCYAN;
DRAWICON(crOSS(牛线,买卖线),L*0.99,7);
DRAWICON(CROSS(买卖线,牛线),H*1.01,8);
{主力成本线:牛线,COLORYELLOW;
资金生命线:马线,COLORRED;
水平面:MA(C,60),COLORGREEN;}
STICKLINE((C-REF(C,1))/REF(C,1)>=0.0985,O,C,3,0),COLORYELLOW;
Z111:=STRCAT(HYBLOCK,'----');
Z211:=STRCAT(Z111,FGBLOCK);
Z311:=STRCAT(Z211,DYBLOCK);
Z411:=STRCAT(Z311,'----');
DRAWTEXT_FIX(1,0.00,0.00,0,'【主题概念】')COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.09,0.00,0,STRCAT(Z411,GNBLOCK)),COLORCYAN;
{妖股起飞}
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BArslAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HJ_17:=HJ_10<150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HJ_21:=vol/MA(VOL,5)<3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
暴利:=FILTER(HJ_25,15);
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-MA10)/MA10)<0.3);
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股:XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,NODRAW;
DRAWTEXT(妖股,LOW*0.975,' 妖股起飞'),COLORYELLOW;