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

同花顺源码:组合公式MSD缠师三买,金鳞跳龙门,牛牛指标

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

1、组合公式MSD缠师三买

(手机定制版)道氏理论+三层滤网+史丹强弱周期1234+超买超卖+主力吸筹(完美)=缠师三买、道氏理论结合三层滤网交易系统使用

(手机定制版)史丹新版郝胖改(同花顺)
道氏理论+三层滤网+史丹强弱周期1234+超买超卖+主力吸筹(完美)
史丹顶底2020长期主义
1.包含了之前msd超买超卖的功能,15以下为超卖,85以上预警,100以上考虑减仓。
2.买点分为了1(超短线,上穿史丹超卖线)和2(短期穿越中期线,此时筹码相对更加集中,中期买点);卖点亦然。3为短线卖点(3阳为“机构走阳线”),4为中线卖点(喻义“回头变盐柱”/“斯波朗迪4法则”)。
3.叠加了主力吸筹洗盘线,可以参考。
4.当史丹进入超卖区域,成交量巨量则有红线提醒“巨量离场。”
注意:1.大牛市则守趋势线(或13或30日均线根据个股情况或个人喜好),或者月线搭配周线结合三层滤网;
2.震荡市或者中线可以考虑周线搭配日线的三层滤网。( 顶尖财经 股票学院: http://58188.com )
3.短线可以考虑日线搭配30F的三层滤网。
缠师三买、道氏理论结合三层滤网交易系统使用
M3交易员俱乐部自用通达信指标,根据程峰MSD指标结合史丹温斯特相对强度指标修改而成,结合缠师三买,寻找共振买点,成功率非常高。
使用方法:寻找共振买点=个股、板块与大盘共振+级别共振(5分钟级别30分钟级别多见)
注意:降低操作频率,扩大操作级别。结合三新三强股、缠师三买理论运用效果最佳。
20200402日跟新(考虑到贝叶斯因为钝化失真问题,改为sma.msd.K+5,类似均线系统,可以更加直观。就看与大盘对比强弱+自身强弱,更符合三强原则!郝胖)
20200408更新
冰线改为冰三重过滤线
 
M:=60;
Z:=3;
VAR21:=LLV(LOW,M);
VAR22:=HHV(HIGH,M);
SD:=100*(CLOSE-VAR21)/(VAR22-VAR21);
MSD:SMA(SD,Z,1),colorred,LINETHICK3;
金:=IF(MSD>REF(MSD,1),MSD,DRAWNULL),colorred;
空:=IF(MSD<REF(MSD,1),MSD,DRAWNULL),colorgreen,LINETHICK4;
中MSD:SMA(SD,Z+5,1),colorlired,LINETHICK2;
进:=IF(中MSD>REF(中MSD,1),中MSD,DRAWNULL),colorlired;
退:=IF(中MSD<REF(中MSD,1),中MSD,DRAWNULL),colorligreen,LINETHICK2;
DRAWTEXT(CROSS(MSD,中MSD) AND MSD<50,MSD,'★2'),colorred;
DRAWTEXT(CROSS(中MSD,MSD) AND MSD>50,MSD,'★4'),colorgreen;
DRAWBAND(MSD,RGB(155,50,50),中MSD,RGB(0,100,50));
{DRAWTEXT(CURRBARSCOUNT=1,MSD,''),colorred;}
VAR23:=LLV(INDEXL,M);
VAR24:=HHV(INDEXH,M);
DP:=100*(INDEXC-VAR23)/(VAR24-VAR23);
大盘MSD:SMA(DP,Z,1),colormagenta,LINETHICK2;
DRAWBAND(MSD,RGB(139,28,98),大盘MSD,RGB(0,100,150));
多:=IF(大盘MSD>REF(大盘MSD,1),大盘MSD,DRAWNULL),colormagenta,LINETHICK3;
少:=IF(大盘MSD<REF(大盘MSD,1),大盘MSD,DRAWNULL),colorgreen,LINETHICK3;
中大盘MSD:=SMA(DP,Z+5,1),colorlimagenta,LINETHICK1;
左:=IF(中大盘MSD>REF(中大盘MSD,1),中大盘MSD,DRAWNULL),colorlimagenta;
右:=IF(中大盘MSD<REF(中大盘MSD,1),中大盘MSD,DRAWNULL),colorligreen,LINETHICK1;
{DRAWTEXT(CURRBARSCOUNT=1,大盘MSD,''),colorgreen;}
VAR25:=LLV(INDEXC,M);
VAR26:=HHV(INDEXC,M);
HY:=100*(INDEXC-VAR25)/(VAR26-VAR25);
弱:20,LINETHICK1,colorred,LINETHICK2;
追:50,DOTLINE,colorgreen,LINETHICK1;
强:80,LINETHICK1,colorred;
反:90,DOTLINE,coloryellow;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:0;
吸:IF(VAR5>REF(VAR5,1),VAR5,0),colormagenta,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5/3,3,0 ),colormagenta;
洗:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5/3,3,0),colorgreen;
VAR10:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR11:=SMA(ABS(HIGH-VAR10),13,1)/SMA(MAX(HIGH-VAR10,0),10,1);
VAR12:=EMA(VAR11,10);
VAR13:=HHV(HIGH,33);
VAR14:=EMA(IF(HIGH>=VAR13,VAR12,0),3);
VAR15:0;
诱:IF(VAR14>REF(VAR14,1),VAR14,0),colormagenta,NODRAW;
STICKLINE(VAR14>REF(VAR14,1),100,100-VAR14*15,3,0 ),colormagenta;
出:IF(VAR14<REF(VAR14,1),VAR14,0),colorgreen,NODRAW;
STICKLINE(VAR14<REF(VAR14,1),100,100-VAR14*15,3,0),colorgreen;
天:100,DOTLINE,colorgreen;
VAR7:=1;
VAR8:=LLV(LOW,10);
VAR9:=HHV(HIGH,25);
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT>1,1,SAT)*100;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
N:=60;
K:=3;
VAR17:=LLV(LOW,N);
VAR18:=HHV(HIGH,N);
SD1:=100*(CLOSE-VAR17)/(VAR18-VAR17);
MSD1:=SMA(SD1,K,1),colorred,LINETHICK4;
STICKLINE(饱和度>=97 AND MSD1>50 AND CQ>90,100,105,5,0 ),colorgreen;
J:=4;
X:=3;
ZF:=(C-REF(C,X))/REF(C,X)*100;
MZF:=SMA(ZF,J,1),colorred,LINETHICK2;
上:=IF(MZF>REF(MZF,1),MZF,DRAWNULL),colorred,LINETHICK2;
下:=IF(MZF<REF(MZF,1),MZF,DRAWNULL),colorgreen,LINETHICK2;
DPZF:=(INDEXC-REF(INDEXC,X))/REF(INDEXC,X)*100;
MDPZF:=SMA(DPZF,J,1),colorred,LINETHICK3;
增:=IF(MDPZF>REF(MDPZF,1),MDPZF,DRAWNULL),colorred,LINETHICK3;
减:=IF(MDPZF<REF(MDPZF,1),MDPZF,DRAWNULL),colorgreen,LINETHICK3;
贝:4*SMA(MZF-MDPZF,J,1),colorlimagenta,LINETHICK2;
Q:=IF(贝>REF(贝,1),贝,DRAWNULL),colorlimagenta,LINETHICK4;
R:=IF(贝<REF(贝,1),贝,DRAWNULL),colorgreen,LINETHICK4;
第一法则过滤:0,DOTLINE,colorgreen,LINETHICK1;
DRAWBAND(贝,RGB(155,50,50),第一法则过滤,RGB(0,100,50));



