1、一招断牛熊,压力支撑持股持币 A1:=EMA(C,14)COLORWHITE,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 支撑:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORBLUE,LINETHICK2; 压力:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORFF00FF,POINTDOT,LINETHICK5; 操盘线:MA(C,30),COLORRED,LINETHICK2,LINETHICK3; 持币:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2; DA:=(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT; X2:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4) +15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+ 10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5 *REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000; X3:=MA(X2,5),COLORYELLOW,LINETHICK1; X1:=(C+L+H)/3.1; 买:=CROSS(X2,X3); 卖:=CROSS(X3,X2); DRAWICON(CROSS(X2,X3),L*0.97,7); DRAWICON(CROSS(X3,X2),H*1.02,8); STICKLINE(X2>=X3,LOW,HIGH,0,1),COLORRED; STICKLINE(X2>=X3,CLOSE,OPEN,3,2),COLORRED; STICKLINE(X2<X3,LOW,HIGH,0,1),COLORBLUE; STICKLINE(X2<X3,CLOSE,OPEN,3.2,2),COLORBLUE; DRAWTEXT_FIX(1,0.72,0,0,''),COLORRED; STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLORBLUE; STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),COLORRED; STICKLINE((CLOSE>OPEN) AND (X2<X3),CLOSE,OPEN,3,0)COLORYELLOW; STICKLINE((CLOSE>OPEN) AND (X2>=X3),CLOSE,OPEN,3,2)COLORRED; STICKLINE((CLOSE<OPEN) AND (X2<X3),CLOSE,OPEN,3,0)COLORGREEN; STICKLINE((CLOSE<OPEN) AND (X2>=X3),CLOSE,OPEN,3,0)COLORRED; FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),COLOR0000FF; DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR00FFFF; DD:=CLOSE<OPEN; 买线:=MA(CLOSE,9),LINETHICK2; 卖线:=MA(CLOSE,20); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWTEXT(BU,L-0.1,'建仓')COLORYELLOW; SK:=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),LINETHICK3,COLORRED; JDXH:= 10, LINETHICK2,COLORRED ; ZBMR:=IF(SK<=10,50,10), LINETHICK2; 见底出击:=IF(CROSS(SK,JDXH),50,0); DRAWTEXT(CROSS(见底出击,8),L,'见底出击'),COLORRED; 2、优化后的超级MACD公式,显示更清楚 {超级MACD} {MACD} DIF:EMA(CLOSE,6)-EMA(CLOSE,19),,NODRAW; DEA:EMA(DIF,9),NODRAW; MACD:2*(DIF-DEA),COLORSTICK; STICKLINE(MACD>0,MACD,0,0.5,0),COLORRED; STICKLINE(MACD<0,MACD,0,0.5,0),COLORGREEN; STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,0),COLORWHITE; STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,0),COLORFF00FF; FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4); FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1; FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1); FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C)<0.018; FH5:=FH1 AND FH2 AND MACD<0.10; VV:=CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND DIF>DEA AND MACD>REF(MACD,1) AND DIF>0 AND DEA>0 AND MA(VOL,5)>MA(VOL,34) AND MA(CLOSE,30)>=REF(MA(CLOSE,30),1); 佛手:IF(VV,1,0),NODRAW; {二次起动} X0:=BARSLAST((CROSS(MACD,REF(MACD,1)) AND MACD>0) OR CROSS(MACD,0)); X1:=BARSLAST(CROSS(0.5,COUNT(MACD>REF(MACD,1),X0+1)=X0+1));{回} X2:=COUNT(MACD<REF(MACD,1),X1+1)=X1+1 AND COUNT(MACD<0,X1+1)<=2; X3:=REF(X2,1) AND MACD>REF(MACD,1) AND C>O AND C>REF(C,1); STICKLINE(X1=0 AND MACD>0,MACD,0,2,0),COLORDCDC00;{MACD缩头} STICKLINE(X3,MACD,0,2,0),COLOR0854FF;{二次起动}; DRAWICON(佛手,-0.15,11); 二次翻红:(FH3 OR FH4 OR FH5),COLORRED,NODRAW; 低买:CROSS(DIF,DEA) AND DIF<0,COLORFF00FF,NODRAW; 加油:CROSS(DIF,DEA) AND DIF>0,COLORYELLOW,NODRAW; DRAWICON(二次翻红,-0.05,1); DRAWTEXT(二次翻红,-0.15,'↖翻红'),COLORRED; DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA-0.02,'↖低买'),COLORFF00FF; DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA-0.05,'↖加油'),COLORYELLOW; XG:二次翻红 OR 低买 OR 加油,NODRAW; YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100); 阻价:=IF(CLOSE=INDEXC,YLZC+INDEXC-INDEXL,YLZC+(CLOSE-LOW)); 支价:=IF(CLOSE=INDEXC,INDEXL+INDEXC-YLZC,LOW+(CLOSE-YLZC)); 今压:REF(阻价,1),LINETHICK0,COLORAA11BB,NODRAW; 今撑:REF(支价,1),LINETHICK0,COLOR009900,NODRAW; 明压:阻价,LINETHICK0,NODRAW; 明撑:支价,LINETHICK0,NODRAW; DIFF:DIF,COLORRED,LINETHICK2; DDEA:DEA,COLORYELLOW,LINETHICK2; 3、涨停回马枪主副图 涨停板回马枪,适合强势股,解决强势股上涨的买点问题( 股 民 学 院 : http://www.58188.com ) {涨停回马枪主图} 均价线:=AMOUNT/V/100; C2:=REF(C,1); 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED; STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED; STICKLINE(涨停,H,L,0,0),COLORRED; B1:=''; DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN; B3:=''; DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA; B2:=''; DRAWTEXT(涨停,L,B2),COLORGRAY; MA13:MA(C,13),COLORGRAY; MA21:MA(C,21),COLORWHITE; 支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1); 操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45; 震仓线2:=50; 逃命线:=80; 抄底线:=20; 绝底线:=5; PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ; PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ; PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线; HH:=COUNT(涨停,13)>=1; STICKLINE(PP2 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE; STICKLINE(PP AND HH,OPEN,CLOSE,0.8,0),COLORBLUE; STICKLINE(PP3 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE; A:=SMA(L,4,3) ; STICKLINE(A AND REF(PP,1) AND HH ,A*0.9999,A*0.9979,5,0); DRAWICON(A AND REF(PP,1) AND HH,L*0.98,1); STICKLINE(A AND REF(PP3,1) AND HH ,A*0.9999,A*0.9979,5,0); DRAWICON(A AND REF(PP3,1) AND HH,L*0.98,1); STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED; STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED; DRAWTEXT(涨停,L-0.1,'涨停'),COLORRED; C3:=REF(C,1); 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE; STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE; DRAWTEXT(跌停,H+0.3,'跌停'),COLORBLUE; {涨停回马枪副图} 均价线:=AMOUNT/V/100; C2:=REF(C,1); 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); STICKLINE(涨停,0,5,6,0),COLORYELLOW; DRAWTEXT(涨停,8,'涨停'),COLORYELLOW; MA13:=MA(C,13),COLORGRAY; MA21:=MA(C,21),COLORWHITE; 支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1); 操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45; 震仓线2:=50; 逃命线:=80; 抄底线:=20; 绝底线:=5; PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ; PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ; PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线; HH:=COUNT(涨停,13)>=1; STICKLINE(PP2 AND HH,0,5,3,0),COLORRED; STICKLINE(PP AND HH,0,5,3,0),COLORRED; STICKLINE(PP3 AND HH,0,5,3,0),COLORRED; DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED; DRAWTEXT(PP AND HH,8,'预警'),COLORRED; DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED; A:=SMA(L,4,3) ; 绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN; DRAWICON(A AND REF(PP,1) AND HH,12,1); STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN; DRAWICON(A AND REF(PP3,1) AND HH,12,1); |