通達(dá)信【追風(fēng)爆量戰(zhàn)法V01】主/選股指標(biāo) 源碼
【追風(fēng)爆量戰(zhàn)法】三大要點(diǎn):
1、突破壓力;
突破明顯的壓力!比如突破近期的高點(diǎn),上影線(xiàn)的壓力,大陰線(xiàn)的壓力,并且能夠站在高點(diǎn)的上方,一旦突破,由于沒(méi)有了阻力,短期大概率會(huì)沿著趨勢(shì)繼續(xù)上行,這個(gè)就是短線(xiàn)加速拉升的時(shí)候,這個(gè)時(shí)間也是做短線(xiàn)的好時(shí)機(jī)!
2、出現(xiàn)爆量;
一般情況下,突破關(guān)鍵位置,比如近期的高點(diǎn),60日均線(xiàn),年內(nèi)高點(diǎn),歷史高點(diǎn),因?yàn)橐夥胚@些上面的套牢盤(pán),需要新的短線(xiàn)的增量資金進(jìn)場(chǎng),完成換手,所以,這種突破最好是大陽(yáng)線(xiàn)帶量突破,漲停突破就最強(qiáng),有時(shí)候遇到強(qiáng)勢(shì)一字板突破,后面也會(huì)有爆量,解放前期套牢盤(pán)!
3、風(fēng)口出現(xiàn);
在初期,配合有政策消息出臺(tái)板塊有拉升,這個(gè)是早期最好的機(jī)會(huì),這些就是先手,品種選好剛剛爆量的,漲停的,就可能是龍頭,后期的品種就是跟風(fēng)股,因?yàn)辇堫^初期就要開(kāi)始表現(xiàn),這個(gè)時(shí)候,龍頭已經(jīng)出來(lái)了,已經(jīng)高了,就去低位潛伏!
4、指標(biāo)簡(jiǎn)介:
按照以上條件制作【追風(fēng)爆量】指標(biāo)。邏輯主要以突破的形態(tài)為主,
因?yàn)榇蟛糠值男星閱?dòng),均伴隨著股價(jià)突破,主圖中綠色虛線(xiàn)為MA60日線(xiàn),放量突破+風(fēng)口熱點(diǎn)顯示為“鉆石+錢(qián)袋子”信號(hào)。信號(hào)可選股。
后面還有待優(yōu)化,先發(fā)布一版!
指標(biāo)含有劃壓力線(xiàn)劃線(xiàn)未來(lái),”鉆石+錢(qián)袋子“信號(hào)無(wú)未來(lái)函數(shù),以下舉例:
1、追風(fēng)爆量主圖指標(biāo):
MA60:MA(CLOSE,60) DOTLINE COLORGREEN;
{微信公眾號(hào):尊重市場(chǎng)}
TY:=H;
AA1:=REF(TY,1)=HHV(TY,2*1+1);
BA1:=FILTER(AA1,1);
CA1:=BACKSET(BA1,1+1);
HHD:=FILTER(CA1,1);
前期高位:=REF(H,BARSLAST(HHD));
平臺(tái):STICKLINE(C,前期高位,前期高位,8,0),COLORBROWN LINETHICK2;
DRAWICON(C>平臺(tái),L,5);
DRAWICON((C-MA(C,5))/MA(C,5)>0.1,L,1);
DRAWICON(CROSS(C,平臺(tái)),平臺(tái)*1.002,26);
MID:=MA(C,15)*1.005;
AAC1:=POW((C-MID),2);
AAC2:=MA(AAC1,15);
AAC3:=SQRT(AAC2);
UPPER1:=MID+2*AAC3;
尊重市場(chǎng)1:=REF(UPPER1,1),COLOR00FFFF;
DRAWICON(CLOSE>尊重市場(chǎng)1,LOW*0.99,9);
DIFF9:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA9:=EMA(DIFF9,5);
RSV19:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV19,3,1);
D:=SMA(K,3,1);
LC:=REF(CLOSE,1);
RSI19:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI29:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV9:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR19:=SMA(RSV9,3,1);
LWR29:=SMA(LWR19,3,1);
BBI9:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM9:=CLOSE-REF(CLOSE,1);
MMS9:=100*EMA(EMA(MTM9,5),3)/EMA(EMA(ABS(MTM9),5),3);
MMM:=100*EMA(EMA(MTM9,13),8)/EMA(EMA(ABS(MTM9),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD:=EMA(SK,5);
空方主力:=(-2*(SK-SD))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD))*3.8,COLORRED;
{微信公眾號(hào):尊重市場(chǎng)}
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
ABC2:=IF(MONTH<12,1,1);
ABC3:=(2*CLOSE+HIGH+LOW)/4;
ABC4:=LLV(LOW,34);
ABC5:=HHV(HIGH,34);
主力:=EMA((ABC3-ABC4)/(ABC5-ABC4)*100,13)*ABC2;
散戶(hù):=EMA(0.667*REF(主力,1)+0.333*主力,2);
ACB1:=MA(CLOSE,10);
ACB2:=MA(CLOSE,55);
ACB3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
ACB4:=FILTER(ACB3,10);
ACB5:=BARSLAST(ACB4);
ACB6:=REF(HIGH,ACB5+2);
ACB7:=REF(HIGH,ACB5+1);
ACB8:=REF(HIGH,ACB5);
ACB9:=MAX(ACB6,ACB7);
ACB10:=MAX(ACB9,ACB8);
ACB11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
ACB12:=ACB5<150;
ACB13:=(OPEN-ACB10)/ACB10*100<30;
ACB14:=(CLOSE-LLV(LOW,ACB5))/LLV(LOW,ACB5)*100<50;
ACB15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
ACB16:=VOL/MA(VOL,5)<3.5;
ACB17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
ACB18:=ACB11 AND ACB12 AND ACB13 AND ACB14 AND ACB15 AND ACB16 AND ACB17;
ACB19:=FILTER(ACB18,15);
ACB20:=(CLOSE-ACB2)/ACB2<0.1;
ACB21:=(CLOSE-ACB1)/ACB1<0.3;
ACB22:=(ACB20=1 AND ACB21=1)*0.2;
ACB23:=(ACB22=0 AND REF(ACB22,1)=0.2 AND REF(COUNT(ACB22=0.2,10)=10,1)=1)*(-0.1);
ACB24:=ACB23=(-0.1);
ACB25:=ACB19 OR ACB24;
ACB27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
ACB28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
ACB29:=ACB25 AND ACB27 AND ACB28 AND REF(NOT(ACB28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散戶(hù))
AND (DIFF9>=DEA9) AND (K>=D) AND (RSI19>=RSI29) AND (LWR19>=LWR29) AND (CLOSE>=BBI9) AND (MMS9>=MMM) AND DIFF9>=0 ;
MID9:=MA(C,15)*1.005;
AAC19:=POW((C-MID9),2);
AAC29:=MA(AAC19,15);
AAC39:=SQRT(AAC29);
UPPER9:=MID9+2*AAC39;
LOWER:=MID9-2*AAC39;
尊重市場(chǎng)9:=REF(UPPER9,1),COLOR00FFFF;
AA9:=CLOSE-尊重市場(chǎng)9;
{微信公眾號(hào):尊重市場(chǎng)}
ACB30:=(AA9>0) AND (REF(AA9,1)<0) AND (REF(AA9,2)<0) AND (REF(AA9,3)<0) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散戶(hù)) AND (DIFF9>=DEA9)
AND (K>=D) AND (RSI19>=RSI29) AND (LWR19>=LWR29) AND (CLOSE>=BBI9) AND (MMS9>=MMM) AND (DIFF9>=0);
DRAWICON(ACB29 OR ACB30,L,25);
STICKLINE(CLOSE>尊重市場(chǎng)1 AND ACB29 OR ACB30,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(CLOSE>尊重市場(chǎng)1 AND ACB29 OR ACB30,OPEN,CLOSE,0.6,0),COLORYELLOW;
2、追風(fēng)爆量副圖/選股指標(biāo):(副圖+選股通用)
{微信公眾號(hào):尊重市場(chǎng)}
MID:=MA(C,15)*1.005;
AAC1:=POW((C-MID),2);
AAC2:=MA(AAC1,15);
AAC3:=SQRT(AAC2);
UPPER1:=MID+2*AAC3;
尊重市場(chǎng)1:=REF(UPPER1,1),COLOR00FFFF;
DIFF9:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA9:=EMA(DIFF9,5);
RSV19:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV19,3,1);
D:=SMA(K,3,1);
LC:=REF(CLOSE,1);
RSI19:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI29:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV9:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR19:=SMA(RSV9,3,1);
LWR29:=SMA(LWR19,3,1);
BBI9:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
MTM9:=CLOSE-REF(CLOSE,1);
MMS9:=100*EMA(EMA(MTM9,5),3)/EMA(EMA(ABS(MTM9),5),3);
MMM:=100*EMA(EMA(MTM9,13),8)/EMA(EMA(ABS(MTM9),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD:=EMA(SK,5);
去新三板:=NOT(CODELIKE('4'));
去科創(chuàng)板:=NOT(CODELIKE('688'));
去ST:=IF(NAMELIKE('S'),0,1);
去星星:=IF(NAMELIKE('*'),0,1);
去北交:=NOT(CODELIKE('8'));
條件限定:=去新三板 AND 去ST AND 去科創(chuàng)板 AND 去星星 AND 去北交;
空方主力:=(-2*(SK-SD))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD))*3.8,COLORRED;
{微信公眾號(hào):尊重市場(chǎng)}
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
ABC2:=IF(MONTH<12,1,1);
ABC3:=(2*CLOSE+HIGH+LOW)/4;
ABC4:=LLV(LOW,34);
ABC5:=HHV(HIGH,34);
主力:=EMA((ABC3-ABC4)/(ABC5-ABC4)*100,13)*ABC2;
散戶(hù):=EMA(0.667*REF(主力,1)+0.333*主力,2);
ACB1:=MA(CLOSE,10);
ACB2:=MA(CLOSE,55);
ACB3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
ACB4:=FILTER(ACB3,10);
ACB5:=BARSLAST(ACB4);
ACB6:=REF(HIGH,ACB5+2);
ACB7:=REF(HIGH,ACB5+1);
ACB8:=REF(HIGH,ACB5);
ACB9:=MAX(ACB6,ACB7);
ACB10:=MAX(ACB9,ACB8);
ACB11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
ACB12:=ACB5<150;
ACB13:=(OPEN-ACB10)/ACB10*100<30;
ACB14:=(CLOSE-LLV(LOW,ACB5))/LLV(LOW,ACB5)*100<50;
ACB15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
ACB16:=VOL/MA(VOL,5)<3.5;
ACB17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
ACB18:=ACB11 AND ACB12 AND ACB13 AND ACB14 AND ACB15 AND ACB16 AND ACB17;
ACB19:=FILTER(ACB18,15);
ACB20:=(CLOSE-ACB2)/ACB2<0.1;
ACB21:=(CLOSE-ACB1)/ACB1<0.3;
ACB22:=(ACB20=1 AND ACB21=1)*0.2;
ACB23:=(ACB22=0 AND REF(ACB22,1)=0.2 AND REF(COUNT(ACB22=0.2,10)=10,1)=1)*(-0.1);
ACB24:=ACB23=(-0.1);
ACB25:=ACB19 OR ACB24;
ACB27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
ACB28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
ACB29:=ACB25 AND ACB27 AND ACB28 AND REF(NOT(ACB28),1) AND (多方主力>=空方主力) AND (MA22<= MA11) AND (主力>=散戶(hù))
AND (DIFF9>=DEA9) AND (K>=D) AND (RSI19>=RSI29) AND (LWR19>=LWR29) AND (CLOSE>=BBI9) AND (MMS9>=MMM) AND DIFF9>=0 ;
MID9:=MA(C,15)*1.005;
AAC19:=POW((C-MID9),2);
AAC29:=MA(AAC19,15);
AAC39:=SQRT(AAC29);
UPPER9:=MID9+2*AAC39;
LOWER:=MID9-2*AAC39;
尊重市場(chǎng)9:=REF(UPPER9,1),COLOR00FFFF;
AA9:=CLOSE-尊重市場(chǎng)9;