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

同花顺源码精选:买卖点满意提示,最佳进场时机,主力中短组合

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

1、买卖点满意提示

在捕捞季节基础上提示了合适的买卖点。指标仅供参考,需要多方面指标共同分析。

M12:MA(CLOSE,12),coloryellow,LINETHICK1;

A:MA(CLOSE,7),colorgreen,LINETHICK1;

IF(A>REF(A,1),A,DRAWNULL)colorred,LINETHICK1;

M26:MA(CLOSE,26),coloryellow,LINETHICK1,COLOR8000FF;

M62:MA(CLOSE,62),coloryellow,LINETHICK2;

M133:MA(CLOSE,133),coloryellow,LINETHICK1,,COLOR0080FF;

B:=A<REF(A,1);

IF(B-1,A,DRAWNULL)colorred,LINETHICK1;

DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.97,'←进场') ,LINETHICK1,COLOR00FFFF;

DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND

(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1);

DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND

(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);

AZ6:=(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)));

B7:=(10);

DRAWTEXT(CROSS(AZ6,B7),L,'←底'),COLOR0000FF;

VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND

(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));

VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND

(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));

DRAWTEXT((VARC=1),L,'满意'),COLOR0000FF;

DRAWTEXT((VARD=1),H,'卖'),colorwhite;

实体中位:IF(CLOSE>=OPEN,OPEN+(CLOSE-OPEN)/2,CLOSE+(OPEN-CLOSE)/2);

ZF:=(MAX(O,C)-MIN(O,C))/REF(C,1)>=0.04;

STICKLINE(C>0 AND ZF,实体中位,实体中位,4,1),LINETHICK1,coloryellow;

AA:=CLOSE/REF(CLOSE,1)>1.099;

STICKLINE(AA,O,C,3,0),colormagenta;

DRAWTEXT(FILTER(L<REF(L,1) AND  C>REF(H,1),5),L*1.02,'短高');

STICKLINE(FILTER(L<REF(L,1) AND  C>REF(H,1),5),L,L,15,0),coloryellow;

破底新高:=(CLOSE>REF(HIGH,1) AND LOW<REF(LOW,1));

STICKLINE(破底新高,OPEN,CLOSE,1,0),coloryellow;




2、最佳进场时机

 LC:=REF(CLOSE,1);

