LY:=11; BL:=32; CJQS:=XMA(CLOSE,LY); {股票公式網(www.gpgsw.com)為您整理} JBQS:=XMA(CLOSE,BL); N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT); M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT); 上軌:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1),LINETHICK2; 下軌:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9),LINETHICK2; 短上軌:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05); 短下軌:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95); DRAWTEXT(O<=短下軌,(L * 0.98),'搶'),COLORYELLOW; DRAWTEXT(CROSS(H,短上軌),(H * 1.01),'逃'),COLORYELLOW; {立樁量} TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01; STICKLINE(TJ,C,O+(C-O)/2,1,0),COLOR00FFFF; {一穿三:5、10、20} MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1>C AND MA2>C AND MA3>C AND CLOSE>OPEN ; STICKLINE(一穿三,O,O+(C-O)/2,1,0),COLORFF00FF; AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0); AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0); AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0); BB1:=0; B1萬元:=DVOL*DCLOSE/100; B1差:=B1萬元-REF(B1萬元,1); B2萬元:=DVOL*DCLOSE/100; B2比:=B2萬元/REF(B2萬元,1); 凈流入萬元:=(AAA2-AAA3-0.5*AAA4); PM:=MA(凈流入萬元,1); PMA:=PM/REF(PM,1)>1; PMB:=REF(PMA,1)<1 AND PMA; 密碼:(EMA(MA(B1萬元,2),2))/100000,COLORYELLOW,NODRAW; 二日比:=密碼/REF(密碼,1); 選股:PMB AND 密碼>REF(密碼,1) AND 二日比>1,COLORRED,; Y:=CLOSE/REF(CLOSE,1)>1.07; X:=VOL>MA(VOL,5); A1:=Y AND X; DRAWTEXT(A1,MA(CLOSE,5),'攻漲停'),COLORMAGENTA;
|