追漲
B1:=REF(OPEN,1);
B2:=REF(CLOSE,1); B3:=IF(B2-B1>0,1,0); A1:=CLOSE; A2:=LOW; A3:=(B2-LOW)/CLOSE; A4:=IF(A3>=0.035,B3,0); A5:=IF(CLOSE>=B2,A4,0); 追漲:=IF(CLOSE>=OPEN,A5,0); 追漲1:if(追漲>0,1,0), STICK,COLORf00ff0; {DRAWICON(追漲1>0,1 ,1 ); DRAWTEXT(追漲1>0,0.8, '★追漲1')COLORWHITE ;} Var2:=(EMA(CLOSE,26)-EMA(CLOSE,52))/MA(CLOSE,60)*100;
Var3:=EMA(Var2,18); Var4:=Var2<-1; Var5:=Var4 AND CROSS(Var2,Var3); 追2:=Var5; 追漲2:if(追2>0,0.8,0), STICK, ,COLORYELLOW ; {DRAWICON(追漲2>0,0.8 ,1 ); DRAWTEXT(追漲2>0,0.6, '★追漲2') ,COLORYELLOW ;} x:=EMA(CLOSE,30)-EMA(CLOSE,17); y:=EMA(x,13); 短針2:=TROUGHBARS(3,5,1)<1 AND x<y; 短針3:=CROSS(x,y) AND TROUGHBARS(3,5,1)<1; 追漲3:if(短針3>0,0.6,0), STICK,COLOR00ff00; {DRAWICON(追漲3>0,0.6 ,1 ); DRAWTEXT(追漲3>0,0.4, '★追漲3')COLORGREEN;} 追漲4:if(短針2>0,0.4,0),STICK,COLORf0f000;
{DRAWICON(追漲4>0,0.4 ,1 ); DRAWTEXT(追漲4>0,0.2, '★追漲4')COLORMAGENTA;} 排序:if(追漲1>0 or 追漲2>0 or 追漲3>0 or 追漲4>0,0.2,0),STICK,linethick1,COLORred; 追馬騎牛
年線:=EMA(C,250);
牛馬主圖
MA1:MA(CLOSE,15);
MA66:=MA(C,2); MA6:MA(C,5); MA18:MA(C,10); TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD)); T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ; T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); 頂:IF(T1,A,A),COLORYELLOW,POINTDOT; 底:IF(T2,B,B),COLORGREEN,POINTDOT; VAR1:=IF(SMA(CLOSE,2,1)/SMA(CLOSE,13,2)<1.1 and SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05),POINTDOT,COLORFF6600; VAR2:=IF(SMA(CLOSE,5,1)/SMA(CLOSE,15,1)<1.09 and SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)),POINTDOT,COLORF00FF0; VAR3:=IF(MA(VOL,2)>MA(VOL,3)/2 買(mǎi)入1:dRAWTEXT(CROSS(VAR3,MA1),VAR2,'馬'); 買(mǎi)入2:dRAWTEXT(CROSS(VAR3,VAR1),VAR2,'牛'); STICKLINE(CROSS(VAR3,MA1),H,L,0,1),COLORYELLOW,LINETHICK2; STICKLINE(CROSS(VAR3,MA1),O,C,4,1),COLORYELLOW,LINETHICK2; 買(mǎi)入3:dRAWTEXT(CROSS(MA6,頂),VAR2,'追1'); 買(mǎi)入4:dRAWTEXT(CROSS(MA18,頂),VAR2,'追2'); 益盟BS操盤(pán)線
買(mǎi)線:EMA(C,2),color000999;
賣(mài)線:EMA(SLOPE(C,21)*20+C,42),pointdot,coloryellow; BUY:=cross(買(mǎi)線,賣(mài)線); SEL:=cross(賣(mài)線,買(mǎi)線); drawtext(buy,LOW-0.1,'Ψ drawtext(sel,HIGH+0.1,'◎'),colorwhite,linethick5; stickline(買(mǎi)線>=賣(mài)線,low,high,0.1,1),colorred; stickline(買(mǎi)線>=賣(mài)線,close,open,8,1),colorred; stickline(買(mǎi)線>=賣(mài)線,close,open,10,1),; stickline(買(mǎi)線<賣(mài)線,close,open,10,0),colorffff00; stickline(買(mǎi)線<賣(mài)線,close,open,8,0),color00ff00; stickline(買(mǎi)線<賣(mài)線,low,high,0.1,1),color00ff00; stickline(cross(買(mǎi)線,賣(mài)線) or cross(賣(mài)線,買(mǎi)線),open,close,6,0),coloryellow; h1:IF(BUY,1,0); {//按部就班 N,1,100,5 }
現(xiàn)價(jià):C;頂部: COST(19*n),colorffff33; 賣(mài)出: COST(15*n),colorgreen; 買(mǎi)入: COST(6*n),colorred; 底部: COST(1*n),coloryellow; {黑馬起飛完整指標(biāo)(原碼)----一品茶緣編寫(xiě) }
{P:5,60,14,重點(diǎn)關(guān)注“黑馬”信號(hào),!} 乖離率:=(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; 買(mǎi):(黑馬>0 AND REF(黑馬,1)=0)*黑馬,STICK,COLORWHITE,LINETHICK3; {四線金叉--四線粘合,,一線金叉,三線合一,,五線開(kāi)花,,抓住中線牛股,一品茶緣編寫(xiě)}
{P1:30;P2:60;P3:90;P4:120;P5:250;} MA1:=MA(CLOSE,30); MA2:=MA(CLOSE,60); MA3:=MA(CLOSE,90); MA4:=MA(CLOSE,120); MA5:=MA(CLOSE,250); MA6:=(MA1+MA2+MA3+MA4)/4; MA71:=MIN(MA1,MA2); MA72:=MIN(MA3,MA4); MA7:=MIN(MA71,MA72); MA81:=MAX(MA1,MA2); MA82:=MAX(MA3,MA4); MA8:=MAX(MA81,MA82); DT1:=(MA1>REF(MA1,30) OR MA1>MA2) AND MA2>MA3 AND MA3>MA4 AND MA4>MA5; DT2:=MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1) AND MA4>REF(MA4,1) AND MA5>REF(MA5,1); 多頭:=DT1 OR DT2; 粘:(1-MA7/MA6)*100<=3 AND (MA8/MA6-1)*100<=3,COLORGREEN; 合:MA1/MA2>=0.99 AND MA1/MA2<=1.01 AND MA1/MA3>=0.99 AND MA1/MA3<=1.01,COLORRED,STICK; 開(kāi):MA1>MA2 AND MA2>MA3 AND MA3>MA4 AND MA4>MA5,COLORFF00FF; 金:(CROSS(MA1,MA2) OR CROSS(MA1,MA3) OR CROSS(MA1,MA4) )*1,COLORYELLOW,LINETHICK2; 死:(CROSS(MA2,MA1) OR CROSS(MA3,MA1) OR CROSS(MA4,MA1) )*0.8,COLORBLUE,STICK,LINETHICK2; DTSJ:=BARSLAST(多頭); ZHSJ:=BARSLAST(粘 OR 合); JCSJ:=BARSLAST(金); 警:(CROSS(C,MA1) AND REF(COUNT(C<MA1,3)=3,1) AND (ZHSJ<=5 OR 開(kāi))) OR (CROSS(C,MA81) AND CROSS(C,MA82))*0.5,COLORWHITE,STICK,LINETHICK2; DRAWTEXT(警>0 ,1.2 , '☆警'),COLORWHITE,LINETHICK1; KXZH:=COUNT(C/REF(C,1)>=1,4)=3 OR C/REF(C,3)>=1.05 OR BARSLAST(C/REF(C,1)>=1.05)<=5; QD:=(DTSJ<=5 OR ZHSJ<=5) AND JCSJ<=5 AND KXZH; QDSJ:=BARSLAST(QD); DXDT:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30); 啟:((QD AND COUNT(REF(QD,1)=1,2)=0) AND DXDT)*2,COLORRED,LINETHICK2; 買(mǎi):(QDSJ<30 AND C/REF(C,QDSJ)<1.30 AND BARSLAST(C<MA1)<=3 AND C>MA1 AND MA1>REF(MA1,1))*1.5,COLORWHITE,LINETHICK2; DRAWICON((開(kāi)>0 AND REF(開(kāi),1)=0) OR (開(kāi)=0 AND REF(開(kāi),1)>0),0.2,1); DRAWTEXT(金>0 ,0.8 , '金叉'),COLORYELLOW,LINETHICK1; DRAWTEXT(合>0 ,0.8 , '合一'),COLORRED,LINETHICK1; DRAWTEXT(買(mǎi)>0 ,1.8 , '☆買(mǎi)'),COLORWHITE,LINETHICK1; DRAWTEXT(啟>0 ,1.8 , '☆啟'),COLORYELLOW,LINETHICK1; {短線交易--威連指標(biāo)} WR1:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),colorwhite; WR2:=100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),coloryellow; 超跌:(WR2>80 AND (DTSJ<=5 OR ZHSJ<=5))*-0.2,COLORGREEN,STICK,LINETHICK2; 超漲:(WR2<10 AND (DTSJ<=5 OR ZHSJ<=5))*0.3,COLORRED,STICK,LINETHICK2; |
|
來(lái)自: 得特納勒 > 《我的圖書(shū)館》