Z1:=STRCAT(HYBLOCK,' '),COLORWHITE; Z2:=STRCAT(Z1,DYBLOCK),COLORWHITE; Z3:=STRCAT(Z2,' '),COLORWHITE; DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0; DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'55',0); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORWHITE; 頂:BOLL+2*STD(CLOSE,20),COLORCYAN,DOTLINE; 低:BOLL-2*STD(CLOSE,20),COLORGREEN,DOTLINE; 高1:=REF(HHV(H,120),3); 低1:=REF(LLV(L,120),3); H3:=高1-(高1-低1)*0.5; 中軸:REFDATE(H3,DATE),COLORMAGENTA,DOTLINE,LINETHICK1; BB1:=EMA(C,7); BB2:=EMA(C,15); B3:=BB1-BB2; WDIF:EMA(EMA(EMA(C,2),2),2)+B3,COLORWHITE,LINETHICK2; WDEA:EMA(WDIF,7),COLORLIRED,LINETHICK2; DRAWICON(CROSS(WDIF,WDEA),WDEA,5); DRAWICON(CROSS(WDEA,WDIF),WDEA,6); IF(WDEA<WDIF,WDEA,DRAWNULL),COLORBLUE ,LINETHICK2; IF(WDIF<WDEA,WDIF,DRAWNULL),COLORCYAN,LINETHICK2; C3:=REF(C,1); 漲停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(漲停,OPEN,CLOSE,2,0),COLORLIMAGENTA; 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORCYAN;
|