大智慧大盘指数副图指标公式

大智慧,大盘指数,副图,指标公式

 

分析个股的强弱,少不了要对比大盘的走势,因此一直用大盘指数副图指标来配合个股的分析,一直以来用的是分析家,大智慧,但这两款软件的大盘函数只对应上证和深证,不包含中小板和创业板指数,应用上未免先天不足,无法满足结构性行情的需要(这方面通达信要好一些)!经过长时间的观察发现,沪深300指数的走势和上证大盘吻合度很高,深成指次之,中小板联动性不强,创业板联动最差。究其原因,沪深300指数里面的成分股,深成指入选68支,占比22.7%, 中小板35只, 占比 11.7% ;上证入选197只,占比65.7%;创业板没有一只入选。这也就意味着如果还以大智慧现有的大盘函数来做指数副图,偏差会越来越大了!根据以上的分析,我将整个市场的股票重新分配到不同的指数里面,分析的准确性也就有了明显的提高!大家可以参考使用

 

{指标一 指数副图}
M5:MA("DPSJYY.SP",5);
M10:MA("DPSJYY.SP",10);
M20:MA("DPSJYY.SP",20);
M55:MA("DPSJYY.SP",55),LINETHICK2;
M120:MA("DPSJYY.SP",125),LINETHICK2;
M250:MA("DPSJYY.SP",250),COLORCYAN,LINETHICK2;
STICKLINE("DPSJYY.SP">"DPSJYY.KP" OR "DPSJYY.SP"="DPSJYY.KP" AND "DPSJYY.SP">REF("DPSJYY.SP",1),"DPSJYY.ZD","DPSJYY.ZG",0.5,0),LINETHICK5,color010000;
STICKLINE("DPSJYY.SP">"DPSJYY.KP" OR "DPSJYY.SP"="DPSJYY.KP" AND "DPSJYY.SP">REF("DPSJYY.SP",1),"DPSJYY.KP","DPSJYY.SP",7,0),LINETHICK5,color010000;
STICKLINE("DPSJYY.SP"<"DPSJYY.KP" OR "DPSJYY.SP"="DPSJYY.KP" AND "DPSJYY.SP"<=REF("DPSJYY.SP",1),"DPSJYY.ZD","DPSJYY.ZG",0.5,0),LINETHICK5,color010000;
STICKLINE("DPSJYY.SP"<"DPSJYY.KP" OR "DPSJYY.SP"="DPSJYY.KP" AND "DPSJYY.SP"<=REF("DPSJYY.SP",1),"DPSJYY.KP","DPSJYY.SP",7,0),LINETHICK5,color010000;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",7,0),color0022CC;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",6,0),color0033DD;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",5,0),color0044EE;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",4,0),color0055FF;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",3,0),color0066FF;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",2,0),color0077FF;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",1,0),color0088FF;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.ZG",0,0),color0088FF;
STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.KP","DPSJYY.ZD",0,0),color0088FF;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",7,0),color00AA00;

STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",6,0),color00BB11;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",5,0),color00CC22;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",4,0),color00DD22;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",3,0),color00EE33;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",2,0),color00FF33;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",1,0),color00FF66;
STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.ZG","DPSJYY.ZD",0,0),color00FF66;
DRAWGBKLAST(c>1,STRIP(RGB(15,80,225),RGB(0,0,0),1));

{指标二 DPSJYY)
ZG:if((STRTONUM(STKLABEL)>2000 and STRTONUM(STKLABEL)<2999 OR STRTONUM(STKLABEL)=399005),"399005$HIGH",IF((STRTONUM(STKLABEL)>300000 and STRTONUM(STKLABEL)<300500 OR STRTONUM(STKLABEL)=399006),"399006$HIGH",IF((INBLOCK('沪深300')=1 ),"399300$HIGH",INDEXH)));
ZD:if((STRTONUM(STKLABEL)>2000 and STRTONUM(STKLABEL)<2999 OR STRTONUM(STKLABEL)=399005),"399005$LOW",IF((STRTONUM(STKLABEL)>300000 and STRTONUM(STKLABEL)<300500 OR STRTONUM(STKLABEL)=399006),"399006$LOW",IF((INBLOCK('沪深300')=1 ),"399300$LOW",INDEXl)));
SP:if((STRTONUM(STKLABEL)>2000 and STRTONUM(STKLABEL)<2999 OR STRTONUM(STKLABEL)=399005),"399005$CLOSE",IF((STRTONUM(STKLABEL)>300000 and STRTONUM(STKLABEL)<300500 OR STRTONUM(STKLABEL)=399006),"399006$CLOSE",IF((INBLOCK('沪深300')=1 ),"399300$CLOSE",INDEXc)));
kP:if((STRTONUM(STKLABEL)>2000 and STRTONUM(STKLABEL)<2999 OR STRTONUM(STKLABEL)=399005),"399005$open",IF((STRTONUM(STKLABEL)>300000 and STRTONUM(STKLABEL)<300500 OR STRTONUM(STKLABEL)=399006),"399006$open",IF((INBLOCK('沪深300')=1 ),"399300$open",INDEXo)));
 

 

 




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图