通达信板块指数指标公式摘抄
通达信板块指数指标公式摘抄
指标公式可以解释为,是源于对股票过去数据、走势的分析并结合主力操盘手法、心态博弈等因素影响,从而总结归纳出一种成功概率较高的选股模型,最后编译成通达信能识别的源代码。指标公式包括:主图指标公式、副图指标公式、条件选股指标公式、盘中条件预警指标公式。下面是小编帮大家整理的通达信板块指数指标公式摘抄,欢迎大家借鉴与参考,希望对大家有所帮助。
通达信板块指数指标公式摘抄 1
N:=20;
M:=3;
VAR1:=(“399006$C”);
VAR2:=(“399005$C”);
VAR3:=(“399386$C”);
VAR4:=(“399150$C”);
VAR5:=(“399138$C”);
VAR6:=(“399200$C”);
VAR7:=(“399110$C”);
VAR8:=(“399136$C”);
VAR9:=(“399135$C”);
VAR10:=(“399130$C”);
VAR11:=(“399160$C”);
VAR12:=(“999999$C”);
VAR13:=(“399137$C”);
创业板指:SUM((VAR1/REF(VAR1,1)-1)*100,0),COLORYELLOW;
中小板指:SUM((VAR2/REF(VAR2,1)-1)*100,0),COLORBLUE;
医药指数:SUM((VAR3/REF(VAR3,1)-1)*100,0),COLORRED;
建筑:=SUM((VAR4/REF(VAR4,1)-1)*100,0);
机械:=SUM((VAR5/REF(VAR5,1)-1)*100,0);
地产:=SUM((VAR6/REF(VAR6,1)-1)*100,0);
农林:=SUM((VAR7/REF(VAR7,1)-1)*100,0);
电子:=SUM((VAR8/REF(VAR8,1)-1)*100,0);
石化:=SUM((VAR9/REF(VAR9,1)-1)*100,0);
制造:=SUM((VAR10/REF(VAR10,1)-1)*100,0);
运输:=SUM((VAR11/REF(VAR11,1)-1)*100,0);
上证:SUM((VAR12/REF(VAR12,1)-1)*100,0),COLORWHITE,LINETHICK2;
金属:=SUM((VAR13/REF(VAR13,1)-1)*100,0);
通达信板块指数指标公式摘抄 2
N:=45;
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=SMA(VAR3,3,1);
个股波:SMA(VAR4,3,1),COLORWHITE,LINETHICK3;
VAR22:=(INDEXC-LLV(INDEXL,N))/(HHV(INDEXH,N)-LLV(INDEXL,N))*100;
VAR33:=SMA(VAR22,5,1);
VAR44:=SMA(VAR33,3,1);
指数波:SMA(VAR44,3,1),COLORRED,LINETHICK5;
AA:=( "399300$ CLOSE "-LLV("399300$ LOW ",N))/(HHV("399300$ HIGH ",N)-LLV("399300$ LOW ",N))*100;
AA1:=SMA(AA,5,1);
AA2:=SMA(AA1,3,1);
沪深300:SMA(AA2,3,1),COLORMAGENTA,LINETHICK2;
BB:=( "399005$ CLOSE "-LLV("399005$ LOW ",N))/(HHV("399005$ HIGH ",N)-LLV("399005$ LOW ",N))*100;
BB1:=SMA(BB,5,1);
BB2:=SMA(BB1,3,1);
中小板指:SMA(BB2,3,1),COLORYELLOW,LINETHICK1;
CC:=( "399006$ CLOSE "-LLV("399006$ LOW ",N))/(HHV("399006$ HIGH ",N)-LLV("399006$ LOW ",N))*100;
CC1:=SMA(CC,5,1);
CC2:=SMA(CC1,3,1);
创业板指:SMA(CC2,3,1),COLORCYAN,LINETHICK1;
DD:=( "399305$ CLOSE "-LLV("399305$ LOW ",N))/(HHV("399305$ HIGH ",N)-LLV("399305$ LOW ",N))*100;
DD1:=SMA(DD,5,1);
DD2:=SMA(DD1,3,1);
基金:SMA(DD2,3,1),COLORLICYAN,LINETHICK1;
EE:=( "399190$ CLOSE "-LLV("399190$ LOW ",N))/(HHV("399190$ HIGH ",N)-LLV("399190$ LOW ",N))*100;
EE1:=SMA(EE,5,1);
EE2:=SMA(EE1,3,1);
金融行业:SMA(EE2,3,1),COLORGREEN,LINETHICK2;
FF:=( "399200$ CLOSE "-LLV("399200$ LOW ",N))/(HHV("399200$ HIGH ",N)-LLV("399200$ LOW ",N))*100;
FF1:=SMA(FF,5,1);
FF2:=SMA(FF1,3,1);
地产:SMA(FF2,3,1),COLORLIGREEN,LINETHICK1;
GG:=( "399110$ CLOSE "-LLV("399110$ LOW ",N))/(HHV("399110$ HIGH ",N)-LLV("399110$ LOW ",N))*100;
GG1:=SMA(GG,5,1);
GG2:=SMA(GG1,3,1);
农林牧渔:SMA(GG2,3,1),COLORLIGRAY,LINETHICK1;
HH:=( "399941$ CLOSE "-LLV("399941$ LOW ",N))/(HHV("399941$ HIGH ",N)-LLV("399941$ LOW ",N))*100;
HH1:=SMA(HH,5,1);
HH2:=SMA(HH1,3,1);
新能源:SMA(HH2,3,1),COLORBROWN,LINETHICK1;
II:=( "399137$ CLOSE "-LLV("399137$ LOW ",N))/(HHV("399137$ HIGH ",N)-LLV("399137$ LOW ",N))*100;
II1:=SMA(II,5,1);
II2:=SMA(II1,3,1);
有色金属:SMA(II2,3,1),COLORLIRED,LINETHICK1;
JJ:=( "399139$ CLOSE "-LLV("399139$ LOW ",N))/(HHV("399139$ HIGH ",N)-LLV("399139$ LOW ",N))*100;
JJ1:=SMA(JJ,5,1);
JJ2:=SMA(JJ1,3,1);
医药:SMA(JJ2,3,1),COLORLIMAGENTA,LINETHICK1;
通达信板块指数指标公式摘抄 3
A:=REF(HY_INDEXC,1);VAR1:=SMA(HY_INDEXA,10,1)/10000;VAR2:=REF(VAR1,1);
行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK),COLOR00C0C0;
HYDB:=DRAWKLINE(HY_INDEXH,HY_INDEXO,HY_INDEXL,HY_INDEXC);
STICKLINE(VAR1>VAR2,HY_INDEXO,HY_INDEXC,2.5,0),COLORRED;
STICKLINE(VAR1 趋势线:MA(HY_INDEXC,20),LINETHICK2,COLORMAGENTA;短线操作线:MA(HY_INDEXC,3),COLORWHITE; 板块指数:HY_INDEXC,LINETHICK0; IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORMAGENTA; IF(趋势线<=REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORCYAN; 涨家数:HY_INDEXADV,NODRAW,COLORRED;跌家数:HY_INDEXDEC,NODRAW,COLORGREEN;