{快慢線} 底線:0,LINETHICK1,COLORMAGENTA; 高位:80,LINETHICK1,COLORMAGENTA; 低位:20,LINETHICK1,COLORMAGENTA; VARR1:=LLV(LOW,P1); VARR2:=HHV(HIGH,P1); K: EMA((CLOSE-VARR1)/(VARR2-VARR1)*100,P2),COLORGREEN,LINETHICK1; D: EMA(0.667*REF(K,1)+0.333*K,2),COLORRED,LINETHICK1; {洗盤再買} RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; VARB2:=(RSVV/2+22)*1; 量:=EMA(VOL,13); 資金:=EMA(AMOUNT,13); 過濾:=((資金 /量) / 100); 提純:=(((CLOSE -過濾) / 過濾) * 100); 黃金:=((提純 < (0)) AND ZXNH); 準(zhǔn)備:=IF(黃金 AND RSVV<VARB2-2,10,0),COLORGREEN,NODRAW; STICKLINE(準(zhǔn)備,0,10,1,0),COLORGREEN; DRAWTEXT(準(zhǔn)備>0,13.6,'準(zhǔn)'),COLORGREEN; 準(zhǔn)備1:=REF(準(zhǔn)備,1) OR REF(準(zhǔn)備,2) OR REF(準(zhǔn)備,3) OR 準(zhǔn)備; 買:=CROSS(K,D) AND 準(zhǔn)備1,COLORRED,NODRAW; STICKLINE(買,0,10,1,0),COLORRED; DRAWTEXT(買>0,13.6,'買'),COLORRED;
{短買} AR1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1); 短買:=CROSS(AR1,REF(AR1+0.01,1)) AND LLV(AR1,2)=LLV(AR1,8) AND AR1<20; STICKLINE(短買,20,30,1,0),COLORCYAN; DRAWTEXT(短買>0,33.6,'T'),COLORCYAN;