突破:=REF(EMA(C,14),1); A1X:=(EMA(C,10)-突破)/突破*100; 多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL); 空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL); STICKLINE(A1X>=0,多方,突破,60,-1),COLORCC66FF; STICKLINE(A1X<0,空方,突破,10,-1),COLOR00CC66; MA30:=EMA(CLOSE,30); 強(qiáng)弱:=EMA(CLOSE,50),COLORYELLOW,LINETHICK1; H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:L1+P1*7/8,COLOR0000FF DOTLINE; 支撐:L1+P1*0.5/8,COLOR00DD00 DOTLINE; 現(xiàn)價(jià):CLOSE,COLORWHITE,LINETHICK1; 漲幅:=(DYNAINFO(7)-DYNAINFO(3))/DYNAINFO(3)*100; 即時(shí)漲幅:=(C-DYNAINFO(3))/DYNAINFO(3)*100; DRAWTEXT(LONGCROSS(支撐,C,2) AND 漲幅>-9.5,支撐*1.001,'+買'),COLORRED; DRAWTEXT(LONGCROSS(C,強(qiáng)弱,2) AND 強(qiáng)弱>REF(強(qiáng)弱,1) AND 漲幅>0 AND 即時(shí)漲幅<5,強(qiáng)弱*0.998,'+買'),COLOR3E3EFF; DRAWTEXT(LONGCROSS(C,阻力,2),C,'●'),COLORGREEN,LINETHICK1;{拋}; 時(shí)間:=TIME=100000; N:=BARSLAST(時(shí)間); CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))); CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))); STICKLINE(時(shí)間=1,CS1,CS2,-1,0),COLORGREEN; 均價(jià):SUM(V*C,0)/SUM(V,0),COLORYELLOW; 均價(jià)限:均價(jià)*1.02,COLORGREEN; {分時(shí)主圖,買賣點(diǎn)提示,支撐壓力線,一目了然}; 穿越:=CROSS(C,均價(jià)限); DRAWICON(穿越,均價(jià),1);
|