当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:章哥上车,精准猎庄,控盘

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、章哥上车

0,colorligray;

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),colorwhite,LINETHICK1;
DEA:EMA(DIF,9),COLOR00FFFF,LINETHICK1;
MACD:2*(DIF-DEA),COLORFF00FF,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
主力线:EMA(DIF-MA(REF(DIF,1),1),1)*1.862,colorgreen,LINETHICK1;
能量线:EMA(DEA-MA(REF(DEA,1),1),1)*1.862,COLORFFFF1A,LINETHICK1;
IF(主力线>=能量线 AND 主力线>-0.0099,主力线,DRAWNULL),colorred,LINETHICK2;
IF(主力线>-0.0099 AND DIF>REF(DIF,1),主力线,DRAWNULL),colorred,LINETHICK2;
IF(主力线>=能量线 AND 能量线>REF(能量线,1) AND 能量线>-0.0099,能量线,DRAWNULL),colorlimagenta,LINETHICK2;
IF(能量线>-0.0099 AND DIF>DEA AND DIF>-0.0099,能量线,DRAWNULL),colorlimagenta,LINETHICK2;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,6,0),color0000ff;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,6,0),colorffff00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,6,0),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,6,0),color00ff00;
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;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
蓝:IF(FILTER(YXF=1,5),20,0),colorliblue,LINETHICK3;
红: IF(FILTER(YXF=1,5),10,0),colorred,LINETHICK2;
黄: IF(FILTER(YXF=1,5),5,0),coloryellow,LINETHICK1;
 



2、精准猎庄,精准性可达到90%以上

N:=5;

N1:=8;
VAR2:=8;
MA5:=MA(C,5);
MA10:MA(CLOSE,10);
MA20:EMA(C,14);
MA60:MA(CLOSE,60);
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);
操作:IF(MA5>MA20,MA5,MA20);
乖离:(L/MA20-1)*100,COLORFF00FF,NODRAW;
乖离1:(H/MA20-1)*100,COLORFF00FF,NODRAW;
BB:=REF(INDEXC,1)<REF(INDEXC,2) AND REF(C,2)*0.95>=REF(C,1) AND REF(O,
1)/REF(C,1)>=1.05 AND REF(C,1)<REF(O,1) AND C>O AND C/O>=1.05 AND C>REF(O,1) AND REF(VOL,1)<REF(VOL,2);
STICKLINE(乖离1>=12,C,(O+C)/2,3,0),colorred;
STICKLINE(乖离<-15,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(CROSS(C,MA20),H,L,1,0),coloryellow;
STICKLINE(CROSS(MA5,C),H,L,1,0),colorblue;
STICKLINE(BB,O,C,4,0),colorred;
STICKLINE(BB,O,H,0,0),colorred;
STICKLINE(BB,L,C,0,0),colorred;
DRAWTEXT(BB,L*0.98,'追!'),coloryellow;
IF(操作>=REF(操作,1),操作,DRAWNULL),colorred,LINETHICK2;
CC:=CROSS(VAR1,VAR2);
LC:=REF(CLOSE,1);
RSI:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'见机买入'),colorred;



3、控盘

红控盘红色主力进场/白色无庄控盘/黄色开始控盘/紫高度控盘/绿出货/天蓝洗盘/( 顶尖财经 股票学院: http://www.58188.com )

VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,2,0),colorwhite;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),colorwhite,NODRAW;
开始控盘:IF(A10,5,0),LINETHICK1,coloryellow;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,2,0),colorred;
有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),colorred,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,2,0),COLORFF00FF;
高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2,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;
STICKLINE(VAR11>REF(VAR11,1),0,VAR11,2,0 ),colorred;
洗盘:IF(VAR11<REF(VAR11,1),VAR11,0),COLORFFFF00,NODRAW;
STICKLINE(VAR11<REF(VAR11,1),0,VAR11,2,0),COLORFFFF00;

上一篇:同花顺源码:黑马通道上升趋势,庄底,CGP短长线附图

下一篇:同花顺源码:个股和大盘涨幅对比来确定强弱