1、主力清洗 跟踪主力动态 主力进场、洗盘、拉升及出货公式( 股 民 学 院 : http://www.58188.com ) //主力控盘-通达信191115@gz$Zhuhai;} VAR1:=EMA(EMA(CLOSE,9),9); 控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000; STICKLINE(控盘<0,控盘,0,2,0),colorligray; A10:=CROSS(控盘,0); 无庄控盘:IF(控盘<0,控盘,0),colorwhite,NODRAW; 开始控盘:IF(A10,5,0),linethick1,coloryellow; STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),colorred; 跌转涨:控盘>REF(控盘,1) AND 控盘>0 AND REF(控盘,1)<0,nodraw; 有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),colorred,NODRAW; VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF; 高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW; STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00; 主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW; VAR3:=AMOUNT/VOL/7; VAR4:=(3*HIGH+LOW+OPEN+2*CLOSE)/7; VAR7:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR8:=SMA(ABS(LOW-VAR7),13,1)/SMA(MAX(LOW-VAR7,0),10,1); VAR9:=EMA(VAR8,10);VAR10:=LLV(LOW,33); VAR11:=EMA(IF(LOW<=VAR10,VAR9,0),3); 主力进场:IF(VAR11>REF(VAR11,1),VAR11,0),colorred,NODRAW; DRAWICON(主力进场>0,-6,38),coloryellow; 主力进场期:=COUNT(主力进场>0,15); STICKLINE(VAR11>REF(VAR11,1),0,VAR11,1,0 ),colorred; 洗盘:IF(VAR11<REF(VAR11,1),VAR11,0),coloryellow,NODRAW; STICKLINE(VAR11<REF(VAR11,1),0,VAR11,2,0),coloryellow; 通:=MA(C,17); 子:=MA(C,26); 季:=MA(C,60); 午:=MA(C,100); 辰:=MA(C,145); 年:=MA(C,250); 申:=MA(C,320); 亥:=MA(C,732); 卯:=MA(C,455); MAXC:=MAX(通,MAX(子,MAX(季,MAX(午,MAX(辰,MAX(年,MAX(申,MAX(亥,卯)))))))); 大牛:C>=MAXC,nodraw; 牛启:CROSS(C,MAXC),nodraw;通增:=通>REF(通,1);子增:=子>REF(子,1); 通子金叉:=CROSS(通,子); 子午金叉:=CROSS(子,午); 通金:=CROSS(C,通); 子金:=CROSS(C,子); 五金:=CROSS(C,MA(C,5)); 十金:=CROSS(C,MA(C,10)); 季金:=CROSS(C,季); DIFF:=EMA(C,9)-EMA(C,17),colorwhite; DEA:=EMA(DIFF,8),COLOrffaa00; MACD:=2*(DIFF-DEA); MACD死叉:=CROSS(DEA,DIFF),nodraw; MACD金叉:=CROSS(DIFF,DEA),nodraw; 阶段卖点:= ( CROSS(MIN(通,子),C) OR (MACD死叉)) AND (CLOSE<MIN(通,子)); 金叉数:通金+子金+五金+十金+季金,nodraw; //阶段买点:=(金叉数>=2 OR MACD金叉>0 OR 开始控盘>0) AND (通增+子增)>1 ,nodraw; 阶段买点:=( (金叉数>=2 AND C>MAX(通,子)) OR 开始控盘>0) AND (通增+子增)>0,nodraw; 最佳抄底点:主力进场期>0 AND 阶段买点>0 AND (通增>0 OR 金叉数>0) AND CLOSE>OPEN,nodraw; DRAWICON(阶段买点>0 OR 最佳抄底点>0,-6,38),colorred; DRAWTEXT(阶段买点>0, 控盘+20,'买'),colorcyan; DRAWTEXT(最佳抄底点>0,-2,'抄'),coloryellow; //{DRAWTEXT(大牛>0,控盘*2.4,'牛'),colorred;}DRAWTEXT((通子金叉+子午金叉)>0, 控盘+10,'★'),colorcyan; DRAWTEXT(牛启, 控盘+10,'★'),coloryellow; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,7,0),COLOR0022FF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,7,0),COLOR0044FF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,7,0),COLOR0066FF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,6,0),COLOR0088FF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,5,0),COLOR00AAFF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,4,0),COLOR00BBFF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,3,0),COLOR00CCFF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,2,0),COLOR00DDFF; STICKLINE(通子金叉+子午金叉>0,0,控盘+6,1,0),COLOR00EEEE; DRAWTEXT(阶段卖点>0,控盘+10,'卖'),colorwhite; DRAWICON(阶段卖点>0,-5,39),colorgreen; //STICKLINE(最佳抄底点>0,0,控盘+8,8,0),COLOR004444; //STICKLINE(最佳抄底点>0,0,控盘+8,7,0),COLOR006666; //STICKLINE(最佳抄底点>0,0,控盘+8,6,0),COLOR008888; //STICKLINE(最佳抄底点>0,0,控盘+8,5,0),COLOR009999; //STICKLINE(最佳抄底点>0,0,控盘+8,4,0),COLOR00aaaa; //STICKLINE(最佳抄底点>0,0,控盘+8,3,0),COLOR00BBBB; //STICKLINE(最佳抄底点>0,0,控盘+8,2,0),COLOR00cccc; //STICKLINE(最佳抄底点>0,0,控盘+8,1,0),COLOR00dddd; BaseHeight:=控盘+16; STICKLINE(最佳抄底点>0,0,BaseHeight*2,1,0),colorwhite; STICKLINE(最佳抄底点>0, IF(BaseHeight<30,BaseHeight,30),1,0),colorred; STICKLINE(最佳抄底点>0,0,BaseHeight*1.8,4,0),colorred; STICKLINE(最佳抄底点>0,0,BaseHeight*1.2,8,0),colormagenta; STICKLINE(最佳抄底点>0,0,BaseHeight*0.6,10,0),coloryellow; STICKLINE(最佳抄底点>0,0,BaseHeight*0.3,10,0),COLORFFCC66; //STICKLINE(最佳抄底点>0,0,BaseHeight*1.1,1,0),colorwhite; //STICKLINE(小黑码>0 AND 小黑码<52,30,小黑码,1,0),COLORFFCC66; //STICKLINE(小黑码>0,0,小黑码*0.8,4,0),COLORFFCC66; //STICKLINE(小黑码>0,0,小黑码*0.4,8,0),COLORFFCC66; //STICKLINE(小黑码>0,0,小黑码*0.2,10,0),COLORFF00FF; 买点天数:=BARSLAST(阶段买点>0),nodraw; 卖点天数:=BARSLAST(阶段卖点>0),nodraw; 持股:买点天数<=卖点天数,nodraw; 持币:买点天数>卖点天数,nodraw; InStock:IF(持股>0,0,DRAWNULL), colorred,LINETHICK2; InHand:IF(持币>0,0,DRAWNULL),COLORFFFF00,LINETHICK2; 2、T0龙头,捕捉龙头 X_1:=IF(CLOSE>REF(CLOSE,1),88,0); X_2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND X_1>0,91,0); 龙头:X_2>90; STICKLINE(龙头,LOW*10.93,0,8,0),colorred; X_3:=CLOSE>MA(CLOSE,20) AND CLOSE>MA(CLOSE,60); X_4:=MA(CLOSE,20); X_5:=CLOSE>X_4; X_6:=SMA(HIGH,21,2)*1.05; X_7:=SMA(LOW,21,2)*0.95; X_8:=SMA(LOW,5,1); X_9:=(HIGH-CLOSE)/CLOSE*100<1; X_10:=CLOSE/REF(CLOSE,1)>1.03; X_11:=SMA(CLOSE,2,1); X_12:=IF(CROSS(X_11,X_8),X_6*1.05,X_8); X_13:=IF(CROSS(X_11,X_6),X_6*1.1,X_7); 龙抬头:X_13>X_7 OR X_12>X_8 AND X_9 AND X_10 AND X_3 AND X_5; STICKLINE(龙抬头,0,100,3,0),colormagenta; DRAWTEXT(龙抬头,80,'龙抬头'),colormagenta; 3、回调启动 VAR2:=EMA(SLOPE(EMA(CLOSE,20),10)*34+CLOSE,30); VAR3:=EMA(VAR2,3); VAR4:=EMA(VAR3,3); VAR5:=EMA(VAR4,3); VAR6:=EMA(VAR5,3); VA7:=EMA(VAR6,3); VAR7:=EMA(VA7,3); VA8:=EMA(VAR7,3); VAR8:=EMA(VA8,3); VAR9:=EMA(VAR8,3); VARA:=BARSLAST(CROSS(CLOSE,VAR9)); VARB:=BARSLAST(CROSS(VAR9,CLOSE)); 启动位:IF(CLOSE>VAR9 AND CLOSE>REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),colorred,POINTDOT,LINETHICK3; DRAWTEXT(ISLASTBAR AND 启动位,启动位,'____【升浪启动位】'),colorred; DRAWNUMBER(ISLASTBAR AND 启动位,启动位,启动位),colorred; STICKLINE(CLOSE>VAR9 AND CLOSE>REF(CLOSE,VARA),REF(CLOSE,VARA),LOW*1,5,0),colorred,LINETHICK2; 强:=IF(CLOSE<VAR9 AND CLOSE<REF(CLOSE,VARB),REF(CLOSE,VARB),REF(CLOSE,VARB)),colorred,POINTDOT,LINETHICK1;; STICKLINE(CLOSE<VAR9 AND CLOSE<REF(CLOSE,VARB),REF(CLOSE,VARB),HIGH*1,5,0),colorgreen,LINETHICK2; 势:=IF(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),coloryellow,POINTDOT; STICKLINE(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),LOW*1.02,6,0),colorligray; 回调位:IF(CLOSE<VAR9,REF(CLOSE,VARB),REF(CLOSE,VARB)),colorliblue,POINTDOT,LINETHICK3; DRAWTEXT(ISLASTBAR AND 回调位,回调位,'____回调位'),colorliblue; DRAWNUMBER(ISLASTBAR AND 回调位,回调位,回调位),colorliblue; STICKLINE(CLOSE<VAR9,REF(CLOSE,VARB),REF(CLOSE,VARB),16,0),colorliblue,LINETHICK5; STICKLINE(CLOSE>VAR9,REF(CLOSE,VARA),REF(CLOSE,VARA),16,0),colorred,LINETHICK5; STICKLINE(C>=O,H,L,0,0),colormagenta,LINETHICK2; MA1:=MA(C,1); 启动比:(MA1-启动位)/启动位*100,coloryellow,nodraw; 回调比:(MA1-回调位)/回调位*100,colorgreen,nodraw;C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0),Color2DFFFF; STICKLINE(涨停,OPEN,CLOSE,10,0),Color008C8C; STICKLINE(涨停,OPEN,CLOSE,8,0),Color00AAAA; STICKLINE(涨停,OPEN,CLOSE,6,0),Color00CACA; STICKLINE(涨停,OPEN,CLOSE,5,0),Color00E3E3; STICKLINE(涨停,OPEN,CLOSE,4,0),Color02FFFF; STICKLINE(涨停,OPEN,CLOSE,3,0),Color02FFFF; STICKLINE(涨停,OPEN,CLOSE,2,0),Color2DFFFF; STICKLINE(涨停,OPEN,CLOSE,1,0),Color2DFFFF; 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0),Color33FF33; STICKLINE(跌停,OPEN,CLOSE,10,0),Color009B00; STICKLINE(跌停,OPEN,CLOSE,8,0),Color00B700; STICKLINE(跌停,OPEN,CLOSE,6,0),Color00D200; STICKLINE(跌停,OPEN,CLOSE,5,0),Color00EA00; STICKLINE(跌停,OPEN,CLOSE,4,0),Color0FFF0F; STICKLINE(跌停,OPEN,CLOSE,3,0),Color0FFF0F; STICKLINE(跌停,OPEN,CLOSE,2,0),Color33FF33; STICKLINE(跌停,OPEN,CLOSE,1,0),Color33FF33; ZT:=C/REF(C,1)>1.097; BH:=BARSLAST(ZT); STICKLINE(C,REF(L,BH),REF(L,BH),15,0),colorligray,LINETHICK1; 涨停启动位:=C,REF(L,BH),REF(L,BH); DRAWTEXT(ISLASTBAR AND 涨停启动位,涨停启动位,'____【启动涨停位】'),colorligray; DRAWNUMBER(ISLASTBAR AND 涨停启动位,涨停启动位,涨停启动位),colorwhite; |