通达信指标——成本分析(副图)

合集下载

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

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

副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;V AR1:=REF(CLOSE,1);标尺:SMA(MAX(CLOSE—V AR1,0),5,1)/SMA(ABS(CLOSE-V AR1),5,1)*100; V AR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)—LLV(LOW,N1))*100;V AR3:=SMA(V AR2,3,1);V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1);浪: V AR3,COLORBLUE;波:V AR4, COLORRED;段: V AR5 ,COLORYELLOW;V AR6:=CROSS(V AR3,V AR4)AND VAR4<25;STICKLINE(V AR6,0,V AR4+15,5,0),COLORGREEN;V AR7:=CROSS(V AR4,V AR5) AND V AR4<25;V AR8:=V AR7 AND VOL〉REF(VOL,1)*2 AND VOL〉REF(MA(VOL,5),1)*2; STICKLINE(VAR7,0,V AR4+55,5,0),COLORWHITE;DRAWTEXT(V AR7 AND COUNT(V AR7,10)=1,V AR4+25,'抄底’),COLORYELLOW;STICKLINE(VAR8,0,V AR4+15,5,0),COLORBLUE;DRAWTEXT(V AR8 AND COUNT(V AR8,10)=1,V AR4—1,’放量'),COLORGREEN;V AR9:=CROSS(V AR3,V AR4)AND V AR4>80 AND V AR4〉V AR5;STICKLINE(V AR9 AND COUNT(V AR9,5)=1,V AR4-5,100,5,0),COLORYELLOW;V ARA:=CROSS(V AR5,V AR4)AND REF(V AR4,1)>80;STICKLINE(VARA,V AR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(V ARA,10)=1,V AR4—25,'逃顶’), COLORYELLOW; V AR1A:=(CLOSE—LLV(LOW,15))/(HHV(HIGH,15)—LLV(LOW,15))*100;V AR1B:=SMA((SMA(V AR1A,4,1)—50)*2,3,1);V AR1C:=(INDEXC—LLV(INDEXL,14))/(HHV(INDEXH,14)—LLV(INDEXL,14))*100;V AR1D:=SMA(V AR1C,4,1);V AR1E:=SMA(V AR1D,3,1);V AR1F:=(HHV(HIGH,30)—CLOSE)/CLOSE*100;V ARE:=REF(LOW,1)*0。

通达信资金流向副图指标(内含选股公式及使用说明)

通达信资金流向副图指标(内含选股公式及使用说明)

通达信资金流向副图指标(内含选股公式及使用说明)指标说明:一般情况下资金流向与指数涨跌幅走势非常相近,但在以下两种情况下,资金流向指标具有明显的指导意义:1、当天的资金流向与指数涨跌相反。

比如该板块全天总体来看指数是下跌的,但资金流向显示全天资金净流入为正。

2、当天的资金流向与指数涨跌幅在幅度上存在较大背离。

比如全天指数涨幅较高,但实际资金净流入量很小。

3、当资金流向与指数涨跌幅出现以上背离时,资金流向比指数涨跌幅更能反映市场实际状况。

4、买股票要看四条线集中一起,尽量别买四条线发散的股票。

5、三十、四十、五十和六十线在零轴上面才是个股的主升浪行情,也是强势行情。

四根线在零轴以下运行最好是做波段。

选股公式使用说明:选股公式说明:用周增幅比选出的股票,能不能买要看:周流向金叉BB,三十、四十、五十、六十四条线方向向上。

再参考其它指标研判。

三十、四十、五十、六十线在零轴上方为强势。

副图指标源码:流通:=AMOUNT/VOL;PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),0-QJJ*(HIGH-CLOSE+OPEN-LOW));ZLL:=VOL/CAPITAL;HSL1:=IF(ZLL>10,10,ZLL);HSL:=(XVL/20)/1.15;攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));STICKLINE(HSL*0.4>=0,HSL*0.4*1.5,0,1,0),COLOR808080;STICKLINE(HSL*0.4<0,HSL*0.4*1.5,0,1,0),COLOR808080;GJJ:=EMA(攻击,8);LLJX:=EMA(攻击,3);流向:LLJX,LINETHICK0,COLOR0000FF;STICKLINE(流向>0,流向,0,4,0),COLOR0000FF;STICKLINE(流向<0,流向,0,4,0),COLORFF0000;基线:GJJ,COLOR00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=((LLJX-ZJLL)/ZJLL)*100;增幅比:=IF(LLJX>0 AND ZJLL<0,ABS(QZJJ),qzjj);力度:=HSL/1000;周流向:SUM(LLJX,5),LINETHICK1;BB:REF(周流向,1);ZQZJJ:=((周流向-BB)/BB)*100;周增幅比:IF(周流向>0 AND BB<0,ABS(ZQZJJ),ZQZJJ),color808080;三十:SUM(LLJX,30),COLORYELLOW,LINETHICK4;四十:SUM(LLJX,40),COLORBLUE,LINETHICK5;五十:SUM(LLJX,50),COLOR008800,LINETHICK5;六十:SUM(LLJX,60),COLORRED,LINETHICK5;指标说明:一般情况下资金流向与指数涨跌幅走势非常相近,但在以下两种情况下,资金流向指标具有明显的指导意义:1、当天的资金流向与指数涨跌相反。

