通達信暴風(fēng)控盤建倉止盈買賣指標(biāo)公式
- 指標(biāo)類別: 通達信指標(biāo)公式
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 副圖
- 日期:2021-07-01 來源:互聯(lián)網(wǎng)
通達信暴風(fēng)控盤建倉止盈買賣指標(biāo)公式:
轉(zhuǎn)折周期:=7;轉(zhuǎn)折靈敏:=50;籌碼周期:=17;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
主力成本:EMA(X,13),NODRAW,COLORAAAAFF;
短期支撐:LLV(HIGH,30),NODRAW,COLORAAAAFF;
獲利盤:100*WINNER(C),NODRAW,COLORAAAAFF;
籌碼重心:(HHV(獲利盤,籌碼周期)+LLV(獲利盤,籌碼周期))/2,COLORAAAAFF;
TTR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),轉(zhuǎn)折周期,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),轉(zhuǎn)折周期,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),轉(zhuǎn)折周期,1);
正DI:=DMP*100/TTR,COLORRED;
負(fù)DI:=DMM*100/TTR,COLORGREEN;
轉(zhuǎn)折點:SMA(ABS(負(fù)DI-正DI)/(負(fù)DI+正DI)*100,轉(zhuǎn)折周期,1),COLORFF00FF,LINETHICK2;
換手率:VOL/CAPITAL*100,NODRAW,COLORFF8888;
五日均換手率:SUM(100*V/CAPITAL,5)/5,NODRAW,COLORAAAAFF;
十日均換手率:SUM(100*V/CAPITAL,10)/10,NODRAW,COLORAAAAFF;
{五日換手率:SUM(100*V/CAPITAL,5),NODRAW,COLORFF8888;
十日換手率:SUM(100*V/CAPITAL,10),NODRAW,COLORFF8888;
三十日換手率:SUM(100*V/CAPITAL,30),NODRAW,COLORFF8888;
六十日換手率:SUM(100*V/CAPITAL,60),NODRAW,COLORFF8888;}
ADXR:=(轉(zhuǎn)折點+REF(轉(zhuǎn)折點,6))/2,COLOR66FF66;
轉(zhuǎn)折點A:=FILTER(轉(zhuǎn)折點<REF(轉(zhuǎn)折點,1)-1.3 AND EVERY(REF(轉(zhuǎn)折點,1)>=REF(轉(zhuǎn)折點,2)-1.3,5) AND REF(轉(zhuǎn)折點,1)>轉(zhuǎn)折靈敏,5);
轉(zhuǎn)折點B:=FILTER(轉(zhuǎn)折點<REF(轉(zhuǎn)折點,1)-1.3 AND EVERY(REF(轉(zhuǎn)折點,1)>=REF(轉(zhuǎn)折點,2)-1.3,5) AND REF(轉(zhuǎn)折點,1)>轉(zhuǎn)折靈敏,5);
轉(zhuǎn)折點C:=FILTER(轉(zhuǎn)折點<REF(轉(zhuǎn)折點,1)-1 AND EVERY(REF(轉(zhuǎn)折點,1)>=REF(轉(zhuǎn)折點,2)-1,3) AND REF(轉(zhuǎn)折點,1)<=轉(zhuǎn)折靈敏 AND REF(轉(zhuǎn)折點,1)>=21,3);
轉(zhuǎn)折點D:=FILTER(轉(zhuǎn)折點<REF(轉(zhuǎn)折點,1)-1 AND EVERY(REF(轉(zhuǎn)折點,1)>=REF(轉(zhuǎn)折點,2)-1,3) AND REF(轉(zhuǎn)折點,1)<=轉(zhuǎn)折靈敏 AND REF(轉(zhuǎn)折點,1)>=21,3);
B1:=SMA(SMA(SMA(MA(C,1),2,1),2,1),2,1);
停損線:=IF(LLV(MA(B1,8),3)<B1,LLV(MA(B1,8),3),B1);
操盤線:=HHV(MA(B1,1),13),COLORRED,LINETHICK3;
STICKLINE(籌碼重心>25,25,籌碼重心,0,0),COLOR2222FF;
STICKLINE(籌碼重心<25,25,籌碼重心,0,0),COLORFFFF55;
ISBUY:=IF (BARSLAST(CROSS(C,操盤線))>BARSLAST(CROSS(停損線,C)),0,1);
ISSEL:=IF (BARSLAST(CROSS(C,操盤線))>BARSLAST(CROSS(停損線,C)),1,0);
STICKLINE(轉(zhuǎn)折點A AND REF(正DI>負(fù)DI,1),0,100,0,-1),COLORGREEN;
DRAWTEXT (轉(zhuǎn)折點A AND REF(正DI>負(fù)DI,1),90,'止盈'),COLORGREEN;
STICKLINE(轉(zhuǎn)折點B AND REF(正DI<負(fù)DI,1),0,100,0,-1),COLOR8888FF;
DRAWTEXT (轉(zhuǎn)折點B AND REF(正DI<負(fù)DI,1),15,'建倉'),COLORFF88FF;
{DRAWICON(轉(zhuǎn)折點C AND REF(正DI,1)>REF(負(fù)DI,1),轉(zhuǎn)折點+15,2);
DRAWICON(轉(zhuǎn)折點D AND REF(正DI,1)<REF(負(fù)DI,1),轉(zhuǎn)折點+15,1);}
STICKLINE(轉(zhuǎn)折點C AND REF(正DI>負(fù)DI,1),62,70,1,0),COLORGREEN;
DRAWTEXT (轉(zhuǎn)折點C AND REF(正DI>負(fù)DI,1),70,' 減'),COLORGREEN;
STICKLINE(轉(zhuǎn)折點D AND REF(正DI<負(fù)DI,1),27,35,1,0),COLOR8888FF;
DRAWTEXT (轉(zhuǎn)折點D AND REF(正DI<負(fù)DI,1),35,' 吸'),COLORFF88FF;
STICKLINE(ISBUY,0,-7,5,0),COLOR6666FF;
STICKLINE(ISSEL,0,-7,5,0),COLORFFFF33;
STICKLINE(獲利盤<=1,-6,-1,2.5,0),COLORBLUE;
STICKLINE(獲利盤>=99,-6,-1,2.5,0),COLORRED;
0,COLORFF8888,LINETHICK2;
25,COLOR9966FF,LINETHICK2;
100,COLOR88FF88,LINETHICK2;
量:=IF(C>200,VOL/1000000,VOL/1),LINETHICK0,COLOREEEEFF;
地量:=換手率<1,COLORFF6600;
低靡:=C=C AND 換手率>=1 AND 換手率<2,COLOR008364;
溫和:=C=C AND 換手率>=2 AND 換手率<3,COLORFFFFFF;
活躍:=C=C AND 換手率>=3 AND 換手率<5,COLOR208FFF;
帶量:=C=C AND 換手率>=5 AND 換手率<8,COLORYELLOW;
放量:=C=C AND 換手率>=8 AND 換手率<15,COLORFF00FF;
巨量:=C=C AND 換手率>=15 AND 換手率<25,COLORRED;
怪異:=C=C AND 換手率>=25,COLORE66878;
DRAWTEXT(地量 AND ISLASTBAR AND PERIOD=5,80,'成交地量'),COLORFF6600;
DRAWTEXT(低靡 AND ISLASTBAR AND PERIOD=5,80,'成交低靡'),COLOR008364;
DRAWTEXT(溫和 AND ISLASTBAR AND PERIOD=5,80,'成交溫和'),COLORFFFFFF;
DRAWTEXT(活躍 AND ISLASTBAR AND PERIOD=5,80,'成交活躍'),COLOR208FFF;
DRAWTEXT(帶量 AND ISLASTBAR AND PERIOD=5,80,'成交帶量'),COLORYELLOW;
DRAWTEXT(放量 AND ISLASTBAR AND PERIOD=5,80,'成交放量'),COLORFF00FF;
DRAWTEXT(巨量 AND ISLASTBAR AND PERIOD=5,80,'成交巨量'),COLORRED;
DRAWTEXT(怪異 AND ISLASTBAR AND PERIOD=5,80,'成交怪異'),COLORE66878;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
V換手率:=VVOL/CAPITAL*100,NODRAW,COLORYELLOW;
{V量:=IF(C>200,VOL/1000000,VOL/1),LINETHICK0,COLOREEEEFF;}
V地量:=V換手率<1,COLORFF6600;
V低靡:=C=C AND V換手率>=1 AND V換手率<2,COLOR008364;
V溫和:=C=C AND V換手率>=2 AND V換手率<3,COLORFFFFFF;
V活躍:=C=C AND V換手率>=3 AND V換手率<5,COLOR208FFF;
V帶量:=C=C AND V換手率>=5 AND V換手率<8,COLORYELLOW;
V放量:=C=C AND V換手率>=8 AND V換手率<15,COLORFF00FF;
V巨量:=C=C AND V換手率>=15 AND V換手率<25,COLORRED;
V怪異:=C=C AND V換手率>=25,COLORE66878;
DRAWTEXT(V地量 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測地量'),COLORFF6600;
DRAWTEXT(V低靡 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測低靡'),COLOR008364;
DRAWTEXT(V溫和 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測溫和'),COLORFFFFFF;
DRAWTEXT(V活躍 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測活躍'),COLOR208FFF;
DRAWTEXT(V帶量 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測帶量'),COLORYELLOW;
DRAWTEXT(V放量 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測放量'),COLORFF00FF;
DRAWTEXT(V巨量 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測巨量'),COLORRED;
DRAWTEXT(V怪異 AND ISLASTBAR AND FROMOPEN<240 AND FROMOPEN>5 AND PERIOD=5,70,'預(yù)測怪量'),COLORE66878;
個股6日:=(C-MA(C,6))/MA(C,6);
個股12日:=(C-MA(C,12))/MA(C,12);
個股24日:=(C-MA(C,24))/MA(C,24);
大盤6日:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);
大盤12日:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);
大盤24日:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);
大盤:=(大盤6日 + 大盤12日 + 大盤24日)/3;
個股:=(個股6日 + 個股12日 + 個股24日)/3;
DRAWTEXT(個股>大盤 AND ISLASTBAR,60,'強于大盤'),COLORYELLOW;
DRAWTEXT(個股<大盤 AND ISLASTBAR,60,'弱于大盤'),COLORGREEN;
DRAWTEXT(個股>0 AND ISLASTBAR,50,'走勢較強'),COLORYELLOW;
DRAWTEXT(個股<0 AND ISLASTBAR,50,'走勢較弱'),COLORGREEN;
{DRAWICON(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),5,9);}
DRAWICON(換手率<五日均換手率*0.6 AND ("KDJ.J"<0 OR REF("KDJ.J",1)<0),5,9);
DRAWICON((LLV(H,3)-C)/C<0.03 AND (HHV(L,3)-H)/H<0.05
AND 換手率<五日均換手率*0.55 AND "KDJ.J"<70 AND REF("KDJ.J">=0,1) AND "KDJ.J">=0
AND ABS(REF("KDJ.J",1)-REF("KDJ.K",1))>=12,5,11);
通達信暴風(fēng)控盤建倉止盈買賣指標(biāo)公式實例圖解:
通達信暴風(fēng)控盤建倉止盈買賣指標(biāo)公式