通達(dá)信副圖指標(biāo)抄底逃頂(附源碼)
{抄底逃頂王}
VAR001:=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);
趨勢(shì)線:= EMA(VAR001,8);
判斷:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);
{買參考}STICKLINE(FILTER(CROSS(判斷,趨勢(shì)線)=1 OR 判斷>REF(判斷,1),10) AND 判斷<25 ,0.3,0,3,0),COLORRED;
{賣參考}STICKLINE(FILTER(判斷<REF(判斷,1)AND 判斷>65,5),3.5,3.2,3,0),COLORLIGREEN;
{通達(dá)信超級(jí)組合抄底逃頂王公式}
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
動(dòng)力線:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4),COLORA8A8A8;
STICKLINE(動(dòng)力線>REF(動(dòng)力線,1) ,動(dòng)力線,REF(動(dòng)力線,1),2 ,1),COLORRED;
STICKLINE(動(dòng)力線<=REF(動(dòng)力線,1) ,動(dòng)力線,REF(動(dòng)力線,1),2,1),COLORGREEN;
{波段王--畫(huà)線}
波段王V1:=(2*CLOSE+HIGH+LOW)/4;
波段王V2:=LLV(LOW,34);
波段王V3:=HHV(HIGH,34);
波段王V4:=EMA((波段王V1-波段王V2)/(波段王V3-波段王V2),8);
波段王V5:=EMA(波段王V4,5);
波段王:波段王V5*3.5, COLORRED;
IF(波段王V4-波段王V5<0,波段王,DRAWNULL), COLORGREEN;
DRAWICON(FILTER(CROSS(動(dòng)力線,0.5),13) OR FILTER(CROSS(動(dòng)力線,0.2),20),動(dòng)力線+0.02,1);
DRAWICON(FILTER(CROSS(3.5,動(dòng)力線),20) OR FILTER(CROSS(3.2,動(dòng)力線),20),動(dòng)力線+0.02,2);
DRAWICON(FILTER(CROSS(動(dòng)力線,1.1),8),1,11);
底部:0.2,COLOR70DB93;
關(guān)注:0.5,COLORYELLOW;
強(qiáng)弱分界線:1.75,COLOR70DB93;
階段賣出:3.2,COLORC6C600;
清倉(cāng)賣出: 3.5,COLORFF75FF,NODRAW;
{準(zhǔn)備上買點(diǎn)}
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建倉(cāng)區(qū):=VARO7<10;
TJ:=COUNT(建倉(cāng)區(qū),3);
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
上升:=CROSS(VAR1,8);
準(zhǔn)備上:IF((建倉(cāng)區(qū) OR REF(建倉(cāng)區(qū),0.5)) AND 上升,1.5,0);
{主力控盤度: 無(wú)莊控盤(白色)-動(dòng)力線上升(深灰色)-開(kāi)始控盤(紅色)-高度控盤(粉色)-主力出貨(綠色)
控盤V1:=EMA(EMA(CLOSE,9),9);
控盤V2:=100*WINNER(CLOSE*0.95);
控盤:=(控盤V1-REF(控盤V1,1))/REF(控盤V1,1)*1000;
STICKLINE(控盤<0,3.45,3.52,4,0),COLORWHITE;
STICKLINE(動(dòng)力線>REF(動(dòng)力線,1),3.45,3.52,4,0),COLORGRAY;
STICKLINE(控盤>REF(控盤,1) AND 控盤>0,3.45,3.52,4,0),COLORRED;
STICKLINE(控盤V2>50 AND COST(85)<CLOSE AND 控盤>0,3.45,3.52,4,0),COLORFF00FF;
STICKLINE(控盤<REF(控盤,1) AND 控盤>0,3.45,3.52,4,0),COLORGREEN;
}
{強(qiáng)勢(shì)買點(diǎn)}
D1:="WR.WR1"<5;
D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;
D3:=CROSS("MACD.DIF","MACD.DEA");
D4:="CCI.CCI">-100 AND "CCI.CCI"<-90;
D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;
S1:=20;
M2:=40;
L1:=60;
AAA:=CLOSE>OPEN;
BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE,M2)&&CLOSE>MA(CLOSE,L1);
CCC:=BBB&&OPEN<MA(CLOSE,M2)&&OPEN<MA(CLOSE,L1);
XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;
AA1:=D1 AND D2;
AA2:=D2 AND D3;
AA3:=D1 AND D3;
XG2:=AA1 OR AA2 OR AA3;
強(qiáng)勢(shì):IF(XG1 AND XG2,1.75,0),COLORRED;
{跟著莊家進(jìn)}
R1:=(((MA(CLOSE,5))-CLOSE)/CLOSE>3/100);
R2:=((MA(CLOSE,10))-(MA(CLOSE,5)))/(MA(CLOSE,5))>0.03;
R3:=(LLV(CLOSE,20)=LLV(CLOSE,30));
大:=(R1 AND R2 AND R3);
大A:=FILTER(大,5);
跟著莊家進(jìn):STICKLINE(大A,0,1.75,1,0 ),COLORMAGENTA;
{希望之星買點(diǎn)}
A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}
A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}
B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));
B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));
B3:=IF(C>O,O,C);
B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);
A1:=ABS(C-O)/O<0.012;{今天星形}
星K:IF(A3 AND A2 AND A1 AND B4,1,0);
{出手買點(diǎn)}
出手:DRAWTEXT(FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),
EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))
AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)
<0 AND CROSS(C,MA(C,20))),90),0.3,'●買'),COLORYELLOW;
{底部買點(diǎn)}
WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
MM:=DMA(CLOSE,WW);
通道4:= (1-7/100)*MM;
VAR4:=EXPMA(CLOSE,9);
LDN:=EXPMA(VAR4*0.86,5);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
TR14:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:=DMP*100/TR14;
MDI:=DMM*100/TR14;
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
買底: DRAWTEXT(C<=通道4 AND C<=LDN AND CCI<-100 AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN,0.3,'買底'),COLORYELLOW;
聯(lián)系客服