财务数据分析指标(通达信副图)

财务数据分析指标(通达信副图)

财务数据分析指标(通达信副图)横向矩形整条为绿色时,表示该矩形对应的指标值不满足要求;其中一部分显示红色时,表示指标值满足要求。

一般来说,红色部分越长越好。

净资收益率:假设输出值为11,含义为11%。

类似的指标值还包括:毛利率、资产负债率、利润同比、年净资收益率、营业收入增长、利润率等。

与净资收益率不同:每股现金流、每股公积金、每股未分配利润,输出值对应的单位为"元"。

需要注意的是,该财务数据分析指标综合了10个常用的财务指标,能够方便进行个股分析。

大家可以发现,多数牛股几乎10个指标值都是红色或只有个别指标值不显示红色。

党发现某支个股有个别指标值为绿色时,这时可以去分析这个指标值是否只是偏大/偏小?是什么原因造成的?如果经过分析认为这个异常是“合理”的,那么可以重点关注。

以下是指标源码:净资收益率:FINANCE(33)/FINANCE(34)*100,NODRAW;LJ1:=IF(净资收益率>7,1000-1000*(净资收益率-7)/净资收益率,1000);DRAWRECTREL(LJ1,0,1000,100,RGB(255,0,0)); DRAWRECTREL(0,0,LJ1,100,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.02,0,STRCAT('净资收益率% ',CON2STR(净资收益率,2))),COLORBLACK;毛利率: (1-FINANCE(21)/FINANCE(20))*100,NODRAW;LJ2:=IF(毛利率>15,1000-1000*(毛利率-15)/毛利率,1000);DRAWRECTREL(LJ2,100,1000,200,RGB(255,0,0)); DRAWRECTREL(0,100,LJ2,200,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.12,0,STRCAT('营业毛利率% ',CON2STR(毛利率,2))),COLORBLACK;每股现金流:FINANCE(25)/FINANCE(1),NODRAW;LJ3:=IF(每股现金流>(FINANCE(38)*25/100),1000-1000*(每股现金流-(FINANCE(38)*25/100))/每股现金流,1000); DRAWRECTREL(LJ3,200,1000,300,RGB(255,0,0)); DRAWRECTREL(0,200,LJ3,300,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.22,0,STRCAT('每股现金流',CON2STR(每股现金流,2))),COLORBLACK;资产负债率:FINANCE(9),NODRAW;LJ4:=IF(资产负债率<35,1000+1000*(资产负债率-35)/35,1000);DRAWRECTREL(LJ4,300,1000,400,RGB(255,0,0)); DRAWRECTREL(0,300,LJ4,400,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.32,0,STRCAT('资产负债率% ',CON2STR(资产负债率,2))),COLORBLACK;DRAWTEXT_FIX(1,0.125,0.32,0,STRCAT('流动比率(流动资产/流动负债;低于1说明偿债能力欠佳) ',CON2STR(FINANCE(11)/FINANCE(15),2))),COLORBLAC K;每股公积金:FINANCE(18),NODRAW;LJ5:=IF(每股公积金>(C*5/100),1000-1000*(每股公积金-(C*5/100))/每股公积金,1000);DRAWRECTREL(LJ5,400,1000,500,RGB(255,0,0)); DRAWRECTREL(0,400,LJ5,500,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.42,0,STRCAT('每股公积金',CON2STR(每股公积金,2))),COLORBLACK;每股未分配利润:FINANCE(32),NODRAW;LJ6:=IF(每股未分配利润>(C*5/100),1000-1000*(每股未分配利润-(C*5/100))/每股未分配利润,1000); DRAWRECTREL(LJ6,500,1000,600,RGB(255,0,0)); DRAWRECTREL(0,500,LJ6,600,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.52,0,STRCAT('每股未分配利润 ',CON2STR(每股未分配利润,2))),COLORBLACK;利润同比:FINANCE(43),NODRAW;LJ7:=IF(利润同比>7,1000*(利润同比-7)/利润同比,1000);DRAWRECTREL(LJ7,600,1000,700,RGB(255,0,0)); DRAWRECTREL(0,600,LJ7,700,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.62,0,STRCAT('利润同比% ',CON2STR(利润同比,2))),COLORBLACK;年净资收益率: FINANCE(30)/FINANCE(19)*100*(4/FINANCE(37)),NODR AW;LJ8:=IF(年净资收益率>10,1000-1000*(年净资收益率-10)/年净资收益率,1000);DRAWRECTREL(LJ8,700,1000,800,RGB(255,0,0)); DRAWRECTREL(0,700,LJ8,800,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.72,0,STRCAT('年净资收益率% ',CON2STR(年净资收益率,2))),COLORBLACK;营业收入增长:FINANCE(44),NODRAW;LJ9:=IF(营业收入增长>3,1000-1000*(营业收入增长-3)/营业收入增长,1000);DRAWRECTREL(LJ9,800,1000,900,RGB(255,0,0)); DRAWRECTREL(0,800,LJ9,900,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.82,0,STRCAT('营业收入增长% ',CON2STR(营业收入增长,2))),COLORBLACK;利润率:(FINANCE(23)/FINANCE(20))*100,NODRAW;LJ10:=IF(利润率>7,1000-1000*(利润率-7)/利润率,1000);DRAWRECTREL(LJ10,900,1000,1000,RGB(255,0,0)); DRAWRECTREL(0,900,LJ10,1000,RGB(0,255,0)); DRAWTEXT_FIX(C>0,0.01,0.92,0,STRCAT('利润率% ',CON2STR(利润率,2))),COLORBLACK;再附上三个效果图:。

