P:=14; 乖離率:=(c-ma(c,250))/ma(c,250)*100; n1:=barslast(cross(c,MA(c,250))); n2:=barslast(cross(MA(c,250),c)); 長(zhǎng)趨:if(n1<n2,n1+1,0); 乖離:hhv(乖離率,長(zhǎng)趨); n3:=barslast(c>ma(c,120) and cross(c,wMA(c,P))); n4:=barslast(cross(wMA(c,P),c) and c>ma(c,120)); 短跟:if(n3<n4,n3+1,0); 短漲:=(c-ref(c,短跟))/ref(c,短跟); 長(zhǎng)漲:=(c-ref(c,長(zhǎng)趨))/ref(c,長(zhǎng)趨); 換手:=VOL/CAPITAL*100 ; 百換:sum(換手,100); DRAWICON(CROSS(短跟,0.1),100, 1); 短換:sum(換手,0)-ref(sum(換手,0),短跟); 系數(shù):短漲/短換*100 ; TJ1:=乖離>5 AND 乖離<80; TJ2:=長(zhǎng)趨>20 AND 長(zhǎng)趨<400; TJ3:=百換>100 AND 百換<400; 黑馬:(TJ1 AND TJ2 AND TJ3 AND 短跟>0)*短跟*10,coloryellow,STICK,LINETHICK3; 買:(黑馬>0 AND REF(黑馬,1)=0)*黑馬,STICK,COLORWHITE,LINETHICK3; |
|