财务指标公式源码通达信

合集下载

主图行业板块通达信指标公式源码

主图行业板块通达信指标公式源码

{板块市值业绩}所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));股本市值:=STRCAT('【股本市值】',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));市销率:=STRCAT(' 市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCAT(' 市净率:',CON2STR(C/FINANCE(34),2));净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));毛利率:=STRCAT(' 毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));净利润率:=STRCAT(' 净利率:',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCAT('【当前业绩】',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.005,0.07,0,股本市值),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,当前业绩),COLORMAGENTA;DRAWTEXT_FIX(1,0.005,0.17,0,'莸利比例:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.06,0.17,0,CONST(WINNER(C )*100)),COLORYELLOW; DRAWNUMBER_FIX(1,0.15,0.17,0,CONST(DYNAINFO(37)*100)),COLORYELLOW; DRAWTEXT_FIX (1,0.12,0.17,0,'换手:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.25,0.17,0,CONST(DYNAINFO(17))),COLORYELLOW; DRAWTEXT_FIX (1,0.22,0.17,0,'量比:'),COLORYELLOW;DRAWTEXT_FIX (1,0.30,0.17,0,'涨幅:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.33,0.17,0,CONST(DYNAINFO(14)*100)),COLORYELLOW; DRAWNUMBER_FIX(1,0.33,0.17,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO( 14)*100),DRAWNULL)),COLORYELLOW;{}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比)); DRAWTEXT_FIX(ISLASTBAR,0.005,0.23,0,财务系数),COLORGREEN;。

通达信指标公式源码 阳包阴副图选股指标

通达信指标公式源码 阳包阴副图选股指标

A1:=(REF(C,2)-REF(C,1))/REF(C,2)*100>3;A2:= REF(C,0) > REF(O,1) ;A3:= REF(C,0) > REF(C,1) ;A4:= REF(H,0) > REF(H,1) ;A5:= (C-REF(C,1))/REF(C,1)*100>3;阳包阴1:= A1 AND A2 AND A3 AND A4 AND A5;B1:=(REF(C,2)-REF(C,1))/REF(C,2)*100>4;B2:= REF(C,0) > REF(O,1) ;B3:= REF(C,0) > REF(C,1) ;B4:= REF(H,0) > REF(H,1) ;B5:= (C-REF(C,1))/REF(C,1)*100>5;B6:=V-REF(V,1)<0;B7:=REF(V,2)-REF(V,1)>0;B8:=(H-L)/REF(C,1)*100>5;缩量阳包阴2:= B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8; C1:=(REF(C,2)-REF(C,1))/REF(C,2)*100>3;{好}C2:= REF(O,0)<REF(L,1);C3:= REF(C,0) > REF(O,1) ;C4:= REF(C,0) > REF(C,1) ;C5:= REF(H,0) > REF(H,1) ;下跳空阳包阴3:= C1 AND C2 AND C3 AND C4 AND C5;D1:=(REF(C,3)-REF(C,2))/REF(C,3)*100>5;D2:= REF(C,1) >= REF(O,1) AND REF(C,1)< REF(O,2);D3:= REF(C,0) > REF(O,0) AND REF(C,0)>REF(C,3);两阳接力包大阴4:(D1 AND D2 AND D3)*100;E1:= REF(C,2) < REF(O,2) AND REF(C,1) <= REF(O,1);E2:=(REF(C,3)-REF(C,1))/ REF(C,3)*100>5;E3:= REF(C,0) > REF(O,0) AND REF(C,0)>REF(C,3);E4:= REF(C,3) > REF(O,3);大阳包二阴5:( E1 AND E2 AND E3 AND E4)*100;阳包阴:(阳包阴1 OR 缩量阳包阴2 OR 下跳空阳包阴3 OR 两阳接力包大阴4 OR 大阳包二阴5)*100,COLOR00FF00,LINETHICK2;DRAWTEXT(阳包阴,80,'★买'),COLOR00FF00;DRAWTEXT(阳包阴,10,'阳包阴'),COLOR00FF00;。

通达信指标公式源码大全

通达信指标公式源码大全

通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。

LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。

Color=FF00FF。

LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。

LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。

LineThickness=1;VAR3:=LLV(High,240);VAR4:=100*(Close-VAR3)/VAR3;VAR5:=(Close-LLV(Low,528))/(HHV(High,528)-LLV(Low,528))*100;VAR6:=(Close-LLV(Close,530))/(HHV(Close,530)-LLV(Close,530))*100;VAR7:=0;VAR8:=SMA(Max(Close-REF(Close,1),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。

专业指标公式源码(通达信版)

专业指标公式源码(通达信版)

专业指标公式源码(通达信版)1. 移动平均线简介移动平均线是一种常用的技术分析指标,用于平滑价格数据以帮助判断趋势的变化。

在通达信软件中,可以使用以下公式计算不同类型的移动平均线。

算法简单移动平均线 (SMA)SMA(C, N) = SUM(C, N) / N指数加权移动平均线 (EMA)EMA(C, N) = EMA(C, N-1) * (N-1)/(N+1) + C * 2/(N+1)加权移动平均线 (WMA)WMA(C, N) = SUM((N-i+1) * C[i], N) / (N * (N+1) / 2)其中,C代表收盘价,N代表移动平均线的周期。

2. 相对强弱指标 (RSI)简介相对强弱指标是一种广泛应用的技术分析指标,用于衡量价格的变动强度。

在通达信软件中,可以使用以下公式计算相对强弱指标。

算法RSI(C, N) = 100 - 100 / (1 + RS)RS = SUM(MAX(C[i] - C[i-1], 0), N) / SUM(ABS(C[i] - C[i-1]), N)其中,C代表收盘价,N代表计算相对强弱指标的周期。

3. 随机指标 (KDJ)简介随机指标是一种用于判断股价超买超卖程度的技术分析指标。

在通达信软件中,可以使用以下公式计算随机指标。

算法RSV = (C - LLV(C, N)) / (HHV(C, N) - LLV(C, N)) * 100K = EMA(RSV, M1)D = EMA(K, M2)J = 3 * K - 2 * D其中,C代表收盘价,N代表计算最高价最低价的周期,M1代表计算K值的周期,M2代表计算D值的周期。

4. 布林带 (BOLL)简介布林带是一种用于判断价格波动幅度和趋势变化的技术分析指标。

在通达信软件中,可以使用以下公式计算布林带。

算法MB = MA(C, N)UP = MB + K * STD(C, N)DN = MB - K * STD(C, N)其中,C代表收盘价,N代表计算移动平均线的周期,K代表标准偏差的倍数。

通达信指标公式源码价值百万的主图操盘指标

通达信指标公式源码价值百万的主图操盘指标

通达信指标公式源码价值百万的主图操盘指标趋势:EMA(EMA(C,4),4),COLORYELLOW;月K:='KDJ.K#MONTH';月D:='KDJ.D#MONTH';周K:='KDJ.K#WEEK';周D:='KDJ.D#WEEK';日K:='KD.K';日D:='KD.D';日金叉:=IF(CROSS(日K,日D),15,0);周金叉:=IF(CROSS(周K,周D),25,0);月金叉:=IF(CROSS(月K,月D),35,0);日周月:=IF(日金叉=15 AND 周金叉=25 AND 月金叉=35,1,0);日周月赚:=日周月=1;日周:=IF(日金叉=15 AND 周金叉=25,2,0);日周赚:=日周=2;周月:=IF(周金叉=25 AND 月金叉=35,3,0);日月:=IF(日金叉=15 AND 月金叉=35,4,0);日月赚:=日月=4;周月赚:=周月=3;DRAWTEXT(日周月赚,趋势*0.96,'LSP大牛'),COLORRED;DRAWTEXT(周月赚,趋势*0.97,'LSP金牛'),COLORFF00FF;DRAWTEXT(日月赚,趋势*0.98,'LSP牛牛'),COLORYELLOW;DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;启动:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;DRAWTEXT(启动,L*0.97,'金牛启动'),COLORYELLOW,LINETHICK2;AA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;BB:=EMA(AA,2);TP:=(CROSS(AA,BB) OR CROSS(C,AA)) AND C>=EMA(C,55);CC:=EMA(CLOSE,12)-EMA(CLOSE,26);DD:=EMA(CC,9);主升启动:=TP AND CROSS(CC,DD) AND (DD<=-0.07)*CC;DRAWICON(主升启动,L*0.996,1);DRAWTEXT(主升启动,L,'LSP牛');VAR1:=(C+H+O+L)/4;MA1:=MA(VAR1,3);MAA5:MA(C,5),COLORRED,LINETHICK1;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);BB1:=0;B1万元:=DVOL*DCLOSE/100;B1差:=B1万元-REF(B1万元,1);B2万元:=DVOL*DCLOSE/100;B2比:=B2万元/REF(B2万元,1);净流入万元:=(AAA2-AAA3-0.5*AAA4);PM:=MA(净流入万元,1);PMA:=PM/REF(PM,1)>1;PMB:=REF(PMA,1)<1 AND PMA;密码:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW;二日比:=密码/REF(密码,1);Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,STRCAT(Z3,GNBLOCK )),COLORYELLOW;① 指标源码导入即可使用,但由于文章篇幅限制,股票和公式并未分享完整,如果对于指标有兴趣和疑问,亦或者若不能成功导入请与我沟通!②创作收集不易,恳请大家阅读之后,对于我的文章能关注和转发,帮忙加加人气,万分谢谢!。

主力资金流量(通达信指标公式源码)

主力资金流量(通达信指标公式源码)

主力资金流量(通达信指标公式源码)AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;进出量:=买量+卖量,COLOR00FFFF;STICKLINE(进出量<0,0,进出量,1,0),COLORFF6600;STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900;STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00;STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN;STICKLINE(进出量>0,0,进出量,3,0),COLOR000099;STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;STICKLINE(进出量>0,0,进出量,1.0,0),COLOR0000FF;STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;N:=1;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0);QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MACD.DIF">"MACD.DEA" AND "MACD.DEA"<0;QJ7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30;QJ8:="MACD.DIF"<"MACD.DEA";QJ9:="KDJ.K"<"KDJ.D" AND "KDJ.K">80;特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单 AND 大单>小单;量振2:=特大<小单 AND 大单<小单;标振1:=QJ6 AND QJ7;标振2:=QJ8 AND QJ9;A:=W1-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,1,0),COLOR000044;主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF0 0FF;主力筹码集中度:WINNER(C)*100,COLORRED;。