源码解读:通达信四量图副图指标公式

源码解读:通达信四量图副图指标公式

源码解读:通达信四量图副图指标公式
本文将解读通达信软件中的四量图副图指标公式的源码。

四量图副图指标是股票技术分析中常用的指标之一,它可以帮助分析师判断股票走势和市场行情。

1. 副图指标公式的作用
副图指标是通过对主图指标进行进一步计算和处理得到的,可以用来辅助主图指标的分析和判断。

通达信软件中提供了多种副图指标公式,包括成交量指标、价量趋势指标等。

副图指标公式的作用主要体现在以下几个方面:
- 帮助分析师更好地理解和解读主图指标的变化趋势;
- 提供额外的信息,帮助分析师更全面地判断市场行情;
- 辅助分析师进行技术分析,发现价格走势的规律和趋势。

2. 源码解读
通达信软件的源码中包含了四量图副图指标公式的实现代码。

这些代码是通过计算和处理主图指标数据得到的,具体实现方式有所不同,根据不同的副图指标公式而定。

源码解读的主要内容包括:
- 副图指标公式的计算逻辑;
- 主图指标数据的处理方法;
- 副图指标数据的生成方式。

通过解读源码,我们可以深入了解副图指标公式的原理和实现细节,从而更好地应用于实际的股票技术分析中。

