MA25:=EMA(CLOSE,25);
强弱:EMA(CLOSE,905);
IF(MA25>强弱,MA25,DRAWNULL),COLOR0000FF;
IF(MA25<强弱,MA25,DRAWNULL),COLOR00FF00;
STICKLINE((MA25 >强弱),MA25,强弱,0,0),COLOR0000FF;
STICKLINE((MA25 >强弱)AND MA25<REF(MA25,1),MA25,强弱,0,0),COLORYELLOW;
STICKLINE((MA25 >强弱)AND 强弱<REF(强弱,1),MA25,强弱,0,0),COLORCYAN;
STICKLINE((MA25 <强弱),MA25,强弱,0,0),COLOR00FF00;
STICKLINE((MA25 <强弱)AND MA25>REF(MA25,1),MA25,强弱,0,0),COLORCYAN;
STICKLINE((MA25 <强弱)AND 强弱>REF(强弱,1),MA25,强弱,0,0),COLORLIRED;
DRAWICON(CROSS(MA25,强弱),强弱*0.99,1);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
T1:(L1+P1*8.5/9),COLORFFFFFF;
阻力:(L1+P1*7/9),COLOR00DD00;
Z:(L1+P1*4.5/9),COLOR000099,LINETHICK2;
B:(L1+P1*2.0/9),COLORYELLOW;
支撑:(L1+P1*0.5/9),COLORFFFFFF;
现价:=CLOSE,COLORWHITE;
STICKLINE(CROSS(支撑,现价),T1,支撑,2,0),COLORMAGENTA;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORFFFFFF;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★S'),COLORCYAN;{抛};
DRAWICON(CROSS(现价,T1),现价*0.999,8);
{DRAWTEXT(CROSS(现价,B),支撑,'买')COLORWHITE;}
STICKLINE(FILTER(C,60)>0,T1,支撑,0.5,0),COLORRED;{时间分割线};
XG:HHV(H,480),DOTLINE,COLORYELLOW;
T:=BARSCOUNT(C);
HHV(H,T),DOTLINE,COLOR00FFFF;
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME>39600,240) ;
DRAWTEXT(TP,L,'★突破'),COLORRED;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C,HHV(O,T)*0.99,10,0),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),HHV(O,T)*0.99,'上突 '),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,HHV(O,T)*0.9995,'上突必卖, 不破前高-买'),COLORYELLOW;
LLV(H,T),DOTLINE,COLORWHITE;
XG1:LLV(H,480),DOTLINE,COLORWHITE;
TP1:= FILTER(C>=LLV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME>39600,240);
DRAWTEXT(TP,L,'★下破'),COLORRED;
STICKLINE(FILTER(CROSS(C,REF(XG1,1)),10),C*0.99,LLV(O,T),10,0),COLORWHITE;
DRAWTEXT(FILTER(CROSS(C,REF(XG1,1)),10),LLV(O,T)*0.992,'下破,'),COLORWHITE;
DRAWTEXT(ISLASTBAR=1,LLV(O,T),'下破, 不破前低-买'),COLORWHITE;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW,LINETHICK2;
DRAWNUMBER(ISLASTBAR,C,C),COLORFFFFFF;
XJ:=CONST(C),COLORFFFFFF,LINETHICK1;
中线:(XG+XG1)/2,LINETHICK2,COLORCYAN;
|