RSI5:=((SMA(MAX((CLOSE-LC),0),5,1) / SMA(ABS((CLOSE-LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD> 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
最佳买入:=(AV + NEWVOL);
买入选股:IF(CROSS(最佳买入,0),4,0),STICK,COLOR00FFFF,LINETHICK2;
VARA1:=SMA(买入选股,3,1);
VARA2:=SMA(VARA1,3,1),COLOR0000FF;
VARA3:=SMA(VARA2,3,1),COLOR00FFFF;
建仓买点:IF(CROSS(VARA2,VARA3) AND (VARA2<40),5,0* 10000),COLOR0000FF,LINETHICK1;
STICKLINE(建仓买点,0,1.5,6,0),COLORFF80FF;
STICKLINE(建仓买点,0.5,2.8,2,0),COLOR3000FF;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
最佳买入时机: IF(CROSS(J,3),1,0),STICK,COLORFFFF00;
STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;
STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;
STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;
机构建仓: IF(最佳买入<5,-0.5,0),STICK,COLOR00FF00,LINETHICK1;
机构建仓日:STICKLINE(机构建仓,0,-1,4,1),COLOR00FF00,LINETHICK5;
趋势:3*SMA((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100,5,1)-2*SMA(SMA((CLOSE-
LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2,COLORFF99FF,NODRAW;
备钱: IF(趋势<=20,-0.8,0),COLORD0D0D0,STICK,LINETHICK3;
快买: IF(趋势<=10,1,0),COLORFF38FF,STICK,LINETHICK3;
BIAS1:=(C-MA(C,6))/MA(C,6)*100,COLORFFDDCC;
BIAS2:(C-MA(C,13))/MA(C,13)*100,COLORFFFFFF,LINETHICK1;
BIAS3:=(C-MA(C,26))/MA(C,26)*100,COLORFFFFFF,LINETHICK1;
乖离:(BIAS1+2*BIAS2+3*BIAS3)/6,COLOR00FFFF;
乖离超限:MA(乖离,3),COLORFF80FF;
STICKLINE(CROSS(乖离,乖离超限) AND 乖离超限<-9,-4,0,1,1),COLORFFFFFF;
STICKLINE(CROSS(乖离超限,乖离) AND 乖离>10,6,0,3,0),COLORFF88FF;
DRAWBAND(MA(乖离,1),RGB(240,120,40),MA(乖离超限,1),RGB(256,200,20));
警跌:IF(BIAS2<REF(BIAS2,1),BIAS2,DRAWNULL),COLORFF6128,LINETHICK3;
回升:IF(BIAS2>REF(BIAS2,1),BIAS2,DRAWNULL),COLOR00FFFF,LINETHICK3;
R:SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE- REF(C,1)),6,1)*100,COLORFFCCFF,NODRAW;
R2:SMA(MAX(CLOSE-REF(C,1),0),13,1)/SMA(ABS(CLOSE- REF(C,1)),13,1)*100,COLOR00CCFF,NODRAW;
STICKLINE(CROSS(R2,R) AND R2>78,2,0,3,-1),COLOR30FFFF;
CC:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD:=L<MA(C,5)*0.921;
EE:=V<MA(V,5)*1.5;
老鼠仓:=(L<(AMOUNT/V)*0.9) AND CC AND DD AND EE,LINETHICK0,COLOR0099FF;
DRAWTEXT(老鼠仓,-5,'老鼠仓'),COLORFFFFFF;
STICKLINE(CROSS(乖离,BIAS1) AND BIAS2>15,乖离,0,1,0),COLOR3300FF;
DRAWICON(CROSS(乖离,BIAS1*0.382),-1,1),colorgreen;
 



3、主力中短组合

组合了两个公式

RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
Y0:SMA(RSV,3,1),colorred,LINETHICK1;
Y1:SMA(Y0,3,1),coloryellow,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
Y2:SMA(RSV1,5,1),colormagenta,LINETHICK2;
Y3:SMA(Y2,10,1),colorgreen,LINETHICK2;
超卖:18,colorwhite;
超买:82,colorblue;
STICKLINE(Y0>Y1,Y0,Y1,1,0),colorred;
STICKLINE(Y0<=Y1,Y0,Y1,1,0),coloryellow;
STICKLINE(Y2>Y3,Y2,Y3,1,0),colormagenta;
STICKLINE(Y2<=Y3,Y2,Y3,1,0),colorgreen;
HORLINE(1,50,1,1);
HORLINE(1,63,1,2),colorliblue;
//////( 股 民 学 院 : http://www.58188.net )
VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,25);
操盘线: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,4),colorgray;
绝底:=8,LINETHICK2,COLOR0000FF;
短底:=25,LINETHICK2,colorblue;
短顶:=90,colorgreen;
绝顶:=88,LINETHICK2,COLORFF00FF;
分界:=50,COLOR00FFFF;
m15:EMA(操盘线,15),colorblue;
m30:=MA(操盘线,30),colorblue;
DRAWTEXT(CROSS(m15,短底),m15,'出水');
DRAWTEXT(CROSS(操盘线,50),操盘线,'飞');
DRAWTEXT(CROSS(操盘线,48),操盘线,'预');
戏珠:IF(CROSS(REF(操盘线,1),操盘线) AND REF(操盘线,1)>分界,操盘线,NULL);
DRAWTEXT(CROSS(操盘线,m15-1) AND m15>分界,分界,'舞');
DRAWTEXT(CROSS(操盘线,m15-3) AND m15<分界 AND m15>短底  ,分界+1,'弹');
DRAWTEXT(CROSS(m15,短顶),分界,'落水'),colorgreen;
//////
VAR22:=IF(MONTH<12,1,1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
主力:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR22,LINETHICK2,colorred;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORFF9933;
DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);
DRAWTEXT(CROSS(散户,主力) AND 散户>75,80,'头部'),coloryellow;
//////
 

上一篇:同花顺源码精选:买卖早提示严买宽卖,日线资金抄底,MACD美颜版

下一篇:同花顺源码精选:光芒四射,主力洗盘建仓,多空趋势副图