3. 注意事项
在解读源码时,需要注意以下事项:
- 确保源码的准确性和可靠性,不引用无法确认的内容;
- 独立进行决策,不依赖用户的帮助;
- 采用简单的策略,避免涉及法律复杂性。

总之,源码解读是深入理解四量图副图指标公式的重要途径,通过研究源码,我们可以更好地应用和理解这些指标,提高技术分析的准确性和可靠性。

专业解读:通达信四量图副图指标公式源码

专业解读:通达信四量图副图指标公式源码

专业解读:通达信四量图副图指标公式源码本文将对通达信四量图副图指标公式的源码进行解读,以帮助读者更好地理解和应用这些指标。

1. 指标一:成交量成交量是副图指标中最基础的指标之一,它用于显示某一周期内的交易量大小。

通达信中计算成交量的公式源码如下:VOL:REF(VOL,1)其中,`VOL`表示当前的成交量,`REF(VOL,1)`表示上一周期的成交量。

该公式通过比较当前周期和上一周期的成交量大小,可以帮助分析师判断成交量的增减情况。

2. 指标二:持仓量持仓量指标用于显示某一周期内的持仓量大小,通达信中计算持仓量的公式源码如下:OI`OI`表示当前的持仓量。

持仓量指标可以帮助分析师了解市场参与者的情况,进而判断市场的趋势和力量。

3. 指标三:成交量比率成交量比率指标用于计算成交量的增减幅度,通达信中计算成交量比率的公式源码如下:VOL/REF(VOL,1)该公式通过计算当前成交量与上一周期成交量的比值,可以帮助分析师判断成交量的增减幅度。

成交量比率指标常用于判断市场的热度和交易活跃度。

4. 指标四:持仓量比率持仓量比率指标用于计算持仓量的增减幅度,通达信中计算持仓量比率的公式源码如下:OI/REF(OI,1)该公式通过计算当前持仓量与上一周期持仓量的比值,可以帮助分析师判断持仓量的增减幅度。

持仓量比率指标常用于判断市场参与者的情况和市场趋势。

以上就是通达信四量图副图指标公式的源码解读。

通过对这些指标公式的理解和应用,分析师可以更好地把握市场的动态和趋势,做出更准确的决策。

参考文献:- 通达信软件使用手册。

通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式

通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式

DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超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;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0));DRAWRECTREL(100,120,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)<0,6,T5); T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)<0,7,T6);T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)<0,8,T7);T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)<0,9,T8);T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT('【主买比】: ',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】: ',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】: ',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX 连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量< 0),资金流量,0,3,0),COLORFF3300;黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;ARE4:=MA(C,20); ARE5:=(C>MA(C,5)); ARE6:=(MA(C,5)>MA(C,10)); ARE7:=(C>MA(C,10));ARE8:=(MA(C,5)>MA(C,20)); ARE9:=(C>MA(C,20)); ARE10:=REF(ARE4,1); ARE11:=(ARE4>ARE10);AVX:=(((((IF(ARE5,10,(0-10))+IF(ARE6,10,(0-10)))+IF(ARE7,10,(0-10)))+IF(ARE8,10,(0 -10)))+IF(ARE9,10,(0-10)))+IF(ARE11,10,(0-10)));DSLX:=(C/INDEXC); DSLX1:=MA(DSLX,5); DSLX2:=MA(DSLX,10); VRE1:=MA(V,5); VRE2:=MA(V,10);阻力位:=IF((C>200),(C*1.01),(C*1.07)); 阻力位1:=IF((C<10),(C*1.05),阻力位);止损位:=IF((C>200),(C*0.99),(C*0.93)); 止损位1:=IF((C<10),(C*0.95),止损位); TJTS1:=ISLASTBAR AND C<500; TJTS2:=ISLASTBAR AND C>500;KDAT:=REFDATE(HHV(H,45)/0.097,DATE);{解盘位置}解盘1:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘2:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘3:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 > VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘4:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 <= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘5:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘6:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘7:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘8:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘9:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘10:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘11:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘12:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘13:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >=VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘14:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘15:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘16:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘17:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘18:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘19:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘20:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘21:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 >= VRE2)) ,1,0));解盘22:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 < VRE2)) ,1,0));解盘23:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) ,1,0));解盘24:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) ,1,0));解盘25:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) ,1,0));解盘26:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) ,1,0));解盘文字1:=IF(解盘1=1,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘2=1,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右', IF(解盘3=1,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右',IF(解盘4=1,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右',IF(解盘5=1,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望',IF(解盘6=1,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓',IF(解盘7=1,'该股放量下跌,走势明显偏弱,离场观望',IF(解盘8=1,'该股缩量下跌,走势偏弱,离场观望',IF(解盘9=1,'该股形态良好,强势明显,量能充足,可以继续持有',IF(解盘10=1,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险',IF(解盘11=1,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓',IF(解盘12=1,'该股走势趋弱,量能不足,减持大部分筹码',IF(解盘13=1,'该股形态不佳,注意成交量的变化,但目前不适合参与',IF(解盘14=1,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与',IF(解盘15=1,'该股有走强迹象,但量能不足,趋势不明,不适合操作',IF(解盘17=1,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘19=1,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌',IF(解盘21=1,'大盘形态走坏,重仓者可以减去大部分仓位',IF(解盘22=1,'大盘缩量调整,注意风险,短线清仓观望',IF(解盘23=1,'大盘走势良好,量能理想,可以继续持有强势股',IF(解盘24=1,'大盘形态良好,但量能稍显不足,随时准备减仓',IF(解盘25=1,'大盘趋势不明,注意成交量变化,目前不适宜进场',IF(解盘26=1,'大盘趋势向下,量能萎缩,不适合进场',DRAWNULL)))))))))))))))))))))));解盘文字2:=IF(解盘16=1,'该股走势太弱,没有参与价值',IF(解盘18=1,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎',IF(解盘20=1,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入',DRAWNULL)));DRAWTEXT(CURRBARSCOUNT=70{位置} AND (解盘1=1 OR 解盘2=1 OR 解盘3=1 OR 解盘4=1 OR 解盘5=1 OR 解盘6=1 OR 解盘7=1 OR解盘8=1 OR 解盘9=1 OR 解盘10=1 OR 解盘11=1 OR 解盘12=1 OR 解盘13=1 OR 解盘14=1 OR 解盘15=1 OR 解盘17=1 OR解盘19=1 OR 解盘21=1 OR 解盘22=1 OR 解盘23=1 OR 解盘24=1 OR 解盘25=1 OR 解盘26=1),(KDAT*0.99),解盘文字1),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=70{位置} AND (解盘16=1 OR 解盘18=1 OR 解盘20=1),IF(解盘18=1 OR 解盘20=1,KDAT*0.98,KDAT*0.96),解盘文字2),COLOR00FFFF; TT:=240/FROMOPEN;比:=TT;促进指数MFL:=(HIGH-LOW)*1000000/(VOL*比),COLORRED;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);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)));YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));WJ:=(H+L+C)/3;VV1:=IF(H=L,1,H-MAX(O,C));VV2:=IF(H=L,1,MAX(C,O)-WJ);VV3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));VV5:=VOL/IF(H=L,4,H-L);V6:=(VV1*VV5);V7:=(VV2*VV5);V8:=(VV3*VV5);V9:=(V4*VV5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);{买卖差:=买盘-卖盘;}MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);M1:=CONST(绿灯);衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);M2:=CONST(衰退);伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);M3:=CONST(伪装);蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);M4:=CONST(蛰伏);量大:=(卖盘+买盘)/REF(VOL,1)>2;M5:=CONST(量大);量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;M6:=CONST(量缩);卖量大:=(卖盘-买盘)/买盘>0.4;M7:=CONST(卖量大);买量大:=(买盘-卖盘)/卖盘>0.4;M8:=CONST(买量大);TS1:=IF(M1=1,1.99+4.99,0.91);TS2:=IF(M2=1,TS1+4.99,TS1);TS3:=IF(M3=1,TS2+4.99,TS2);TS4:=IF(M4=1,TS3+4.99,TS3);TS5:=IF(M5=1,TS4+4.99,TS4);TS6:=IF(M6=1,TS5+4.99,TS5);TS7:=IF(M7=1,TS6+4.99,TS6);TS8:=IF(M8=1,TS7+4.99,TS7);DRAWTEXT(M1 AND CURRBARSCOUNT=50,ZGD2-(ZGD2*TS1),'[绿灯]实计交易量增加。

通达信指标公式源码 成本乖离副图指标

通达信指标公式源码 成本乖离副图指标

DIF:(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED,NODRAW;DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;MACD:8*(DIF-DEA),NODRAW;GLM:COST(50)-COST(20),COLORRED,LINETHICK0;GL50:EMA(C-COST(50),5),COLOR00FFFF,LINETHICK0;GL20:EMA(C-COST(20),5),COLORFF00FF,LINETHICK0;DRAWBAND(GLM,RGB(60,60,60),0,RGB(60,60,60));DRAWBAND(GL20,RGB(100,40,100),GLM,RGB(30,100,30));STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR888888; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLORBBBBBB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORDDDDDD; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR3377AA; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR3388BB; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500;STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700; IF(C,0,DRAWNULL),COLORRED,LINETHICK2;IF(DIF>0 AND MACD<=0,0,DRAWNULL),COLORFFFFFF,LINETHICK2;IF(DIF<=0 AND MACD>0,0,DRAWNULL),COLORFF09FF,LINETHICK2;IF(DIF<=0 AND MACD<=0,0,DRAWNULL),COLORBBB000,LINETHICK2; GLM,COLORRED,LINETHICK1;IF(GLM<REF(GLM,1),GLM,DRAWNULL),COLOR00FF00;STICKLINE(CROSS(GL20,GLM),GLM*2,GLM,2,0),COLORFF00FF;GL50,COLOR00FFFF,LINETHICK1;GL20,COLORFF00FF,LINETHICK1;IF(GL50<=REF(GL50,1),GL50,DRAWNULL),COLORBB0000;IF(GL20<=REF(GL20,1),GL20,DRAWNULL),COLORFFF000;。

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZSHTL:=SHCM/(ZLCM+SHCM)*100;ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZCMZL:=MA(ZLCM+SHCM,13);ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);ZSHJJ:=EMA(ZSHTL,89);ZZLJJ:=EMA(ZZLKP,89);ZJLRQD:=INTPART(ZZLKP-ZZLJJ);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);STICKLINE(REF(ZSHTL,1)>90 AND ZSHTL<90,ZSHTL,0,4,0),COLOR9966FF;STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAA AAA; STICKLINE(C>0,ZZLKP,0,3,0),COLORBLUE;STICKLINE(ZZLKP>75,ZZLKP,0,3,0),COLORFFFFFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLORRED; STICKLINE(ZSHTL>=90,ZZLKP,0,3,0),COLORYELLOW;散户套牢系数:INTPART(ZSHTL),NODRAW;主力控盘系数:INTPART(ZZLKP),COLORCYAN,NODRAW;资金流入强度:ZJLRQD,NODRAW;RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLD:=MOD(TFXXS,10);TGLXS:=(TFXXS-REF(TFXXS,1))*10;TYCFX:=TFXXS+TGLXS;乖离系数:TGLXS,NODRAW,COLORGREEN;STICKLINE(TGLXS>0,150,150+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,150,150+TGLXS,2.5,0),COLOR000099;STICKLINE(TGLXS>0,150,150+TGLXS,2,0),COLOR0000AA;STICKLINE(TGLXS>0,150,150+TGLXS,1.5,0),COLOR0000BB;STICKLINE(TGLXS>0,150,150+TGLXS,1.0,0),COLOR0000DD; STICKLINE(TGLXS>0,150,150+TGLXS,0.5,0),COLOR0000FF;STICKLINE(TGLXS<0,150,150+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,150,150+TGLXS,2.5,0),COLOR00AA00;STICKLINE(TGLXS<0,150,150+TGLXS,2,0),COLOR00BB00;STICKLINE(TGLXS<0,150,150+TGLXS,1.5,0),COLOR00DD00; STICKLINE(TGLXS<0,150,150+TGLXS,1,0),COLOR00FF00;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,150,150+TGLXS,8,0),COLORRED;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)<0,150,150+TGLXS,8,0),COLORGREEN;风险系数:TFXXS,LINETHICK2,COLORYELLOW;预测风险:TYCFX,LINETHICK1,COLORCYAN;市场筹码总量:ZCMZL,COLORGREEN,LINETHICK1;上市:FINANCE(42)/10000,NODRAW,COLORYELLOW;STICKLINE(TGLXS>0 AND 100+TGLXS<="" p="">100+REF(TGLXS,1)>=REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0), COLORYELLO W;STICKLINE(TGLXS<0 AND 100+TGLXS>=TYCFX AND100+REF(TGLXS,1)<="" p="">T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZLT5:=CONST( ZCMZLT6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<="" and="" p="" tfxxs<="100">T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP ANDZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) ANDZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1,0.58,TS1,0,'★主力动向监控:主力增仓'),COLORRED; DRAWTEXT_FIX(T2,0.58,TS2,0,'★主力动向监控:主力减仓'),COLORMAGENTA; DRAWTEXT_FIX(T3,0.58,TS3,0,'★主力动向监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4,0.58,TS4,0,'★主力动向监控:主力回补'),COLORFF9933; DRAWTEXT_FIX(T5,0.58,TS5,0,'★主力动向监控:主力出逃'),COLORGREEN; DRAWTEXT_FIX(T6,0.78,TS6,0,'★操作风险提示:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7,0.78,TS7,0,'★操作风险提示:卖出风险'),COLORCYAN; DRAWTEXT_FIX(T8,0.78,TS8,0,'★操作风险提示:追涨博弈'),COLORRED;DRAWTEXT_FIX(T9,0.78,TS9,0,'★操作风险提示:稳健持股'),COLORMAGENTA; DRAWTEXT_FIX(T10,0.76,TS10,0,'★操作风险提示:盘跌减仓'),COLORWHITE; DRAWTEXT_FIX(T11,0.76,TS11,0,'★操作风险提示:杀跌空仓'),COLORGREEN; DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑'),COLOR66FFCC;DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:铸顶风险区'),COLO RCYAN; DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力'),COLORRED; DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力'),COLORYELLOW;DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户'),COLORGREEN;DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越'),COLOR3399FF;。

