MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORLICYAN;
DRAWTEXT(CURRBARSCOUNT=8,阻力,' 阻 力'),COLOR00DD00,LINETHICK2;
支撑:L1+P1*0.5/8,COLOR00DD00;
DRAWTEXT(CURRBARSCOUNT=8,支撑,' 支 撑'),COLOR00DD00,LINETHICK2;
现价:CLOSE,COLORWHITE,LINETHICK6;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'止损价位 B★吸'),COLORRED,LINETHICK6;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'止赢价位 S★抛'),COLORGREEN,LINETHICK6;{抛};
昨收:DYNAINFO(3),COLORFF9900,LINETHICK3;
DRAWTEXT(CURRBARSCOUNT=8,昨收,'昨 收'),COLORFF9900,LINETHICK2;
今开:DYNAINFO(4),COLORFF00FF,LINETHICK3;
DRAWTEXT(CURRBARSCOUNT=8,今开,'今 开 '),COLORFF00FF,LINETHICK2;
今高:DYNAINFO(5),COLOREE2255;
DRAWTEXT(CURRBARSCOUNT=8,今高,'今 高'),COLOREE2255,LINETHICK2;
今低:DYNAINFO(6),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=8,今低,'今 低'),COLORGREEN,LINETHICK2;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=4,均价,'均 价'),COLORYELLOW,LINETHICK6;
CC:=HHV(IF(TIME<103000,C,0),0);
VV:=HHV(IF(TIME<103000,V,0),0);
ZF:=CC/DYNAINFO(3)<1.04;
XH:=C>=CC AND V>=VV AND TIME>=103000 AND DYNAINFO(7)=C;
GL:=FILTER(XH,60);
DRAWTEXT(GL,DYNAINFO(7)*0.99,'突破'),COLORYELLOW,LINETHICK2;
STICKLINE(GL,DYNAINFO(7)*0.98,DYNAINFO(7)*0.999,10,0) COLOR0000FF;
最高价:HHV(H,480),DOTLINE,COLORRED;
STICKLINE(FILTER(CROSS(C,REF(最高价,1)),10),C*0.99,C,8,0),COLORRED;
DRAWTEXT(FILTER(CROSS(C,REF(最高价,1)),10),C*0.99,'上突'),COLORYELLOW;
T:=BARSCOUNT(C);
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIMETOSEC(3600)>39600,240) ;
DRAWTEXT(TP,L,'★突破'),COLORRED;
PLOYLINE(TP,1),COLORGREEN,LINETHICK2;
HHV(H,T),DOTLINE,COLOR00FFFF;
{T+1止赢、止损}
止赢:最高价,COLORGREEN;
DRAWTEXT(ISLASTBAR,最高价,'止赢价位'),COLORGREEN,LINETHICK2;
止损:均价,COLORFF00FF;
DRAWTEXT(ISLASTBAR,均价,'均 价为当日止损价位'),COLORYELLOW,LINETHICK2; |