通达信 指标公式源码大全

通达信 指标公式源码大全

【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1.05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2 .382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED; XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3 )+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKL INE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;S TICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR000 0F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR 454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),CO LOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0) ,COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+ INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(M ONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=B ARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+ T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3 )+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE, T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,0.1,0),COLORFFCCAA; STICKLINE(平衡线<启动线,启动线,平衡线,0.1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0.35,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF; VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2.5,1.5),LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。

通达信公式指标源码止盈主图指标公式.docx

通达信公式指标源码止盈主图指标公式.docx

通达信止盈主图指标公式VARl:=(HIGH+L0W+0PEN+CL0SE)/4;黄金线:=EMA(3*VAR1-2*SMA(VAR1,2,1),13)Z COLORYELLOW Z LINETHICK2; CJ:=(3*C+L+O+H)/6;多空线:=(20*CJ+19*REF(CJ,l)+18*REF(CJ,2)+17*REF(CJ,3)+16*REF(CJ,4)+15* REF(CJ,5)+14*REF(CJ/6)+13*REF(CJ,7)+12*REF(CJ,8)+ll*REF(CJ,9)+10* REF(CJ」0)+9*REF(CJ,ll)+8*REF(CJ」2)+7*REF(CJ,13)+6*REF(CJ,14)+5* REF(CJ,15)+4*REF(CJ/16)+3*REF(CJ」7)+2*REF(CJ,18)+REF(CJ/20))/210, COLORFFOOFF 丄INETHICK2;亚当:=((HIGH + LOW + CLOSE)/3-MA((HIGH + LOW + CLOSE)/3,14))*100/ (1・5*AVEDEV((HIGH + LOW + CLOSE)/3,14));N: = l,100,12;夏娃: = EMA(亚当,N); X2:=亚当;X3:=夏娃;STICKLINE(X2>=X3z LOW,HIGH z O,0),COLORRED;STICKLINE(X2>=X3,CLOSE,OPEN z3z O)z COLOROOOOAA;STICKLINE(X2>=X3Z CLOSE,OPEN Z2,0)Z COLOROOOOCC;STICKLINE(X2>=X3,CLOSE,OPEN Z1,0)Z COLOROOOODD;STICKLINE(X2>=X3,CLOSE,OPEN,0.3,0),COLOROOOOFF;STICKLINE(X2<X3,CLOSE,OPEN,0.3,0),COLORFFFFOO;STICKLINE(X2<X3,CLOSE Z OPEN Z1,0),COLORDDDDOO;STICKLINE(X2<X3,CLOSE,OPEN Z2,0),COLORAAAAOO;STICKLINE(X2<X3z CLOSE z OPEN z3z O),COLOR888800;STICKLINE(X2<X3,LOW z HIGH,O z O),COLORFFFFOO;STICKLINE(X2vX3 ANDC〉=黄金线AND 黄金线> =多空线z OPEN z CLOSE z3z O),COLORFFOOFF;STICKLINE(X2<X3 AND C> =多空线AND Cv黄金线Z OPEN,CLOSER,0),COLORBLUE;Xl:=(C+L+H)/3;BB13:=ATAN(EMA(X1Z13)-REF(EMA(X1Z13)Z1))*3.1416*1O;EMA8:=EMA(C Z8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10), EMA8/Z45 fl-1),COLORWHITE;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KBl:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34)Z KB2Z KB2-0.8*BO,1,0),COLORYELL OW 丄INETHICK3;DRAWTEXT((El+0)/34=FLOOR((El+0)/34),KB2-B0/,时窗'),COLORYELLOW; VAR81: = 1;VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20,COLORYELLOW,LINETHICK2;高死叉岀:=90,COLORGREEN 丄INETHICK3;VAR84:=LLV(LOW Z5);VAR85:=HHV(HIGH,4);C1:=(EMA((((VAR82-VAR84)/(VAR85・VAR84))*100),4)*VAR81),COLORFF00FF ,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINET HICK2;条件:=CROSS(C1,C2) AND Cl<40;条件0:=CROSS(C2,C1) AND Cl>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1Z C2) AND REF(Cl,l)<20;TJ4:=CROSS(C2,C1) AND REF(Cl」)>80;DRAWTEXT(条件0Z H*1.02;S,)Z COLORBLUE;{DRAWTEXT(CROSS(C1Z75)Z H*1.013/,险区'),COLORGREEN;} DRAWTEXT(TJ3/L*0.98;买jCOLORFFOOFF;均线:=MA(C,13)Z COLOROOFFFF;X8:=,,MACD.MACD n;X:=HHV(REF(X8,l),BARSLAST(X8>0)+l);A8:=(X8/REF(X8z l)-l)*100;Al: = BARSLAST(CROSS(0,A8))+1;DRAWTEXT(X8>0.618 AND CROSS(X,X8),H*1.035;止赢COLORBLUE; STICKLINE(X8>0.618 AND CROSS(X,X8)Z H*1.02,H*1.021,20,1),COLORBLUE; DRAWTEXT(REF(C z BARSLAST(REF(CROSS(,,MACD.DIF n,,,MACD.DEA H),l))+l)> C ANDREF(,,MACD.DIF,,Z BARSLAST(REF(CROSS(,,MACD.DIF,,;,MACD.DEA,,),1))+1) <"MACD.DIF n AND CROSS(n MACD.DIF',,,,MACD.DEA n) >0,L-0.02;*M'),COLORFF00FF;{MACD 底背离}DRAWTEXT(REF(C z BARSLAST(REF(CROSS(,,KDJ.K,,z,,KDJ.D n\l))4-l)>C AND REF(“KDJ・K:BARSLAST(REF(CROSS(”KDJ・KTKDJ・D”),l))+l)v“KDJ・ie AND CROSSC,KDJ.K,,,,,KDJ.D n)丄・0・10,©K)COLORFF00FF;{KDJ 底背离} DRAWTEXT(REF(C,BARSLAST(REF(CROSS(,,RSI.RSIl n,n RSLRSI2,l)z l))+l)>CANDREFCRSI・RSI1:BARSLAST(REF(CROSS(”RSLRSI1TRSI・RSI2J1))+1) <,,RSI.RSI1" AND CROSS(“RSI・RSI1TRSI・RSI2”)>O,L-O.18,,0R,),COLORFFOOFF;{RSI 底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(,,MACD.DEA,7,MACD.DIF n)z l))+l)< C ANDREF(,,MACD.DIF,I/BARSLAST(REF(CROSS(,,MACD.DEA,,Z,,MACD.DIF,,),1))+1) >n MA CD.DIF H AND CROSS(”MACD・DEATMACD・DIF“)>0,H+0・16,*M)COLORGREEN;{MACD 顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(H KDJ.D,,;,KDJ.K,I),1))+1)<CAND REF(,,KDJ.K,,Z BARSLAST(REF(CROSS(,,KDJ.D,,Z,,KDJ.K,,)Z1))+1) >"KDJ.K n AND CROSSC,KDJ.D,7,KDJ.K,,)>0,H+0.08,,©K,)Z COLORGREEN;{KDJ 顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CR0SS(,,RSLRSI2,,,n RSLRSIl H)z l))+l)<CANDREFC,RSLRSI1,,,BARSLAST(REF(CR0SS(,,RSLRSI2,,Z,,RSI.RSI1,,)Z1))+1)>,,RSL RSI1"ANDCROSSC,RSLRSI2,I Z,,RSI.RSI1H)>0Z H+0.04/♦R,)Z COLORGREEN;{RSI 顶背离};CCC:C,COLORFFFFFF;UPPER : MA(CLOSE,14)*1.06,POINTDOT Z COLORFF99FF Z LINETHICK2;LOWER : MA(CLOSE,14)*0.94,POINTDOT,COLORFFOOFF丄INETHICK2;MID:(UPPER+LOWER)/2,NODRAW,COLOROOFFFF 丄INETHICK1;VAR91:=(2*CLOSE+HIGH+LOW+OPEN)/5;A51:(EMA(VAR91z l)+EMA(VAR91/2)+EMA(VAR91,3)+EMA(VAR91,4))/4,COLORCY AN,LINETHICK1;W51:=(EMA(VAR91,1)+EMA(VAR91,2)+EMA(VAR91,3)+EMA(VAR91,4))/4; DRAWICON(CROSS(UPPER,CCC),UPPER Z15);。