2、金鳞跳龙门

PINJUN:=(OPEN+HIGH+LOW)/3;//{----开盘价主力控制的比较厉害,所以开盘价有必要计入-------}

//{----最高价与最低价因为关系到压力与成本的关系所以计入-----}
RED:=CLOSE>OPEN;          //{判断当日收阳线}
REFBLUE:=REF(CLOSE,1)<REF(OPEN,1);//{判断昨日收阴线}
SHENGMIN:=MA(PINJUN,250)>REF(MA(PINJUN,250),1) OR MA(PINJUN,250)=REF(MA(PINJUN,250),1)
AND MA(PINJUN,20)>REF(MA(PINJUN,20),1);
// {----------这段代码保证行情处于多头中------------------}
PD1:=RED AND REFBLUE AND CLOSE>REF(H,1) AND SHENGMIN;
//{----------设置条件,满足条件出买点--------------------}
DRAWTEXT(PD1,LOW,'B'),colorred,LINETHICK5;
DRAWICON(PD1,LOW,1);     // {-----------------1号图标是向上的箭头------------------}
// {-----------------依据条件画出红色买点B----------------}
//{--------------------------------------------------------------------------------}
//{------------------------------------分割线--------------------------------------}
//{--------------------------------------------------------------------------------}
//{--------------------------------------------------------------------------------}
//{--说明:以上代码是用来定义,当今天收阳线,昨天是阴线,而且收盘价大于昨日最高价的}
//{时候,那么显示买点--------------------------------------------------------------}
REFRED:=REF(CLOSE,1)>REF(OPEN,1);                   //{判断昨日收阳线----          }
PD2:=RED AND REFRED AND CLOSE>REF(H,1) AND SHENGMIN;//{昨天的收阳线出买点的情况----}
DRAWICON(PD2,LOW,5);//{------------------画出可持续的笑脸--------------------------}
//{--------------------------------------------------------------------------------}
//{---------------------------以上代码继续画出昨日阳线的情况,出买点----------------}
//{--------------------------------------------------------------------------------}
BLUEREF:=REF(CLOSE,1)=REF(OPEN,1);
PD3:=RED AND BLUEREF AND CLOSE>REF(H,1) AND SHENGMIN;
DRAWICON(PD3,LOW,5);
//{---------------------------以上这组代码继续画出昨日十字星的情况,出买点----------------}
//{--------------------------------------持有5图标的第一种情况----------------------------}
ZUIDILOW:=LOW<REF(LOW,1);//{--------------判断当日最低价小于昨天最低价--------------------}
ZUIDIDUOTOU:=L>MA(PINJUN,5);//{-----------断定当日最低价站在5日平均价位均线以上-----------}
PINBIJIAO:=MA(PINJUN,5)>REF(MA(PINJUN,5),1);//{-------------短期5日多头-------------------}
CHIYOU:=ZUIDILOW AND ZUIDIDUOTOU AND PINBIJIAO  AND SHENGMIN;
//{说明:---用当日最低价小于昨日最低价来判断,遇到压力,但是股价还是站在5日线上,那就持有--}
DRAWICON(CHIYOU,HIGH,5);
//{---------------------------------------------------------------------------------------}
//{-------以上一组代码说明:当天最低价小于昨日最低价,重心下移,但是最低价始终站在5日均线上
//没有下破5日均线,另外5日均线在多头行情中,而且当天收盘价大于昨天的收盘价,那必须持有股票}
//{--------------------------------------持有5的第二种情况--------------------------------------}
ZUIDIC:=C>MA(PINJUN,5);//{-----------断定当日站在5日平均价位均线以上-----------}
GAOYU:=LOW>MA(PINJUN,5) OR LOW=MA(PINJUN,5); //{用来保证当天最低价站在5日均线上}
CHIYOU2:=ZUIDILOW AND ZUIDIC AND PINBIJIAO  AND SHENGMIN AND GAOYU;
DRAWICON(CHIYOU2,HIGH,5);
//{---------------------------------------------------------------------------------------}
//{-------以上一组代码说明:当天最低价小于昨日最低价,重心下移,但是最低价始终站在5日均线上
//没有下破5日均线,另外5日均线在多头行情中,而且当天收盘价大于昨天的收盘价,那必须持有股票}
//{下面一段代码用来判定当天收盘价低于昨日开盘价的情况下部分卖出}
CLOSEDIJIA:=CLOSE<REF(OPEN,1);//{判断当日收盘价小于昨天开盘价}
CLOSEMAICHU:=CLOSEDIJIA AND PINBIJIAO  AND SHENGMIN; //{两个条件都符合的画,断定仓位一半卖出}
DRAWTEXT(CLOSEMAICHU,HIGH,'S'),colorgreen;
//{--------------------------------终极卖出-------------------------------------}
ZHONGJIMAI:=CLOSE<MA(PINJUN,5);//{判断当日收盘价跌穿5日均线}
BIGS:=ZHONGJIMAI AND PINBIJIAO  AND SHENGMIN; //{两个条件都符合的画,断定仓位一半卖出}
DRAWTEXT(BIGS,HIGH,'S'),colorgreen,LINETHICK5;
DRAWICON(BIGS,HIGH,2);
//{--------------------------------分割线--------------------------------------}
攻击线5日均线:MA(PINJUN,5),colorwhite,LINETHICK2;
行情线20日均线:MA(PINJUN,20),coloryellow;
牛股线250日均线:MA(PINJUN,250),colorred,LINETHICK2;
//{--------------------------------分割线--------------------------------------}
//{--------------------------------分割线--------------------------------------}
ZUIGAO:=HHV(PINJUN,20);                          //{----求出20天内最高价-------}
DRAWTEXT(ZUIGAO>0,ZUIGAO,'+'),colorgreen,LINETHICK3;
ZUIDI:=LLV(PINJUN,20);                           //{----求出20天内最底价-------}
DRAWTEXT(ZUIDI>0,ZUIDI,'+'),colorred;           //{根据条件的成立画出支撑价位-}
//{----------------------------- www.58188.com ---------------------------------};
 


