1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| ZB:=(3*C+H+L+O)/6; SH1:(8*ZB+7*REF(ZB,1)+6*REF(ZB,2)+5*REF(ZB,3)+4*REF(ZB,4)+3*REF(ZB,5)+2*REF(ZB,6)+REF(ZB,8))/36,LINETHICK2,COLORRED; SH2:=(HHV(SH1,2)+HHV(SH1,4)+HHV(SH1,8))/3; SH3:=(LLV(SH1,2)+LLV(SH1,4)+LLV(SH1,8))/3; SH4:(HHV(SH2,2)+HHV(SH2,4)+HHV(SH2,8))/3; SH5:(LLV(SH3,2)+LLV(SH3,4)+LLV(SH3,8))/3,COLORRED; SH6:=(LLV(SH1,2)+LLV(SH1,4)+LLV(SH1,8))/3; IF((SH1 <= REF(SH1,1)),SH1,DRAWNULL),COLORGREEN,LINETHICK3; IF((SH1 >= REF(SH1,1)),SH1,DRAWNULL),COLORRED,LINETHICK3; STICKLINE(SH4>SH1,SH4,SH1,0,0),COLORBLUE; DRAWKLINE(H,O,L,C); DRAWTEXT(REF(SH5,1)=REF(SH1,1) AND SH5<SH1,L*0.99,'买入'),COLORRED; DRAWTEXT(REF(SH4,1)=REF(SH1,1) AND SH4>SH1,H,'卖点'),COLORGREEN; ZT:=REF(C,1)*1.1-C<0.01 AND H=C; 突破:=CROSS(C,SH4) AND ZT; DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF; DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR00FFFF; DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF; DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF; DRAWTEXT(突破,L,'爆点'); STICKLINE(突破,CLOSE,OPEN,3.2,0),COLOR0077FF; STICKLINE(突破,CLOSE,OPEN,2.5,0),COLOR0099FF; STICKLINE(突破,CLOSE,OPEN,1.9,0),COLOR00BBFF; STICKLINE(突破,CLOSE,OPEN,1.2,0),COLOR00DDFF; STICKLINE(突破,CLOSE,OPEN,0.3,0),COLOR00FFFF;
|