通达信指标公式源码 自动画线主图指标公式

通达信指标公式源码 自动画线主图指标公式

N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4 ),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA; DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;中枢高:=PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,COLORLIRED; 中枢低:=PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,COLORLIGRE EN;{中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;} 趋势高:=PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE;趋势低:=PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;{大折线}A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);D1:=FILTER(C1,10);{高点}A2:=REF(LOW,10)=LLV(LOW,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);D2:=FILTER(C2,10);{低点}E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT((D1 AND E1<E2)));H2:=D1 AND NOT((D2 AND E1>=E2));X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORMAGENTA,DOTLINE,LINETHICK1; DRAWLINE(HD,H,LD,L,0),COLORMAGENTA,DOTLINE,LINETHICK1;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L ),0),COLORWHITE,LINETHICK1;{趋势线}UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);DRAWLINE(XX,L,VV,L,1),COLORRED,LINETHICK2;UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);DRAWLINE(XX2,H,VV2,H,1),COLORGREEN,LINETHICK2;。

通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码

通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码

DRAWKLINE(H,O,L,C); HB:=COST(99.9);LB:=COST(0.1);B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3;B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100; A15:=WINNER(B314)*100-WINNER(B315)*100; A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;STICKLINE(ISLASTBAR,HB ,HB ,A1*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B31 ,B31 ,A1*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B32 ,B32 ,A2*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B33 ,B33 ,A3*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B34 ,B34 ,A4*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B35 ,B35 ,A5*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B36 ,B36 ,A6*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B37 ,B37 ,A7*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B38 ,B38 ,A8*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B39 ,B39 ,A9*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B310 ,B310 ,A10*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B314 ,B314 ,A14*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B315 ,B315 ,A15*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B316 ,B316 ,A16*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B317 ,B317 ,A17*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B318 ,B318 ,A18*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B319 ,B319 ,A19*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B320 ,B320 ,A20*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B321 ,B321 ,A21*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B322 ,B322 ,A22*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B323 ,B323 ,A23*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B324 ,B324 ,A24*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B325 ,B325 ,A25*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B326 ,B326 ,A26*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B327 ,B327 ,A27*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B328 ,B328 ,A28*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B329 ,B329 ,A29*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B330 ,B330 ,A30*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B331 ,B331 ,A31*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B332 ,B332 ,A32*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B333 ,B333 ,A33*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B334 ,B334 ,A34*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B335 ,B335 ,A35*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B336 ,B336 ,A36*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B337 ,B337 ,A37*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B338 ,B338 ,A38*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B339 ,B339 ,A39*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B340 ,B340 ,A40*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B341 ,B341 ,A41*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B342 ,B342 ,A42*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B343 ,B343 ,A43*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B344 ,B344 ,A44*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B345 ,B345 ,A45*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B346 ,B346 ,A46*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B347 ,B347 ,A47*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B348 ,B348 ,A48*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,LB ,LB ,A50*15 ,0 ),COLORRED;当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);ZX2:=MIN(A1,MIN(A2,MIN(A3,MIN(A4,MIN(A5,MIN(A6,MIN(A7,MIN(A8,MIN(A9,MIN(A 10,MIN(A11,MIN(A12,MIN(A13,MIN(A14,MIN(A15,MIN(A16,MIN(A17,MIN(A18,MIN(A1 9,MIN(A20,MIN(A21,MIN(A22,MIN(A23,MIN(A24,MIN(A25,MIN(A26,MIN(A27,MIN(A28, MIN(A29,MIN(A30,MIN(A31,MIN(A32,MIN(A33,MIN(A34,MIN(A35,MIN(A36,MIN(A37,M IN(A38,MIN(A39,MIN(A40,MIN(A41,MIN(A42,MIN(A43,MIN(A44,MIN(A45,MIN(A46,MI N(A47,MIN(A48,MIN(A49,A50)))))))))))))))))))))))))))))))))))))))))))))))));筹码最低处:COST(ZX2),COLORMAGENTA;DRAWTEXT(ISLASTBAR,筹码最低处,'筹码最低价'),COLORMAGENTA;ZX1:=MAX(A1*15,MAX(A2*15,MAX(A3*15,MAX(A4*15,MAX(A5*15,MAX(A6*15,MAX(A 7*15,MAX(A8*15,MAX(A9*15,MAX(A10*15,MAX(A11*15,MAX(A12*15,MAX(A13*15,M AX(A14*15,MAX(A15*15,MAX(A16*15,MAX(A17*15,MAX(A18*15,MAX(A19*15,MAX(A 20*15,MAX(A21*15,MAX(A22*15,MAX(A23*15,MAX(A24*15,MAX(A25*15,MAX(A26*15 ,MAX(A27*15,MAX(A28*15,MAX(A29*15,MAX(A30*15,MAX(A31*15,MAX(A32*15,MAX (A33*15,MAX(A34*15,MAX(A35*15,MAX(A36*15,MAX(A37*15,MAX(A38*15,MAX(A39* 15,MAX(A40*15,MAX(A41*15,MAX(A42*15,MAX(A43*15,MAX(A44*15,MAX(A45*15,M AX(A46*15,MAX(A47*15,MAX(A48*15,MAX(A49*15,A50*15)))))))))))))))))))))))))))))))))))) )))))))))))));筹码最集中处:COST(ZX1/15),COLORRED,LINETHICK2;入1:IF(筹码最集中处>REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORRED,LINETHICK2;出1:IF(筹码最集中处<REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,筹码最集中处,'筹码集中价'),COLORWHITE;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORMAGENTA;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),1.5,0),COLORGREEN;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORGREEN;筹码幅图公式穿越筹码:ABS(WINNER(CLOSE)-WINNER(OPEN))*100,STICK,COLORDDDDFF;换手率::VOL/CAPITAL*100,STICK,COLORFF0099;地量换手:1/换手率:*100,STICK,COLORRED,LINETHICK3;A1:=LLV(HIGH,240);MYP:=100*(CLOSE-A1)/A1;A2:=REF(HHV(CLOSE,240),1);B2:=REF(LLV(CLOSE,240),1);RPY:=100*(CLOSE -B2)/(A2-B2);A3:=1.1*CLOSE;B3:=0.9*CLOSE;ASR:=100*(WINNER(A3)-WINNER(B3));A4:=WINNER(CLOSE);A5:=DMA(A4,VOL/CAPITAL);B4:=DMA(VOL,VOL/CAPITAL)/CAPITAL;A6:=100*VOL/CAPITAL;B6:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));A7:=ABS(B6/A6);CYA:A4/B4*50,COLOR00FF00;CYB:EMA(A4/B4*50,34),COLORFF00FF;CYC::A5/B4*50,COLORFFFF99;CYD:WINNER(CLOSE)/(VOL/CAPITAL),COLORYELLOW,STICK,LINETHICK4; STICKLINE(A7>30 AND (VOL/CAPITAL*100)<=3,地量换手,0,3,0),COLORWHITE; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C>=O,地量换手,0,10,0),COLORFF00FF; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C< O,地量换手,0,10,0),COLORFFFF33;筹码穿透率:=B6/A6;STICKLINE(筹码穿透率>10 AND CLOSE/REF(CLOSE,1)>=1.05 AND换手率:<=3,地量换手,0,10,0),COLORBLUE;。

