适合大盘和个股的指标源码_什么是大盘指标股

hacker|
91

文章目录:

大盘个股同时看的指标公式

中间线:0,COLORWHITE;

N日线:=30;

个股强弱:(CLOSE-MA(CLOSE,N日线))/MA(CLOSE,N日线)*100,LINETHICK1,COLORMAGENTA;

大盘强弱:(INDEXC-MA(INDEXC,N日线))/MA(INDEXC,N日线)*100,LINETHICK1,COLORCYAN;

行业强弱:(HY_INDEXC-MA(HY_INDEXC,N日线))/MA(HY_INDEXC,N日线)*100,COLORYELLOW,LINETHICK1;

{======显示位置的数据自己根据需要进行上下左右调整======}

左右位置:=0;

上下位置:=0;

左右平移:=0.15;

上下平移:=0;

涨停数:=CONst(INSUM(HYBLOCK,'涨幅',1,0));

个股排名:=CONST(INSORT(HYBLOCK,'涨幅',1,0));

HYPM1:=STRCAT('【',HYBLOCK);

HYPM2:=STRCAT(HYPM1,'】板块涨停 ');

HYPM3:=STRCAT(HYPM2,VAR2STR(涨停数,0));

HYPM4:=STRCAT(HYPM3,'支');

HYPM5:=STRCAT

HYPM4A:=STRCAT(HYPM4,'(无个股涨停)');

HYPM4B:=IF(涨停数10,STRCAT

DRAWTEXT_FIX(ISLASTBAR,左右位置,上下位置,0,IF(涨停数1,DRAWNULL,HYPM4B)),COLORRED;

DRAWTEXT_FIX(ISLASTBAR,左右位置,上下位置,0,IF(涨停数=1,HYPM4,HYPM4A)),COLORWHITE;

所属板块:=STRCAT(STRCAT(GNBLOCK,FGBLOCK),ZSBLOCK);

DRAWTEXT_FIX(CURRBARSCOUNT=3,左右平移,上下平移,0,所属板块),COLORRED;

求助个股与大盘涨跌幅对比的指标

DPK30:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1),colorgray;

K30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1),NODRAW;

STICKLINE(K30=50,50,K30,3,0),COLOR000080;

STICKLINE(K30=50,50,K30,2,0),COLOR0000A6;

STICKLINE(K30=50,50,K30,1,0),COLOR0000CE;

STICKLINE(K30=50,50,K30,0,0),COLOR0000FF;

STICKLINE(K30STICKLINE(K30STICKLINE(K30STICKLINE(K30DRAWICON(K30DPK30 AND K3050,16,38);

大盘:DPK30,coloryellow;

个股:K30,colorwhite. 拓展资料:个股是一种无偿还期限的有价证券,按股票持有者可分为国家股、法人股、个人股三种。个人股(individual stock)投资资金来自个人,可以自由上市流通。

求同花顺股票软件里 个股与大盘对比的相对强度指标。最好有源码。

个股:=(CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*100;

大盘:=(INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*100;

强弱值:EMA(个股-大盘,7);

M:0;

其中"N"参数设为21.

通达信个股叠加大盘指数指标源代码

可以编写通达信个股叠加大盘指标的公式代码,是叠加指定的大盘指数,例如上证指数,还是叠加对应的大盘指数,例如创业板就自动叠加创业板的大盘指数了.是想把这个指标放在主图上,还是把这个指标放在幅图上.条件说明清楚才好编写指标公式,例如下图放在幅图上的效果.

赢在龙头的指标 个股资金强弱 源码 哪位知道!

{修改以后,通达信已通过测试}

20,POINTDOT;

50,POINTDOT;

80,POINTDOT;

个股线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,;

大盘线:MA(FORCAST(个股线,20),6),,COLORGREEN,;

YYA4:=MA(CLOSE,20);

YYA5:=(CLOSE MA(CLOSE,5));

YYA6:=(MA(CLOSE,5) MA(CLOSE,10));

YYA7:=(CLOSE MA(CLOSE,10));

YYA8:=(MA(CLOSE,5) MA(CLOSE,20));

YYA9:=(CLOSE MA(CLOSE,20));

YYA10:=REF(YYA4,1);

YYA11:=(YYA4 YYA10);

YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 -

10))) + IF(YYA11,10,(0 - 10)));

DSLX:=(CLOSE / INDEXC);

DSLX1:=MA(DSLX,5);

YYV1:=MA(VOL,5);

YYV2:=MA(VOL,10);

MA75:=MA(CLOSE,144);

WJ:=(H+L+C)/3;

V1:=IF(H=L,1,H-MAX(O,C));

V2:=IF(H=L,1,MAX(C,O)-WJ);

V3:=IF(H=L,1,MIN(O,C)-L);

V4:=IF(H=L,1,WJ-MIN(C,O));

V5:=VOL/IF(H=L,4,H-L);

V6:=(V1*V5);

V7:=(V2*V5);

V8:=(V3*V5);

V9:=(V4*V5);

LC:=REF(C,1);

K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1);

D9:=SMA(K9,3,1);

J9:=3*K9-2*D9;

VAR1:=DYNAINFO(17)*REF(MA(V,5),1);

VAR2:=DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT;

VAR3:=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,VAR1,VAR2);