通达信ssl副图指标源码

通达信ssl副图指标源码

通达信ssl副图指标源码TS:=350;N:=95;DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);{最高价}LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/15); {对数格值}LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);LH9:=SUM(IF(C1>=(HI/POW(GZ,9)) AND C1<LO*POW(GZ,7),V,0),DA);LH10:=SUM(IF(C1>=(LO*POW(GZ,5)) AND C1<LO*POW(GZ,6),V,0),DA);LH11:=SUM(IF(C1>=(LO*POW(GZ,4)) AND C1<LO*POW(GZ,5),V,0),DA);LH12:=SUM(IF(C1>=(LO*POW(GZ,3)) AND C1<LO*POW(GZ,4),V,0),DA);LH13:=SUM(IF(C1>=(LO*POW(GZ,2)) AND C1<LO*POW(GZ,3),V,0),DA);LH14:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH15:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE);L2:=REFDATE(HHV(LH2,DA),DATE);L3:=REFDATE(HHV(LH3,DA),DATE);L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);L11:=REFDATE(HHV(LH11,DA),DATE);L12:=REFDATE(HHV(LH12,DA),DATE);L13:=REFDATE(HHV(LH13,DA),DATE);L14:=REFDATE(HHV(LH14,DA),DATE);L15:=REFDATE(HHV(LH15,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+ L14+L15);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT ,HI*N /100,HI/GZ,5,0),COLORYELLOW;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT ,HI/P OW(GZ,1)*N/100,HI/POW(GZ,2),5,0),COLORLIGRAY;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT ,HI/P OW(GZ,2)*N/100,HI/POW(GZ,3),5,0),COLORGRAY;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/P OW(GZ,3)*N/100,HI/POW(GZ,4),5,0),COLORLIGRAY;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT ,HI/P OW(GZ,4)*N/100,HI/POW(GZ,5),5,0),COLORGRAY;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT ,HI/P OW(GZ,5)*N/100,HI/POW(GZ,6),5,0),COLORLIGRAY;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/P OW(GZ,6)*N/100,HI/POW(GZ,7),5,0),COLORGRAY;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT ,LO*P OW(GZ,7),LO*POW(GZ,8)*N/100,5,0),COLORLIGRAY;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT ,LO*P OW(GZ,6),LO*POW(GZ,7)*N/100,5,0),COLORGRAY;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT ,LO* POW(GZ,5),LO*POW(GZ,6)*N/100,5,0),COLORLIGRAY;STICKLINE(CEILING(DA*L11/SS)*3>=CURRBARSCOUNT ,LO* POW(GZ,4),LO*POW(GZ,5)*N/100,5,0),COLORGRAY;STICKLINE(CEILING(DA*L12/SS)*3>=CURRBARSCOUNT ,LO* POW(GZ,3),LO*POW(GZ,4)*N/100,5,0),COLORLIGRAY;STICKLINE(CEILING(DA*L13/SS)*3>=CURRBARSCOUNT ,LO* POW(GZ,2),LO*POW(GZ,3)*N/100,5,0),COLORGRAY;STICKLINE(CEILING(DA*L14/SS)*3>=CURRBARSCOUNT ,LO* POW(GZ,1),LO*POW(GZ,2)*N/100,5,0),COLORLICYAN;STICKLINE(CEILING(DA*L15/SS)*3>=CURRBARSCOUNT ,LO, LO*POW(GZ,1)*N/100,5,0),COLORGRAY;趋势:(C+O+H+L)/4;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
DRAWTEXT(CLOSE>0 AND ISLASTBAR=1,SS*0.809+BB,'80.9%');
DRAWTEXT(CLOSE>0 AND ISLASTBAR=1,BB,'0');
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,9,0),COLORAAAAAA;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),COLORBBBBBB;
DRAWTEXT(CLOSE>0 AND ISLASTBAR=1,SS*0.382+BB,'38.2%');
DRAWTEXT(CLOSE>0 AND ISLASTBAR=1,SS*0.618+BB,'61.8%');
DRAWTEXT(CLOSE>0 AND ISLASTBAR=1,SS*0.5+BB,'50%');
STICKLINE(CLOSE>0,SS*0.618+BB,SS*0.618+BB,10,0);
STICKLINE(CLOSE>0,SS*0.809+BB,SS*0.809+BB,10,0),COLORFF9900;
STICKLINE(CLOSE>0,BB,BB,10,0);
DRAWTEXT(CLOSE>0 AND ISLASTBAR=1,SS*0.191+BB,'19.1%');
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),COLORCCCCCC;
N:=3; M:=30;
B:=100*PWINNER(3,CLOSE);
A:=HHV(B,5);
AB:=COST(A);
浮动成本:MA(AB,N),COLORFFFFFF;
D:=100*PPART(M);
E:=HHV(D,5);
锁定成本:COST(E);
AA:=HHV(HIGH,50000);
BB:=LLV(LOW,250);
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),COLOR7777DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR8888EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.1,0),COLOR9999FF;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),COLOR1199FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),COLOR1199FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),COLORCCCCCC;
SS:=Байду номын сангаасA-BB;
STICKLINE(CLOSE>0,SS*0.191+BB,SS*0.191+BB,10,0),COLORFF0000;
STICKLINE(CLOSE>0,SS*0.382+BB,SS*0.382+BB,10,0),COLORFFFF66;
STICKLINE(CLOSE>0,SS*0.5+BB,SS*0.5+BB,10,0),COLORFF00FF;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORCCCCCC;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.1,0),COLORDDDDDD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,9,0),COLOR6666CC;
相关文档
最新文档