通达信主图显示财务指标公式

通达信主图显示财务指标公式

通达信主图显示财务指标公式总股本:=STRCAT(STRCAT('总股本:',CON2STR(TOTALCAPITAL/1000000,3)),'亿股');流通盘:=STRCAT(STRCAT('流通盘:',CON2STR(CAPITAL/1000000,3)),'亿股');每股收益:=STRCAT(STRCAT('每股收益:',CON2STR(FINANCE(29)/FINANCE(1),2)),'元');每股未分配:=STRCAT(STRCAT('每股未分配: ',CON2STR(FINANCE(32),2)),'元');每股公积金:=STRCAT(STRCAT('每股公积金: ',CON2STR(FINANCE(18),2)),'元');每股净资产:=STRCAT(STRCAT('每股净资产: ',CON2STR(FINANCE(34),2)),'元');总市值:=STRCAT(STRCAT('总市值:',CON2STR(FINANCE(1)*C/100000000,3)),'亿元');市值:=STRCAT(STRCAT('流通值:',CON2STR((CAPITAL/1000000)*C,3)),'亿元');SHI:INTPART(DATE+19000000),NODRAW;上市日期:=STRCAT(' 上市日:',CON2STR(SHI,0));收入同比增长:=STRCAT(STRCAT('收入同比增长: ',CON2STR(FINANCE(44),2)),'%');市盈率:=STRCAT('市盈率:',CON2STR(DYNAINFO(39),2));主营毛利润率:=STRCAT(STRCAT('主营毛利润率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');主营净利润率:=STRCAT(STRCAT('主营净利润率: ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%');主营利润率:=STRCAT(' 主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));净利同比增长:=STRCAT(STRCAT('净利同比增长:',CON2STR(FINANCE(43),2)),'%');{DRAWTEXT_FIX(ISLASTBAR,0.002,0,0,'上市日期:'),COLORMAGENTA;DRAWNUMBER_FIX(ISLASTBAR,0.1,0,0,SHI),COLORMA GENTA;}DRAWTEXT_FIX(ISLASTBAR,0.002,0.20,0,总股本),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.20,0,收入同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.20,0,每股收益),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,流通盘),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.25,0,主营毛利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.25,0,每股净资产),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.30,0,总市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.30,0,主营净利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.30,0,每股未分配),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.35,0,市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.35,0,净利同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.35,0,每股公积金),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.40,0,市盈率),COLORCYAN;HSL:=100*VOL/(FINANCE(7)/100);换手:=STRCAT(STRCAT('换手:',CON2STR(HSL,2)),'%');DRAWTEXT_FIX(ISLASTBAR,0.127,0.40,0,换手),COLORMAGENTA;CJ:=DYNAINFO(10)/100000000;成交:=STRCAT(STRCAT('成交:',CON2STR(CJ,2)),'亿');DRAWTEXT_FIX(ISLASTBAR,0.257,0.40,0,成交),COLORMAGENTA;。

通达信财务副图指标公式源码

通达信财务副图指标公式源码

DRAWRECTREL(0,0,990,990,RGB(20,18,12));DRAWTEXT_FIX(1,0.14,0.01,1,'股东股份:'),COLORRED;品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));DRAWTEXT_FIX(1,0.14,0.15,1,'品种类型:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.25,1,'所属板块:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.35,1,'上市天数:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.45,1,'股总市值:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.55,1,'流通市值:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.65,1,'股东人数:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.75,1,'人均持股:'),COLORYELLOW; DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN; DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORWHITE; DRAWNUMBER_FIX(1,0.19,0.45,1,股总市值),COLORWHITE; DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORWHITE; DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORWHITE; DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORWHITE; DRAWTEXT_FIX(品种类型=1,0.23,0.15,1,'沪深A 股'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=2,0.23,0.15,1,' 中小板'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=3,0.23,0.15,1,' 创业板'),COLORMAGENTA; DRAWTEXT_FIX(1,0.23,0.35,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.45,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.55,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.65,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.75,1,'股'),COLORCYAN;DRAWTEXT_FIX(1,0.326,0.01,1,'业绩指标:'),COLORRED;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);DRAWTEXT_FIX(1,0.34,0.15,1,'净资收益率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.25,1,'销售毛利率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.35,1,'净利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.45,1,'主营利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.55,1,'优质资产率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.65,1,'现金负债比:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.75,1,'净利同增率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORWHITE;DRAWTEXT_FIX(1,0.498,0.01,1,'财务指标:'),COLORRED;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));每股收益年:=CONST(FINANCE(33));每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));DRAWTEXT_FIX(1,0.51,0.15,1,'市净率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.25,1,'市销率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.35,1,'每股收益季:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.45,1,'每股收益年:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.55,1,'每股现金流:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.65,1,'每股未分配:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.75,1,'每股公积金:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益年),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORWHITE;{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;DRAWTEXT_FIX(1,0.85,0.01,1,'财务预警:'),COLORRED;DRAWTEXT_FIX(Z值<1.2,0.838,0.11,1,' ●重警●'),COLORLIRED;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.838,0.11,1,' ○轻警○'),COLOR0099FF; DRAWTEXT_FIX(Z值>2.6,0.838,0.11,1,' ◎无警◎'),COLORLIGREEN;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORYELLOW;DRAWRECTREL(970,340,580,270,RGB(150,10,250));DRAWRECTREL(970,470,580,540,RGB(150,10,250));DRAWRECTREL(970,670,580,740,RGB(150,10,250));DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); DRAWTEXT_FIX(1,0.96,0.01,1,'大盘趋势:'),COLORRED;DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨∨∨∨'),COLORGREEN; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN;。