预量:=IF(V=VAR3 AND PERIOD=5,V,VAR3);

TT:=240/FROMOPEN;

比:=TT;

比1:=预量/V;

买盘:=IF(ISLASTBAR AND PERIOD=5 AND C300,(DYNAINFO(23)*比),(IF(ISLASTBAR AND C300,(V9+V8)*TT,(V9+V8))));

卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C300,(DYNAINFO(22)*比),(IF(ISLASTBAR AND C300,(V6+V7)*TT,(V6+V7))));

买盘1:=DYNAINFO(23)*比1;

卖盘1:=DYNAINFO(22)*比1;

MFI:=(HIGH-LOW)*1000000/(VOL*比);

XXX:=EMA((C-LLV(L,11))/(HHV(H,25)-LLV(L,11))*4,8)+1;

XX:=IF(1=1,POW(XXX,2)-10,DRAWNULL);

DRAWTEXT((CONST(IF(((CROSS(YYAVX,1) AND (YYV1 = YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,4),COLORFF00FF;

DRAWTEXT((CONST(IF(((CROSS(YYAVX,1) AND (YYV1 YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,5),COLORFF00FF;

DRAWTEXT((CONST(IF(((CROSS(YYAVX,1) AND (YYV1 YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,6),COLORFF00FF;

DRAWTEXT((CONST(IF(((CROSS(YYAVX,1) AND (YYV1 = YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,7),COLORFF00FF;

DRAWTEXT((CONST(IF(((CROSS(1,YYAVX) AND (YYV1 = YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,8),COLORYELLOW;

DRAWTEXT((CONST(IF(((CROSS(1,YYAVX) AND (YYV1 YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,9),COLORYELLOW;

DRAWTEXT((CONST(IF(((CROSS(1,YYAVX) AND (YYV1 = YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,10),COLORYELLOW;

DRAWTEXT((CONST(IF(((CROSS(1,YYAVX) AND (YYV1 YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,11),COLORYELLOW;

DRAWTEXT((CONST(IF(((((YYAVX = 1) AND (REF(YYAVX,1) 0)) AND (YYV1 = YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,12),COLOR00FFFF;

DRAWTEXT((CONST(IF(((((YYAVX = 1) AND (REF(YYAVX,1) 0)) AND (YYV1 YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,13),COLORYELLOW;

DRAWTEXT((CONST(IF(((((YYAVX = 1) AND (REF(YYAVX,1) 0)) AND (YYV1 = YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,14),COLORYELLOW;

DRAWTEXT((CONST(IF(((((YYAVX = 1) AND (REF(YYAVX,1) 0)) AND (YYV1 YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,15),COLORYELLOW;

DRAWTEXT((CONST(IF(((((YYAVX 1) AND (REF(YYAVX,1) 0)) AND (YYV1 = YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,16),COLORYELLOW;

DRAWTEXT((CONST(IF(((((YYAVX 1) AND (REF(YYAVX,1) 0)) AND (YYV1 YYV2)) AND (DSLX = DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,17),COLORFFFF00;

DRAWTEXT((CONST(IF(((((YYAVX 1) AND (REF(YYAVX,1) 0)) AND (YYV1 = YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,18),COLORFFFF00;

DRAWTEXT((CONST(IF(((((YYAVX 1) AND (REF(YYAVX,1) 0)) AND (YYV1 YYV2)) AND (DSLX DSLX1)),1,0)))=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,60,19),COLORFFFFFF;

DRAWTEXT((CONST(IF((CROSS(YYAVX,1) AND (YYV1 = YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,20),COLOR00FF00;

DRAWTEXT((CONST(IF((CROSS(YYAVX,1) AND (YYV1 YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,21),COLORFF00FF;

DRAWTEXT((CONST(IF((CROSS(1,YYAVX) AND (YYV1 = YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,22),COLORAAAAAA;

DRAWTEXT((CONST(IF((CROSS(1,YYAVX) AND (YYV1 YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,23),COLORFF0000;

DRAWTEXT((CONST(IF((((YYAVX = 1) AND (REF(YYAVX,1) 0)) AND (YYV1 = YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,24),COLOR00FFFF;

DRAWTEXT((CONST(IF((((YYAVX = 1) AND (REF(YYAVX,1) 0)) AND (YYV1 YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,25),COLOR00FF00;

DRAWTEXT((CONST(IF((((YYAVX 1) AND (REF(YYAVX,1) 0)) AND (YYV1 = YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,26),COLORFFFFFF;

DRAWTEXT((CONST(IF((((YYAVX 1) AND (REF(YYAVX,1) 0)) AND (YYV1 YYV2)),1,0))) AND (CLOSE 200) AND CURRBARSCOUNT=59,50,27),COLORFFFFFF;

DRAWTEXT(CONST(MFI=REF(MFI,1)AND VOL*比=REF(VOL,1)) AND CURRBARSCOUNT=59,40,28),COLORFFFFFF;

DRAWTEXT(CONST(MFIREF(MFI,1)AND VOL*比REF(VOL,1)) AND CURRBARSCOUNT=59,40,29),COLORGREEN;

DRAWTEXT(CONST(MFI=REF(MFI,1)AND VOL*比REF(VOL,1)) AND CURRBARSCOUNT=59,40,30),COLORGREEN;

DRAWTEXT(CONST(MFIREF(MFI,1)AND VOL*比=REF(VOL,1)) AND CURRBARSCOUNT=59,40,31),COLORYELLOW;

DRAWTEXT(CONST((卖盘+买盘)/REF(VOL,1)2) AND CURRBARSCOUNT=59,30,32),COLORGREEN;

DRAWTEXT(CONST(REF(VOL,1)/(卖盘+买盘)1.5) AND CURRBARSCOUNT=59,30,33),COLORYELLOW;

DRAWTEXT(CONST((卖盘-买盘)/买盘0.4) AND CURRBARSCOUNT=59,20,34),COLORGREEN;

DRAWTEXT(CONST((买盘-卖盘)/卖盘0.4) AND CURRBARSCOUNT=59,20,35),COLORYELLOW;

DRAWTEXT(CONST(IF(预量=LLV(预量,10),1,0)) AND CURRBARSCOUNT=59,10,36),COLOR00FF00;

DRAWTEXT(CONST(IF(预量=LLV(预量,10) AND J970,1,0)) AND CURRBARSCOUNT=59,10,37),COLOR00FF00;

DRAWTEXT(CONST(IF(CLC AND MA(C,5)REF(MA(C,5),1) AND MA(C,10)REF(MA(C,10),1) AND CMA(C,5) AND REF(MA(C,5),1)=REF(MA(C,5),2) AND YYV1=YYV2 AND (预量REF (预量,1) AND 预量YYV1) AND 买盘1卖盘1,1,0)) AND CURRBARSCOUNT=28,20,38),COLORFF00FF;

DRAWTEXT(CONST(IF(CLC AND CMA(C,5) AND 买盘1卖盘1 AND 预量REF(预量,1) AND 预量YYV1,1,0)) AND CURRBARSCOUNT=28,3,39),COLOR00FF00;

DRAWTEXT(CONST(IF(CLC*0.96 AND CMA(C,5) AND 买盘1卖盘1*1.15 AND 预量REF (预量,1) AND 预量YYV1,1,0)) AND CURRBARSCOUNT=28,10,40),COLOR00CCCC;

DRAWTEXT(CONST(IF(CLC AND MA(C,5)REF(MA(C,5),1) AND MA(C,10)=REF(MA(C,10),1) AND 买盘1卖盘1 AND CMA(C,5) AND CMA(C,10)AND 预量LLV(预量,10),1,0)) AND CURRBARSCOUNT=28,20,41),COLORFFFF00;

DRAWTEXT(CONST(IF((CMA(C,5) AND CMA(C,10)) OR (C=MA(C,5) AND (C=MA(C,10) OR MA(C,10)=REF(MA(C,10),1))),1,0)) AND CLC AND CURRBARSCOUNT=59,90,42),COLORFF77CC;

DRAWTEXT((CONST(IF(CLOSE=MA(CLOSE,13),1,0))) AND CURRBARSCOUNT=59,80,43),COLORGREEN;

DRAWTEXT((CONST(IF(CLOSEMA(CLOSE,13) AND CMA(CLOSE,5),1,0))) AND CURRBARSCOUNT=59,80,44),COLORGREEN;

DRAWTEXT((CONST(IF(CROSS(MA(CLOSE,13),CLOSE),1,0))) AND CURRBARSCOUNT=49,90,45),COLORGREEN;

DRAWTEXT((CONST(IF(C=MA75,1,0))) AND CURRBARSCOUNT=49,80,46),COLORGREEN;

DRAWTEXT((CONST(IF(CMA75,1,0))) AND CURRBARSCOUNT=49,80,47),COLORGREEN;

3条大神的评论

  • avatar
    访客 2022-07-12 上午 10:38:30

    涨停数1,DRAWNULL,HYPM4B)),COLORRED;DRAWTEXT_FIX(ISLASTBAR,左右位置,上下位置,0,IF(涨停数=1,HYPM4,HYPM4A)),COLORWHITE;所属板

  • avatar
    访客 2022-07-12 下午 06:18:32

    )=1 AND (CLOSE 200) AND CURRBARSCOUNT=59,70,10),COLORYELLOW;DRAWTEXT((CONST(IF(((CROSS(1,YY

  • avatar
    访客 2022-07-12 下午 04:17:13

    OW,34)),3), COLORRED,; 大盘线:MA(FORCAST(个股线,20),6),,COLORGREEN,;YYA4:=MA(CLOSE,20);YYA5:=(CLOSE

发表评论