3、牛牛指标 极品波段

趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),coloryellow;
DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));
转强:IF(趋势>50,趋势,DRAWNULL),colorred;
转弱:IF(趋势<50,趋势,DRAWNULL),colorgreen;
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);
DEA:=EMA(DIFF,6);
MACD:=2*(DIFF-DEA);
转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);
STICKLINE(转点=1,50,50,2,0),coloryellow;
STICKLINE(转点=0,50,50,2,0),colorcyan;
STICKLINE(C,90,90,1,0),coloryellow;
STICKLINE(C,10,10,1,0),colorcyan;
判断:SMA(趋势,3,1),coloryellow;
IF(判断>50 AND 趋势>判断,判断,DRAWNULL ),coloryellow,LINETHICK2;
IF(判断<50 AND 趋势>判断,判断,DRAWNULL),COLORFF00FF;
IF(判断>50 AND 趋势<判断,判断,DRAWNULL),colorgreen,LINETHICK2;
风险区:80,COLORFF85FF,POINTDOT;
安全区:20,coloryellow,POINTDOT;
顶部:90,COLORFFFF00;
强弱线:50,colorgreen,POINTDOT;
DRAWICON(CROSS(趋势,判断) AND 趋势<80 ,判断,1);
DRAWICON(CROSS(趋势,顶部),顶部,2);
LC:= REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势1: IF(VAR6>45,VAR6-45,0),COLOR00FFFF;
VAR2Q:=REF(LOW,1);
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;
火焰山:=IF(VAR8Q>100,100,VAR8Q);
STICKLINE(火焰山>0,0 ,火焰山*1.2,3,0 ),COLOR4444FF;
STICKLINE(火焰山>0,0 ,火焰山*1.2,2,0 ),COLOR7777FF;
STICKLINE(火焰山>0,0 ,火焰山*1.2,1,0 ),COLOR9999FF;
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR000033;
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR000077;
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.5,0),COLOR0000BB;
STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR0000DD;
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR003300;
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR007700;
STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR00DD00;
逃顶:=CROSS(82,RSI);
STICKLINE( 逃顶,逃顶,20,3,0),COLORFF5500;
STICKLINE( 逃顶,逃顶,30,2,0),COLORFF8800;
STICKLINE( 逃顶,逃顶,30,1,0),COLORFFAA00;
STICKLINE( 逃顶,逃顶,30,0.5,0),COLORFFCC00;
D1:=(C+L+H)/3;
D2:=EMA(D1,6);
D3:=EMA(D2,5);
BBUY:=CROSS(D2,D3);
DRAWICON(BBUY,10,1);
DRAWTEXT(CURRBARSCOUNT=129,50,'【顶尖财经 股票学院: http://58188.com 】'),COLOR889999;
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),10,2);
DRAWTEXT(CROSS(82,VARR1),35,'减'),coloryellow;
神奇线选股:(CROSS(趋势,判断) AND 趋势<80),LINETHICK0;
波段选股:(BBUY),LINETHICK0;

上一篇:同花顺公式下载:多头空头生命线

下一篇:同花顺源码:超准出击,第一波段,ZTZB