tt:=BARSCOUNT(CLOSE); CC:=CLOSE; zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt); zz1:=BETWEEN(CLOSE/zz,1.05,0.95); 均線:IF(zz1=0,MA(CLOSE,TT),zz),COLOR00FFFF,LINETHICK2; 上均:均線 + AVEDEV(CLOSE,tt)*2,COLOR00FF00; 下均:均線 - AVEDEV(CLOSE,tt)*2,COLORFF6600; 時(shí)長(zhǎng):=IF(HOUR>=10 AND HOUR<15 ,1,0); 漲幅:=(CLOSE/DYNAINFO(3))>=1.015; 跌幅:=(CLOSE/DYNAINFO(3))<=0.985; 漲跌幅:=漲幅 OR 跌幅; yy:=SMA(VOL,30,1); 放量:=(yy-LLV(LLV(yy,1),30))/(HHV(HHV(yy,1),30)-LLV(LLV(yy,1),30))>0; 橫盤:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE)<=0.05; 橫漲:=漲跌幅=0 and 橫盤 and 時(shí)長(zhǎng) and 放量 and CROSS(CC,上均)and DYNAINFO(22)<DYNAINFO(23) ; 橫跌:=漲跌幅=0 and 橫盤 and 時(shí)長(zhǎng) and 放量 and CROSS(下均,CC) ; PP:= FILTER(橫漲,100) ; UU:= FILTER(橫跌,50) ; DRAWTEXT(PP,上均,'★上突'),colorff00ff; DRAWTEXT(UU,下均,'★下破'),COLOR00FFFF; VERTLINE(PP),COLORWHITE,LINETHICK2; |
|