通达信主图显示财务指标公式.doc

通达信主图显示财务指标公式.doc

通达信主图显示财务指标公式总股本 :=STRCAT(STRCAT(' 总股本 :',CON2STR(TOTALCAPITAL/1000000,3)),' 亿股 ');流通盘 :=STRCAT(STRCAT(' 流通盘 :',CON2STR(CAPITAL/1000000,3)),'亿股');每股收益 :=STRCAT(STRCAT(' 每股收益 :',CON2STR(FINANCE(29)/FINANCE(1),2)),' 元 ');每股未分配 :=STRCAT(STRCAT(' 每股未分配 : ',CON2STR(FINANCE(32),2)),'元');每股公积金 :=STRCAT(STRCAT(' 每股公积金 : ',CON2STR(FINANCE(18),2)),'元');每股净资产 :=STRCAT(STRCAT(' 每股净资产 : ',CON2STR(FINANCE(34),2)),'元');总市值 :=STRCAT(STRCAT(' 总市值 :',CON2STR(FINANCE(1)*C/100000000,3)),' 亿元 ');市值 :=STRCAT(STRCAT(' 流通值 :',CON2STR((CAPITAL/1000000)*C,3)),' 亿元 ');SHI:INTPART(DATE+19000000),NODRAW;上市日期 :=STRCAT('上市日:',CON2STR(SHI,0));收入同比增长 :=STRCAT(STRCAT(' 收入同比增长 : ',CON2STR(FINANCE(44),2)),'%');市盈率 :=STRCAT(' 市盈率 :',CON2STR(DYNAINFO(39),2));主营毛利润率 :=STRCAT(STRCAT(' 主营毛利润率 : ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');主营净利润率 :=STRCAT(STRCAT(' 主营净利润率 : ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%');主营利润率 :=STRCAT('主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));净利同比增长 :=STRCAT(STRCAT(' 净利同比增长 :',CON2STR(FINANCE(43),2)),'%');{DRAWTEXT_FIX(ISLASTBAR,0.002,0,0,'上市日期:'),COLORMAGENTA;DRAWNUMBER_FIX(ISLASTBAR,0.1,0,0,SHI),COLORMA GENTA;}DRAWTEXT_FIX(ISLASTBAR,0.002,0.20,0,总股本),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.20,0,收入同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.20,0,每股收益),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,流通盘),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.25,0,主营毛利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.25,0,每股净资产),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.30,0,总市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.30,0,主营净利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.30,0,每股未分配),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.35,0,市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.35,0,净利同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.35,0,每股公积金),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.40,0,市盈率),COLORCYAN;HSL:=100*VOL/(FINANCE(7)/100);换手 :=STRCAT(STRCAT(' 换手 :',CON2STR(HSL,2)),'%');DRAWTEXT_FIX(ISLASTBAR,0.127,0.40,0,换手),COLORMAGENTA;CJ:=DYNAINFO(10)/100000000;成交 :=STRCAT(STRCAT(' 成交 :',CON2STR(CJ,2)),' 亿 ');DRAWTEXT_FIX(ISLASTBAR,0.257,0.40,0,成交),COLORMAGENTA;。

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标1 超级指标指标公式:买卖提示非常明显(适合通达信)指标源码如下:M:3 100 60N 3 100 30散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,2,5),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注: STICKLINE(走势-AA6<-65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,4);卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,5);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);2 精准买卖支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3);VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 ORCLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW;STICKLINE(VAR2D>0,O,C,10,0), COLORRED;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)ANDCROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)ANDVAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,15);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) ANDMACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);3 绝世指标GLL:-4;顶:80,COLORFFA500;大顶:100,COLORBLUE;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:SMA(VAR2,5,1),COLORRED;RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:SMA(FATK,3,1),COLORBB24DB;VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);加速: EMA(3*VARB-2*VARC,3),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 AND VAR22,STICK,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;卖出:=CROSS(80,VAR4),STICK,LINETHICK2,COLORGREEN;{波段介入点}A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0)COLORWHITE;。

