漲停用紅色實(shí)心柱線表示,跌停用藍(lán)色實(shí)心柱線表示. 源碼來源于網(wǎng)絡(luò),我略略整合了一下.不過,同時(shí)具有買賣提示和漲跌停直觀顯示的主圖公式好像還沒有~~~,這個(gè)公式的買入賣出提示大多數(shù)情況下還是蠻準(zhǔn)的,最重要的是沒有未來函數(shù).^_^ {n=30} 紅色實(shí)心[漲停]:00,colorred; 藍(lán)色實(shí)心[跌停]:00,COLORBLUE; MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA30:MA(CLOSE,30); ma60:ma(close,60); ma120:ma(close,120); X:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); Y:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20); Z1:=AMOUNT/V; Z2:=L<Z1*0.9; Z3:=(C-REF(C,1))/REF(C,1)*100>1.2; Z4:=L<MA(C,5)*0.921; Z5:=V<MA(V,5)*1.5; Z6:=Z2 AND Z3 AND Z4 AND Z5; 乖離線:=((c-ref(ma20,1))/20+ma20)*1.20; a1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2* SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); 趨勢(shì)線:=EMA(a1,3) ,linethick2; VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57; VAR4:=EMA(VAR3,5); VAR5:=3*VAR3-2*VAR4; drawtext(CROSS(VAR5,VAR3) AND VAR3<2.1 and c>o,low-0.02,'買▲入'),coloryellow; DRAWTEXT(cross(趨勢(shì)線,10),Low-0.02,'買▲入'),COLOryellow; DRAWTEXT(cROSS(X,6),low-0.02,'買▲入'),coloryellow; DRAWTEXT(Y,low-0.02,'買▲入'),coloryellow; DRAWTEXT(Z6,l-0.02,'買▲入'),COLORyellow; DRAWTEXT(CROSS(X,95),high+0.02,'賣▼出'),color00ff00; DRAWTEXT(cross(c,乖離線) ,h+0.02,'賣▼出'),color00ff00; RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; K:=SMA(RSV,5,1); D:=SMA(K,3,1); J:=3*K-2*D; AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; AA5:=SMA(AA4,13,8); 走勢(shì):=CEILING(SMA(AA5,13,8)); AA6:=SMA(AA3,21,8); 賣觀注: STICKLINE(走勢(shì)-AA6>85,98,90,15,1); AA7:=FILTER(J<REF(J,1)AND 走勢(shì)<=REF(走勢(shì),1)AND J>85 ,5); DRAWICON(FILTER(J<REF(J,1)AND 走勢(shì)<=REF(走勢(shì),1)AND J>85 ,5),high*1.02,2); DRAWTEXT(AA7,high,'○'),color00FF00; ZDF:=(C-REF(C,1))/REF(C,1)*100; STICKLINE(ZDF>9.8,O,C,6,0),COLORRED; STICKLINE(ZDF<-9.8,O,C,6,0),COLORBLUE; [ 本帖最后由 fengyu29 于 2008-4-1 07:58 編輯 ] |
|