1、RSI底背离资金涨停,MACD底背离 RSI底背离 N:=14; N1:=7; N2:=75; N3:=75; MM:=6; VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4; VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89); RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; VAR1E:=EMA(VAR1D,30); VAR1F:=2*(VAR1D-VAR1E)*10; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2); VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); MACD:=2*(DIFF-DEA), COLORSTICK; LC:=REF(CLOSE,1); VAR22:=EMA(VAR21*0.97,3); VAR23:=(HIGH+LOW+CLOSE)/3; VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14)); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; VAR25:=IF(VAR1F>0.015,VAR20,0)/45; RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100; 拉升资金: VAR25,colorred; VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR27:=EMA(VAR26,100); A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(CLOSE,A1+1)>CLOSE AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); VAR28:=2*(VAR26-VAR27); MACD底背离:FILTER(B1>0,5); STICKLINE(FILTER(B1>0,5),0,10,1,0),COLOR00FF00; VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1); VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); DRAWTEXT(FILTER(B1>0,5),10,'MACD底背'),COLOR00FF00; A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1)); VAR2B:=EMA(VAR2A*0.97,3); VAR2C:=(HIGH+LOW+CLOSE)/3; B3:=REF(CLOSE,A3+1)>CLOSE AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2); RSI底背离:FILTER(B3>0,5),LINETHICK0; VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14)); STICKLINE(FILTER(B3>0,5),0,30,1,0),COLORFFFF00; 主力资金:=IF(VAR28>0.1,VAR29,0)*5; DRAWTEXT(FILTER(B3>0,5),30,'RSI底背'),COLORFFFF00; 2、牛马BS MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; 牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210; 马线:=MA(牛线,5); 买卖线:=MA(牛线,2); STICKLINE(牛线>=买卖线 AND C<O,C,O,2.8,0),colorred; STICKLINE(牛线>=买卖线 AND C>O,C,O,2.8,1),colorred; STICKLINE(牛线>=买卖线,H,MAX(C,O),0,0),colorred; STICKLINE(牛线>=买卖线,L,MIN(C,O),0,0),colorred; STICKLINE(牛线<买卖线 AND C<O,C,O,2.8,0),colorcyan; STICKLINE(牛线<买卖线 AND C>O,C,O,2.8,1),colorcyan; STICKLINE(牛线<买卖线,H,MAX(C,O),0,0),colorcyan; STICKLINE(牛线<买卖线,L,MIN(C,O),0,0),colorcyan; DRAWTEXT(CROSS(牛线,买卖线),L*0.99,'b:'+牛线+'买卖线:'+买卖线),colorred; DRAWTEXT(CROSS(买卖线,牛线),H*1.01,'s'+牛线+'买卖线:'+买卖线),colorcyan; 牛1线:牛线,coloryellow; 买卖1线:买卖线,colorgreen; 收盘:CLOSE,coloryellow; 3、太极量能 不同颜色柱体的意义是: 红色量柱为吸货量,绿色为出货量,黄色为天量,蓝色为地量( 股 民 学 院 : http://www.58188.net ) 总手:VOL; zz:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3); v5:=MA(V,5); v12:=MA(V,12); V34:=MA(V,34); C6:=MA(C,6); STICKLINE(C,0,VOL,8,0),RGB(51,51,51); STICKLINE(CROSS(C,C6) AND V>v5*1.2 AND V>v12*1.2 AND zz>2 AND C>H*0.975,0,VOL,8,0),RGB(255,0,0); STICKLINE(CROSS(C6,C) AND V>v5*1.2 AND V>v12*1.2,0,VOL,8,0),RGB(0,255,0); STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,0,VOL,8,0),RGB(255,187,0); STICKLINE(VOL<MA(VOL,5)/2 AND V<v12/2,0,VOL,8,0),RGB(0,102,255); STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C,C6) AND V>v5*1.2 AND V>v12*1.2 AND zz>2 AND C>H*0.975,VOL*0.5,0,8,0),RGB(255,0,0); STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C6,C) AND V>v5*1.2 AND V>v12*1.2,VOL*0.5,0,8,0),RGB(0,255,0); DRAWTEXT (VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,V,'天'),colorwhite; DRAWTEXT (VOL<MA(VOL,5)/2 AND V<v12/2,(V5+V)/2,'地'),colorwhite; DRAWTEXT (CROSS(C,C6) AND V>v5*1.2 AND V>v12*1.2 AND zz>2 AND C>H*0.975,0,'吸'),colorwhite; DRAWTEXT (CROSS(C6,C) AND V>v5*1.2 AND V>v12*1.2,0,'出'),colorwhite; IF(1>0) {说明:"红色量柱为吸货量,绿色为出货量,黄色为天量,蓝色为地量"; RETURN;} |