通达信指标公式源码 短线无敌指标(源码)

通达信指标公式源码 短线无敌指标(源码)

JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(Y TSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*R EF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YT SL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933; STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;DRAWTEXT(短买,REF(CLOSE,1),'←短买'),COLOR33FFCC;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF;。

通达信副图指标公式源码大全

通达信副图指标公式源码大全

通达信副图指标公式源码大全
一、MA(X,N)
MA:(MA(C,X);N)
MA:MA.CALC(C,X)
公式描述:
MA(X,N)表示计算最近X天的移动平均线,其中N为移动平均线的天数。

二、MACD
MACD:(EMA(C,SHORT);EMA(C,LONG);SIGNAL)
MACD:MACD.CALC(C,SHORT,LONG,SIGNAL)
公式描述:
MACD表示计算MACD指标,其中SHORT代表快速移动平均线的天数,LONG代表慢速移动平均线的天数,SIGNAL代表信号线的天数。

三、KD
KD:(K;D)
KD:KD.CALC(K,D)
公式描述:
KD表示计算KD指标,其中K、D分别代表K值和D值,取值范围为9
到100。

四、BOLL
BOLL:(MID;UP;DOWN)
BOLL:BOLL.CALC(MID,UP,DOWN)
公式描述:
BOLL表示计算布林线指标,其中MID代表中轨线,UP代表上轨线,DOWN代表下轨线。

五、RSI
RSI:(RSI1;RSI2;RSI3;RSI4)
RSI:RSI.CALC(RSI1,RSI2,RSI3,RSI4)
公式描述:
RSI表示计算RSI指标,其中RSI1、RSI2、RSI3、RSI4分别代表RSI 指标的1、2、3、4参数。

通达信财务指标公式

通达信财务指标公式
行权比例(权证)
FINANCE(61)
行权价(权证)
FINANCE(62)
杠杆比例(权证)
FINANCE(63)内在价值(权证)
FINANCE(64)溢价率(权证)
finan?ce1总股本股finan?ce2市场类型finan?ce3深沪品种类?型finan?ce5finan?ce7流通股本股finan?ce8股东人数finan?ce9资产负债率?finan?ce10总资产finan?ce11流动资产finan?ce12固定资产finan?ce13无形资产finan?ce15流动负债finan?ce16少数股东权?益finan?ce17资本公积金?finan?ce18每股公积金?finan?ce19股东权益净资产finan?ce20营业收入finan?ce21营业成本finan?ce22应收帐款finan?ce23营业利润finan?ce24投资收益finan?ce25经营现金流?量finan?ce26总现金流量?finan?ce27存货finan?ce28利润总额finan?ce29税后利润finan?ce30净利润finan?ce31未分配利润?finan?ce32每股未分配?利润finan?ce33每股收益全年折算finan?ce34每股净资产?finan?ce35季报中调整?后的每股净?资产finan?ce36股东权益比?finan?ce37第几季度报?告finan?ce38每股收益最近一期季?报finan?ce40流通市值finan?ce41总市值finan?ce42上市的天数?finan?ce43净利润同比?增长率finan?ce44主营收入同?比增长率finan?ce50是否属于沪?深300finan?ce51是否含可转?债finan?ce52是否为融资?融券标的finan?ce60行权比例权证finan?ce61行权价权证finan?ce62杠杆比例权证finan?ce63内在价值权证finan?ce64溢价率权证

通达信指标公式源码 决策资金 【超赢资金 大宗资金 特大资金】

通达信指标公式源码 决策资金 【超赢资金 大宗资金 特大资金】

一、超赢资金代码净额:(LARGEINTRDVOL-LARGEOUTTRDVOL)*DYNAINFO(11)/100,NODRAW; 超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;决策资金:(超B+大B+中B+小B)+(超S+大S+中S+小S),NODRAW;五净:SUM(净额,5),NODRAW;连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;十红:COUNT(净额>0,10),NODRAW;STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF; STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF; STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800; STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900; STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00; STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00; STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00; STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;二、决策资金(大宗资金)代码超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净额:(超B+大B)+(超S+大S),NODRAW;五净:SUM(净额,5),NODRAW;连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW; 十红:COUNT(净额>0,10),NODRAW;STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF; STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF; STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF; STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF; STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF; STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF; STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800; STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900; STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00; STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00; STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00; STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;三、特大资金{决策之特大}超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净额:超B+超S,NODRAW;五净:SUM(净额,5),NODRAW;连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW; 十红:COUNT(净额>0,10),NODRAW;STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF; STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF; STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF; STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF; STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF; STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF; STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800; STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900; STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00; STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00; STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00; STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;四、决策资金之大资金超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净额:大B+大S,NODRAW;五净:SUM(净额,5),NODRAW;连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW; 十红:COUNT(净额>0,10),NODRAW;STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF; STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF; STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF; STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF; STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF; STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF; STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800; STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900; STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00; STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00; STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00; STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;五、决策资金之中单资金超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净额:中B+中S,NODRAW;五净:SUM(净额,5),NODRAW;连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW; 十红:COUNT(净额>0,10),NODRAW;STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF; STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF; STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF; STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF; STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF; STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF; STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800; STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900; STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00; STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00; STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00; STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;六、决策资金之小单资金超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净额:小B+小S,NODRAW;五净:SUM(净额,5),NODRAW;连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW; 十红:COUNT(净额>0,10),NODRAW;STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF; STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF; STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF; STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF; STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF; STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF; STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800; STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900; STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00; STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00; STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;。

通达信主图显示财务指标公式.doc

通达信主图显示财务指标公式.doc

通达信主图显示财务指标公式总股本 :=STRCAT(STRCAT(' 总股本 :',CON2STR(TOTALCAPITAL/1000000,3)),' 亿股 ');流通盘 :=STRCAT(STRCAT(' 流通盘 :',CON2STR(CAPITAL/1000000,3)),'亿股');每股收益 :=STRCAT(STRCAT(' 每股收益 :',CON2STR(FINANCE(29)/FINANCE(1),2)),' 元 ');每股未分配 :=STRCAT(STRCAT(' 每股未分配 : ',CON2STR(FINANCE(32),2)),'元');每股公积金 :=STRCAT(STRCAT(' 每股公积金 : ',CON2STR(FINANCE(18),2)),'元');每股净资产 :=STRCAT(STRCAT(' 每股净资产 : ',CON2STR(FINANCE(34),2)),'元');总市值 :=STRCAT(STRCAT(' 总市值 :',CON2STR(FINANCE(1)*C/100000000,3)),' 亿元 ');市值 :=STRCAT(STRCAT(' 流通值 :',CON2STR((CAPITAL/1000000)*C,3)),' 亿元 ');SHI:INTPART(DATE+19000000),NODRAW;上市日期 :=STRCAT('上市日:',CON2STR(SHI,0));收入同比增长 :=STRCAT(STRCAT(' 收入同比增长 : ',CON2STR(FINANCE(44),2)),'%');市盈率 :=STRCAT(' 市盈率 :',CON2STR(DYNAINFO(39),2));主营毛利润率 :=STRCAT(STRCAT(' 主营毛利润率 : ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');主营净利润率 :=STRCAT(STRCAT(' 主营净利润率 : ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%');主营利润率 :=STRCAT('主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));净利同比增长 :=STRCAT(STRCAT(' 净利同比增长 :',CON2STR(FINANCE(43),2)),'%');{DRAWTEXT_FIX(ISLASTBAR,0.002,0,0,'上市日期:'),COLORMAGENTA;DRAWNUMBER_FIX(ISLASTBAR,0.1,0,0,SHI),COLORMA GENTA;}DRAWTEXT_FIX(ISLASTBAR,0.002,0.20,0,总股本),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.20,0,收入同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.20,0,每股收益),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,流通盘),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.25,0,主营毛利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.25,0,每股净资产),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.30,0,总市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.30,0,主营净利润率),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.30,0,每股未分配),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.35,0,市值),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.127,0.35,0,净利同比增长),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.257,0.35,0,每股公积金),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.002,0.40,0,市盈率),COLORCYAN;HSL:=100*VOL/(FINANCE(7)/100);换手 :=STRCAT(STRCAT(' 换手 :',CON2STR(HSL,2)),'%');DRAWTEXT_FIX(ISLASTBAR,0.127,0.40,0,换手),COLORMAGENTA;CJ:=DYNAINFO(10)/100000000;成交 :=STRCAT(STRCAT(' 成交 :',CON2STR(CJ,2)),' 亿 ');DRAWTEXT_FIX(ISLASTBAR,0.257,0.40,0,成交),COLORMAGENTA;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

财务指标公式源码通达信
{财务指标公式源码}
年净资产收益
率:FINANCE(30)/FINANCE(19)*100*(4/FINANCE(37)),COL ORWHITE;
报酬率:FINANCE(34)/FINANCE(33)*100,NODRAW;
净资产收益
率:FINANCE(30)/FINANCE(19)*100,COLORYELLOW;
主营业务利润
率:FINANCE(21)/FINANCE(20)*100,NODRAW,COLORRED ;
总资产周转
率:FINANCE(20)/FINANCE(10)*100,NODRAW,COLORGRE EN;
{财务杠杆比率包含产权比率、资产负债率、长期负债对长期资本比率}
产权比
率:(FINANCE(10)-FINANCE(19))/FINANCE(19)*100,NODR AW,COLORLIBLUE;
每股经营现金流
1:FINANCE(25)/FINANCE(1),NODRAW,COLORWHITE;
营业利润
率:=(FINANCE(23)/FINANCE(20))*100,COLORYELLOW;
营业净利
率:=FINANCE(30)/FINANCE(20)*100,COLORRED;
销售毛利
率:=(1-(FINANCE(21)/FINANCE(20)))*100,COLORGREEN; 利润同增比:=FINANCE(43),COLORLIBLUE;
主营同增比:=FINANCE(44);
营业成本:=FINANCE(21)/10000,COLORWHITE;
税后利润:=FINANCE(29)/10000,COLORYELLOW;
主营收入:FINANCE(20)/10000,COLORRED;
营业利润:FINANCE(23)/10000,COLORGREEN;
净利润:FINANCE(30),COLORLIBLUE;
毛利润率:FINANCE(21)/FINANCE(N)*100,COLORWHITE; 股东权益:FINANCE(19),NODRAW,COLORGREEN;
每股未分配利润:=FINANCE(32),NODRAW,COLORLIBLUE;
主营收入占
比:FINANCE(20)/(FINANCE(20)+FINANCE(22)+FINANCE( 24)+FINANCE(25))*100,NODRAW;
每股经营现金流:FINANCE(25)/FINANCE(1),NODRAW;
现金流利润比:FINANCE(25)/FINANCE(29),NODRAW;
每股总现金流:FINANCE(26)/FINANCE(1),NODRAW;
股价现金流比:FINANCE(1)*C/FINANCE(25);
每股净资产:FINANCE(34);
市净率:C/FINANCE(34),NODRAW,COLORYELLOW;
动市盈率:CLOSE/FINANCE(33),NODRAW,COLORRED;
每股收益:FINANCE(38) ,NODRAW;
季收益1:=FINANCE(33)*FINANCE(37)/4;
上涨速率:(C-REF(C,2))/REF(C,2)*100;
N1:=BARSLAST(CROSS(C,MA(C,60)));
N2:=BARSLAST(CROSS(MA(C,60),C));通达信公式函数经常会调整变动,而在网上能找到的关联财务函数基本上是旧版本,既是如下:
FINANCE(1)总股本(万股)
FINANCE(2)国家股(万股)FINANCE(3)发起人法人股(万股)FINANCE(4)法人股(万股)FINANCE(5)B股(万股)FINANCE(6)H股(万股)FINANCE(7)流通股本(万股)FINANCE(8) 职工股(万股)
FINANCE(10) 总资产
FINANCE(11) 流动资产
FINANCE(12) 固定资产
FINANCE(13) 无形资产
FINANCE(14) 长期投资FINANCE(15) 流动负债FINANCE(16) 长期负债FINANCE(17) 资本公积金FINANCE(18) 每股公积金FINANCE(19) 股东权益FINANCE(20) 主营收入FINANCE(21) 主营利益FINANCE(22) 其它利益FINANCE(23) 营业利益FINANCE(24) 投资收益
FINANCE(26) 营业外收支FINANCE(27) 上年损益调整FINANCE(28)利益总额FINANCE(29) 税后利益FINANCE(30) 净利益FINANCE(31) 未分配利益FINANCE(32) 每股未分配利润FINANCE(33) 每股收益
FINANCE(34) 每股净资产FINANCE(35)调整每股净资产
FINANCE(40) 流通市值
FINANCE(41) 总市值
FINANCE(42) 上市日期我这里贴出2013年通达信金融终端V7.09版本的最新关联财务函数,希望有用。

FINANCE(1) 总股本(股)
FINANCE(2) 市场类型
FINANCE(3) 深沪品种类型
FINANCE(5) B股
FINANCE(6) H股
FINANCE(7) 流通股本(股)
FINANCE(8) 股东人数
FINANCE(9) 资产负债率% FINANCE(10) 总资产
FINANCE(11) 流动资产
FINANCE(12) 固定资产
FINANCE(13) 无形资产
FINANCE(15) 流动负债
FINANCE(16) 少数股东权益FINANCE(17) 资本公积金FINANCE(18) 每股公积金FINANCE(19) 股东权益(净资产)FINANCE(20) 营业收入
FINANCE(21) 营业成本FINANCE(22) 应收帐款FINANCE(23) 营业利润FINANCE(24) 投资收益FINANCE(25) 经营现金流量FINANCE(26) 总现金流量FINANCE(27) 存货FINANCE(28) 利润总额FINANCE(29) 税后利润FINANCE(30) 净利润FINANCE(31) 未分配利润
FINANCE(32) 每股未分配利润
FINANCE(33) 每股收益(全年折算) FINANCE(34) 每股净资产
FINANCE(35) 季报中调整后的每股净资产FINANCE(36) 股东权益比
FINANCE(37) 第几季度报告,
FINANCE(38) 每股收益(最近一期季报) FINANCE(40) 流通市值
FINANCE(41) 总市值
FINANCE(42) 上市的天数
FINANCE(43) 净利润同比增长率
FINANCE(44) 主营收入同比增长率
FINANCE(50) 是否属于沪深300
FINANCE(51) 是否含可转债
FINANCE(52) 是否为融资融券标的
FINANCE(60) 行权比例(权证)
FINANCE(61) 行权价(权证)
FINANCE(62) 杠杆比例(权证)
FINANCE(63) 内在价值(权证)
FINANCE(64) 溢价率(权证)
我逐个进行测试,得出的结论是:只有“FINANCE(1) 总股本(股)”和“FINANCE(7)
流通股本(股)”这2个函数才可以引用往年的历史数据,其他函数都是显示当前数据。

相关文档
最新文档