DRAWTEXT_FIX(ISLASTBAR,0,0,0,VARCAT('概念:',GNBLOCK));{风格-概念}
HYZF0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100; A0:=STRSPACE(VAR2STR(HYZF0,2));
HYZF1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;A1:=STRSPACE(VAR2STR(HYZF1,2));
HYZF2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;A2:=STRSPACE(VAR2STR(HYZF2,2));
HYZF3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;A3:=STRSPACE(VAR2STR(HYZF3,2));
HYZF4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;A4:=STRSPACE(VAR2STR(HYZF4,2));
A43:=VARCAT(A4,A3);
A21:=VARCAT(A2,A1);
A4321:=VARCAT(A43,A21);
A43210:=VARCAT(A4321,A0);
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,VARCAT('行业:', VARCAT(STRSPACE(HYZSCODE), VARCAT(STRSPACE(HYBLOCK), A43210)))) COLOR0000FF;{所属行业及近五日涨幅}
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,VARCAT('风格:',FGBLOCK));
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,VARCAT('地区:', DYBLOCK));
DRAWTEXT_FIX(ISLASTBAR,0,0.2,0,VARCAT('选股:',ZDBLOCK));
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(买线>=卖线 AND C<O,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLOR228822;
STICKLINE(买线<卖线,CLOSE,OPEN,3,1),COLOR228822;
STICKLINE(买线<卖线 AND C<O,CLOSE,OPEN,3,0),COLOR228822;
JJ:=(L+HIGH+C)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B ,A ,B ,-1 ,0 ),COLOR00AAFF;
STICKLINE(A<B ,B ,A ,-1 ,0 ),COLORBLUE;
DRAWTEXT(A>B AND C>O AND C>REF(C,1) AND NOT(REF(A>B,1)),B*0.98,'起爆点'),,COLOR00AAFF;
DRAWTEXT(A<B AND NOT(REF(A<B,1)),B*1.02,'下车点'),COLORGREEN;
MA5Q:=MA(CLOSE,5);
DIR2:=ABS(CLOSE-REF(CLOSE,30));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
AA1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20));
AA2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),AA1);
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;