驭龙量比通达信指标公式源码

合集下载

通达信指标公式源码 实用极品操盘指标

通达信指标公式源码 实用极品操盘指标

零轴:=DYNAINFO(3)*1,COLOR0000FF;STICKLINE(1,90/100+零轴,90/100+零轴,2,0),COLOR00BBBB; STICKLINE(1,10/100+零轴,10/100+零轴,2,0),COLOR0000BB; STICKLINE(1,100/100+零轴,100/100+零轴,2,0),COLORBBBBBB; STICKLINE(1,50/100+零轴,50/100+零轴,2,0),COLORFF0000; STICKLINE(1,0/100+零轴,0/100+零轴,2,0),COLORBBBB00;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100+50/100; K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;KK:=零轴+K/100;DDK:=零轴+D/100;JJ:=零轴+J/100;EEK:=50/100+零轴;DRAWBAND(KK,RGB(225,150,0),EEK,RGB(0,0,130)); DRAWBAND(JJ,RGB(200,0,150),KK,RGB(100,100,100));IF(JJ>=REF(JJ,1),JJ,DRAWNULL),COLOR00FFFF,LINETHICK1; DRAWKLINE(H,O,L,C);MA5:MA(CLOSE,5),COLOR0000FF,LINETHICK2;MA10:MA(CLOSE,10),COLOR00FFFF,LINETHICK1;MA30:MA(CLOSE,30),COLORFFFF00,LINETHICK1;MA60:MA(CLOSE,60);月K:="KDJ.K#MONTH"(9,3,3);月D:="KDJ.D#MONTH"(9,3,3);周K:="KDJ.K#WEEK"(9,3,3);周D:="KDJ.D#WEEK"(9,3,3);日K:="KD.K"(9,3,3);日D:="KD.D"(9,3,3);AA:=日K>=日D;BB:=日K<日D;DD:=周K>=周D;EE:=月K>=月D;STICKLINE(日K>=日D AND C>=O,C,O,3.4,0),COLOR0000AA;STICKLINE(日K>=日D AND C>=O,C,O,2.0,0),COLOR0000DD ;STICKLINE(日K>=日D AND C>=O,C,O,1.2,0),COLOR0000FF;STICKLINE(日K>=日D AND C>=O,H,L,0,0),COLOR0000FF;STICKLINE(日K>=日D AND C<O,C,O,3.4,0),COLOR00AAAA;STICKLINE(日K>=日D AND C<O,C,O,2.2,0),COLOR00DDDD;STICKLINE(日K>=日D AND C<O,C,O,1.0,0),COLOR00FFFF;STICKLINE(日K>=日D AND C<O,H,L,0,0),COLOR00FFFF;STICKLINE(日K<日D AND C>=O,C,O,3.4,0),COLORAA00AA;STICKLINE(日K<日D AND C>=O,C,O,2.0,0),COLORDD00DD;STICKLINE(日K<日D AND C>=O,C,O,1.2,0),COLORFF00FF;STICKLINE(日K<日D AND C>=O,H,L,0,0),COLORFF00FF;STICKLINE(日K<日D AND C<O,C,O,3.4,0),COLORAAAA00;STICKLINE(日K<日D AND C<O,C,O,2,0),COLORDDDD00;STICKLINE(日K<日D AND C<O,C,O,1,0),COLORFFFF00;STICKLINE(日K<日D AND C<O,H,L,0,0),COLORFFFF00;月DIF:="MACD.DIF#MONTH"(12,26,9);月DEA:="MACD.DEA#MONTH"(12,26,9);周DIF:="MACD.DIF#WEEK"(12,26,9);周DEA:="MACD.DEA#WEEK"(12,26,9);日DIF:="MACD.DIF"(12,26,9);日DEA:="MACD.DEA"(12,26,9);MAA:=日DIF>=日DEA;MBB:=周DIF>=周DEA;MDD:=月DIF>=月DEA;TT:=IF(ISLASTBAR,240/FROMOPEN,1);NN:=120;HH:=HHV(V*TT,NN);LL:=LLV(V,NN);最高:=CONST(HH);最低:=CONST(LL);最高2:=CONST(HHV(H,NN));最低2:=CONST(LLV(L,NN));PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW;RCC1:=最高2*0.9-(最高2-最低2)*PP;最低3:=MIN(RCC1,最低2);AAD:=最低3;STICKLINE(1,AAD-0.000*AAD,AAD-0.024*AAD,4,1),COLOR464646;STICKLINE(1,AAD-0.030*AAD,AAD-0.054*AAD,4,1),COLOR464646;STICKLINE(1,AAD-0.060*AAD,AAD-0.084*AAD,4,1),COLOR464646;STICKLINE(1,AAD-0.090*AAD,AAD-0.114*AAD,4,1),COLOR464646;STICKLINE(1,AAD-0.120*AAD,AAD-0.144*AAD,4,1),COLOR464646;STICKLINE(1,AAD-0.150*AAD,AAD-0.174*AAD,4,1),COLOR464646;STICKLINE(AA,AAD-0.000*AAD,AAD-0.024*AAD,4,0),COLORRED;STICKLINE(DD,AAD-0.030*AAD,AAD-0.054*AAD,4,0),COLOR00FFFF;STICKLINE(EE,AAD-0.060*AAD,AAD-0.084*AAD,4,0),COLORFFFF00;STICKLINE(MAA,AAD-0.090*AAD,AAD-0.114*AAD,4,0),COLORFF00FF;STICKLINE(MBB,AAD-0.120*AAD,AAD-0.144*AAD,4,0),COLOR00BB00;STICKLINE(MDD,AAD-0.150*AAD,AAD-0.174*AAD,4,0),COLORBBBB00;威廉波段:=100-(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;威廉风险:=IF(威廉波段>95,(100/100+零轴)-(100/100+零轴)*0.009,100/100+零轴),COLOR00FFFF,LINETHICK0;DRAWBAND(100/100+零轴,RGB(255,255,0),威廉风险,RGB(0,0,0));WLDB:=IF(威廉波段<5,(0/100+零轴)+(0/100+零轴)*0.009,0/100+零轴),COLORFFFF00,LINETHICK1;DRAWBAND(WLDB,RGB(255,0,0),0/100+零轴,RGB(0,0,0));DRAWTEXT_FIX(1,0.05,0.0,0,'【彩色K线标识】★★红色柱---J大于K并在中轴上★★黄色柱--J小于K并在中轴上★★★★粉色柱---J大于K并在中轴下★★青色柱--J小于K并在中轴下★★'),COLOR00FFFF;DRAWTEXT_FIX(1,0.05,0.04,0,'【彩色三角型标识】★★红色三角形---威廉底部★★黄色三角形--威廉顶部★★'),COLORFFFF00;DRAWTEXT_FIX(ISLASTBAR,0.4,0.70,0,'★【红色-日KDJ金叉】【黄色-周KDJ金叉】【青色-月KDJ金叉】★'),COLORFF00FF;DRAWTEXT_FIX(ISLASTBAR,0.4,0.73,0,'★【粉色-日MACD金叉】【绿色-周MACD金叉】【深灰-月MACD金叉】★'),COLOR00FFFF;DRAWRECTREL(0,580,100,960,RGB(150,0,0));DRAWRECTREL(100,580,200,960,RGB(0,150,150));DRAWRECTREL(200,725,300,960,RGB(150,0,150));DRAWTEXT_FIX(ISLASTBAR,0.04,0.60,0,'KDJ '),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR,0.01,0.65,0,'月K= '),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.05,0.65,0, 月K),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR,0.01,0.7,0,'月D='),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.05,0.7,0,月D),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR,0.01,0.75,0,'周K='),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.05,0.75,0,周K),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR,0.01,0.8,0,'周D='),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.05,0.8,0,周D),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR,0.01,0.85,0,'日K='),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.05,0.85,0,日K),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR,0.01,0.9,0,'日D='),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.05,0.9,0,日D),COLORFFFFFF;DRAWTEXT_FIX(ISLASTBAR,0.13,0.60,0,'MACD '),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR,0.11,0.65,0,'月DIF= '),COLORFFFFFF;DRAWNUMBER_FIX(ISLASTBAR,0.155,0.65,0, 月DIF),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.11,0.7,0,'月DEA='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.155,0.7,0,月DEA),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.11,0.75,0,'周DIF='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.155,0.75,0,周DIF),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.11,0.8,0,'周DEA='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.155,0.8,0,周DEA),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.11,0.85,0,'日DIF='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.155,0.85,0,日DIF),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.11,0.9,0,'日DEA='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.155,0.9,0,日DEA),COLORFFFFFF; TYP:=(HIGH+LOW+CLOSE)/3;日CCI:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));{日}周CCI:=(TYP-MA(TYP,21))/(0.015*AVEDEV(TYP,21));{周}月CCI:=(TYP-MA(TYP,9))/(0.015*AVEDEV(TYP,9));{月} DRAWTEXT_FIX(ISLASTBAR,0.235,0.75,0,'CCI'),COLOR00FFFF; DRAWTEXT_FIX(ISLASTBAR,0.206,0.80,0,'月CC='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.250,0.80,0,月CCI),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.206,0.85,0,'周CCI='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.250,0.85,0,周CCI),COLORFFFFFF; DRAWTEXT_FIX(ISLASTBAR,0.206,0.90,0,'日CCI='),COLORFFFFFF; DRAWNUMBER_FIX(ISLASTBAR,0.250,0.90,0,日CCI),COLORFFFFFF;。

通达信主力控盘指标公式(附源码)

通达信主力控盘指标公式(附源码)

通达信主力控盘指标公式(附源码)A、主力分析的原理如下:1、惯性原理:处于涨势或者跌势的时候,其趋势一般将延续。

2、波浪原理:跌有多深则涨也将会有多高;量足则价升。

3、极静思动:价窄而量缩往往预示着大行情的来临。

4、物极必反:行情发展到极端状态时将朝着它的反向运行。

5、一致性:当长期和短期的趋势都一致时其威力最大。

6、转折交叉:当短期和长期趋势发生矛盾时可能会变盘。

7、成本原理:当买入的成本小于市场成本时风险较小。

B、主力行为1、主力收集:指标在中低位,价量配合好,盘中常有大手笔买单,有间隙放量行为。

2、主力入场:该股处于盘整或者下跌过程中,突然放出巨量上扬,内盘明显大于外盘,换手积极,主力入场明显。

3、主力派发:经常高开走低,上冲乏力,均线时常跌破,价量配合差。

4、主力撤庄:股价暴跌,价量配合极差,外盘远远大于内盘,若成交量放出,属主力撤庄行为。

5、主力拉升:主力吸足筹码之后,开始振仓洗筹,最明显的特征是升跌无量,并量呈逐波缩小之势,当形态发展到均线粘合、多头排列的时候,主力往往会拉升。

C、底部形态分析股票的大幅上涨是从底部开始的。

底部有筑底过程时,筑底的目的是调整均线或清理筹码。

只有当市场上对该股票的抛售达到非常小的程度,或者因为消息导致市场参与者在股市中逃命,有新的力量介入时,底部才能形成。

所以从图表上看,一种形式是窄幅缩量,另一种形式是巨幅下跌。

底部形成可以产生一个强劲的上涨行情。

指标公式:如何理解主监控的功能?柱子的高度表示主力资金的流入和流出,而一根柱子表示一天内主力资金的注入,这也是我们辅助我们与村里运作的有利工具。

主控板选股公式总结如下:VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100); VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100); VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100); VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6); VAR6:=MA(VAR5,3);开始控盘:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF;STICKLINE((VAR6 <= (0 - 10)),0,(0 -20),3,0),COLOR00AAFF; VAR1:=EMA(EMA(CLOSE,3),1);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000; STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00; STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400; STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800; STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;无控盘:0,COLORFFAA00; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;高度控盘:0,COLOR0000FF; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800; STICKLINE(控盘0,控盘,0,2.5,0),COLOR00AA00; STICKLINE(控盘0,控盘,0,1.5,0),COLOR00CC00; STICKLINE(控盘0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货:0,COLOR00FF00;。

实战分析思路通达信指标公式源码

实战分析思路通达信指标公式源码

实战分析思路通达信指标公式源码通达信是中国股市中使用较为广泛的一种技术分析软件。

该软件提供了丰富的指标工具,包括均线、MACD、KDJ等等。

对于想要实战分析的投资者,了解这些指标的计算公式是非常重要的。

下面将介绍一些常用指标的计算公式和通达信源码。

1.均线(MA)指标的计算公式如下:MA(n)=(C1+C2+…+Cn)/n其中,MA(n)表示平均线的值,C1、C2、Cn分别表示n个周期内的收盘价。

通达信源码如下:_MA:MA(CLOSE,N);上述代码表示计算周期为N的收盘价的均线。

2.MACD指标的计算公式如下:DIFF = EMA(short) - EMA(long)DEA=EMA(DIFF,M)MACD=(DIFF-DEA)*2其中,EMA表示指数移动平均线,DIFF表示快线与慢线的差值,DEA 为DIFF的M周期指数移动平均,MACD为DIFF与DEA的差值的两倍。

通达信源码如下:_DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);_DEA:EMA(_DIFF,M);_MACD:(_DIFF-_DEA)*2;上述代码表示计算DIFF、DEA和MACD三个指标。

3.KDJ指标的计算公式如下:RSV=(CLOSE-LOWEST(CLOSE,N))/(HIGHEST(CLOSE,N)-LOWEST(CLOSE,N))*100K=(1-a)*PREV.K+a*RSVD=(1-a)*PREV.D+a*KJ=3*K-2*D其中,RSV表示未成熟随机值,K、D、J分别表示K、D、J三条曲线的值,N为周期,a为平滑因子。

通达信源码如下:_RSV:(CLOSE-LOWEST(CLOSE,N))/(HIGHEST(CLOSE,N)-LOWEST(CLOSE,N))*100;_k1:(1-a)*REF(_k1,1)+a*_RSV;_d1:(1-a)*REF(_d1,1)+a*_k1;_j1:3*_k1-2*_d1;上述代码表示计算RSV、K、D和J四个指标。

通达信指标公式源码 超级主力 副图指标 源码

通达信指标公式源码 超级主力 副图指标 源码

活筹: 100*WINNER(REF(CLOSE,1)*1.1)-100*WINNER(REF(CLOSE,1)*0.9);死筹: 100*WINNER(CLOSE);
主力筹码: 100*WINNER(CLOSE*0.9);
获利3: 100*WINNER(CLOSE*0.97);获利20: 100*WINNER(CLOSE*0.9*0.9); 获利30: 100*WINNER(CLOSE*0.9*0.9*0.9);
穿透筹码: 100*WINNER(CLOSE)-100*WINNER(REF(CLOSE,1)*1);
AA:REF(主力筹码<30,1) AND 主力筹码>30,color0099ff;
QW:LOW<COST(4) AND CLOSE>COST(4),color888888;
STICKLINE(获利3>85,0,获利3,8,0),coloryellow;
STICKLINE(主力筹码>30,0,主力筹码,8,1),colorff00ff;
STICKLINE(获利20>20,0,获利20,8,1),color00ff00;
STICKLINE(获利30>20,0,获利30,8,1),colorwhite;
{用法:以紫红色活筹为核心,当你在使用[主力建仓]发现股价在60日均线和建仓线上时以错过了股价的最佳买入时机,你可以立刻用现在的这个指标里的活筹来研判!当活筹出现时你可以考虑跟庄{因为活筹是庄家拉升的信号,当然这个指标里也有庄家筹码,要是庄家筹码出现{白色柱体]那可就是牛了!95%100是大牛股了!}。

通达信指标公式源码 龙行副图 自用指标源码

通达信指标公式源码 龙行副图 自用指标源码

N 1 11 3牛板金龙:3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HH V(H,13)-LLV(L,13))*100,5,1),3,1),COLORYELLOW,LINETHICK2;牛板金龙1:=EMA(牛板金龙,N),COLORFFFF00,LINETHICK1;亢龙有悔:IF(牛板金龙>=90,90,100);LOWV:=LLV(C,15);HIGHV:=HHV(C,15);RSV:=EMA((C-LOWV)/(HIGHV-LOWV)*100,3);K:=EMA(RSV,3);牛股1:=REF(牛板金龙<=10,1) AND K>REF(K,1);吸筹1:=IF(牛板金龙<=10,10,0);A1:TROUGH(牛板金龙1,1,1),COLORLIGREEN,DOTLINE; VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);牛股2:=IF(CROSS(VAR1,8),80,0);吸筹2:=IF(VAR1<=8,25,0);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,13);VAR6:=HHV(VAR4,13);VAR7:=IF(MA(CLOSE,34),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);吸筹3:=CROSS(VAR9>20,0.5);快线:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;慢线:=SMA(快线,3,1);空:=SMA(慢线,3,1);牛股3:=IF(BARSLAST(CROSS(慢线,空))<9 AND CROSS(慢线,空) AND 慢线<20,90,0); 潜龙在渊:IF(吸筹1 OR 吸筹2 OR 吸筹3,18,0),STICK,COLORGRAY;金龙出水:IF(CROSS(牛股1,0.5) OR 牛股2 OR 牛股3,58,0.0),STICK,COLORRED;。

通达信指标公式源码 超短稳赢主图选股公式 通达信 源码

通达信指标公式源码 超短稳赢主图选股公式 通达信 源码

{通达信强手超短主图指标公式}B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/ 4,6),1),B1,DRAWNULL),COLOR0000FF;A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/ 4,6),1),B1,DRAWNULL),COLOR00FF00;B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW) /4,13),1),B2,DRAWNULL),COLOR0000FF;A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW) /4,13),1),B2,DRAWNULL),LINETHICK2,COLOR00FF00;B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,2 8),1),B3,DRAWNULL),LINETHICK3,COLOR0000FF;A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,2 8),1),B3,DRAWNULL),LINETHICK3,COLOR00FF00;B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125) +EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR0000FF ;A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125) +EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR0000FF ;A001:=CLOSE-REF(CLOSE,6);A002:=MA(A001,6);A003:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100;A004:=SMA(A003,3,1);A005:=SMA(A004,3,1);A006:=EMA((3*A004-2*A005),2);A007:=(HIGH+LOW+CLOSE)/3;A008:=((A007-MA(A007,14))/(0.015*AVEDEV(A007,14)))/2;A009:=(A008+(EMA(((0-(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(L OW,14))))+100)/100,3)*200-100))/2;A010:=A009-REF(A009,14);A011:=A009-REF(A009,26);A012:=(A009+A010+A011)/3;KKM:=EMA(A012,4);A013:=HHV(HIGH,34);A014:=(2*CLOSE+HIGH+LOW)/4;A015:=LLV(LOW,34);A016:=EMA(((A014-A015)/(A013-A015))*100,13);A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);KKMD:=A016-A017>1 AND A016<30 AND A017<30;KKML:=A016-A017<0 AND A016>80 AND A017>80 ANDREF(A016-A017,1)>0;KKMQ:=COUNT(A016-A017>0,2)=2;KKAL:=(A016-A017)<0;生命线:=MA(CLOSE,20),COLOR0000FF;取舍线:MA(CLOSE,10);DRAWTEXT(FILTER(KKMD,30),L,'买'),COLOR00FFFF;DRAWTEXT(FILTER(KKML,30),H,'卖'),COLORFFFF00;DRAWTEXT(FILTER(KKMQ,30),C,'持仓'),COLOR00FF00;DRAWTEXT(FILTER(KKAL,30),H,'空仓'),COLORFF8080;DRAWTEXT(FILTER(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),30),L*0.9 8,'强于大盘'),COLORFF00FF;DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),L*0.96,'出手'),COLORFF00FF;DRAWTEXT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),H*1.02,'收手'),COLORFF0000;DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM>REF(KKM,1),30),L*0.98,'介入');DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM<REF(KKM,1),30),H*1.02,'风险较大');DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM<REF(KKM,1),30),H,'休息观望~'),COLORAA8800;DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM>REF(KKM,1),30),L,'有防御能力');。

通达信指标公式源码 轻松操盘 源码

通达信指标公式源码 轻松操盘 源码

量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AM OUNT,20)/HHV(C,20))*100),NODRAW,COLORYELLOW; N:=10;突破:REF(EMA(C,N),1),COLORMAGENTA,LINETHICK1; A1X:(EMA(C,5)-突破)/突破*100,NODRAW;距离:=(C-突破)/突破*100,NODRAW;出击:IF(A1X>=0,REF(EMA(C,N),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORMAGENT A,LINETHICK1;休假:IF(A1X<0,REF(EMA(C,N),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LI NETHICK1;STICKLINE(A1X>=0,出击,突破,0,-1)COLORMAGENTA;STICKLINE(A1X<0,休假,突破,0,-1)COLORGREEN;持币:IF(A1X<0,突破,DRAWNULL)COLORGREEN,LINETHICK1;DRAWTEXT(ISLASTBAR AND 出击,出击,' 出击'),COLORMAGENTA;DRAWTEXT(ISLASTBAR AND 休假,休假,' 休假'),COLORGREEN;短顶:HHV(H,20),COLORWHITE;短底:LLV(L,20),COLOR00FF00;长顶:HHV(H,60),COLORRED;长底:LLV(L,60),COLORYELLOW;DRAWKLINE(H,O,L,C);涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;MA5:=MA(C,5);MA18:=MA(CLOSE,18);MA13:=MA(C,13);A:= (3*C+L+O+H)/6;VAR1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14 *REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*RE F(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+R EF(A,20))/210;MTM:=C-REF(C,1);CB:=EMA(VAR1,13);DX:=100*EMA(EMA(MTM,6),6)/EM A(EMA(ABS(MTM),6),6);卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖=1,1),HIGH*1.01,'S'),COLORGREEN;买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.03,'B'),COLOR00DDDD;加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-0.03,'↖㈩'),COLORWHITE;跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(跟,LOW*0.999,'↖跟'),COLORRED;阳涨幅:=5;阳倍量:=2;单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00BBBB;STICKLINE(CURRBARSCOUNT<100 AND 单阳,O,C,0.8,0),COLOR00FFFF; 高不破价:=REF(C,BARSLAST(单阳));中不破价:=REF((C+L)/2,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND {(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))=低不破价)}(LLV(C,BARSLAST(单阳))>低不破价OR LLV(C,BARSLAST(单阳))=低不破价);STICKLINE(单阳不破,低不破价-低不破价*0.002,{低不破价}低不破价-低不破价*0.002,4.1,0),COLORRED;量:V,NODRAW;单阳量:REF(V,BARSLAST(单阳)),NODRAW;单阳后均量:SUM(V,BARSLAST(单阳)-1)/(BARSLAST(单阳)-1),NODRAW;单阳后缩量:单阳后均量<单阳量*0.75,NODRAW;单阳线体:=REF(C-O,BARSLAST(单阳)),NODRAW;小线体:=ABS(C-O)<单阳线体/2.5,NODRAW;小线体严:COUNT(小线体,BARSLAST(单阳)-1)>BARSLAST(单阳)-2,NODRAW;小线体松:COUNT(小线体,BARSLAST(单阳)-1)>BARSLAST(单阳)-3 AND C<REF(C,1)*1.03,NODRAW;两天:=LLV(C,BARSLAST(单阳))>低不破价OR LLV(C,BARSLAST(单阳))=低不破价;一般:=LLV(C,BARSLAST(单阳)-2)>低不破价OR LLV(C,BARSLAST(单阳)-2)=低不破价;一般选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天AND 一般,低不破价,低不破价,2,0),COLOR88FF00;较强:=LLV(C,BARSLAST(单阳)-2)>中不破价OR LLV(C,BARSLAST(单阳)-2)=中不破价;较强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天AND 较强,中不破价,中不破价,2,0),COLOR0088FF;最强:=LLV(C,BARSLAST(单阳)-2)>高不破价OR LLV(C,BARSLAST(单阳)-2)=高不破价;最强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天AND 最强,高不破价,高不破价,2,0),COLOR00FFFF;DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价-低不破价*0.02,'1'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价-低不破价*0.02,'2'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价-低不破价*0.02,'3'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价-低不破价*0.02,'4'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价-低不破价*0.02,'5'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价-低不破价*0.02,'6'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价-低不破价*0.02,'7'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价-低不破价*0.02,'8'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价-低不破价*0.02,'9'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价-低不破价*0.02,'10'),COLOR00BB00;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)/1.01,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=75{位置} 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),COLORFEFE00;DRAWTEXT(CURRBARSCOUNT=75{位置} AND (解盘16=1 OR 解盘18=1 OR 解盘20=1),IF(解盘18=1 OR 解盘20=1,KDAT*0.98,KDAT*0.96),解盘文字2),COLOR0000FF;。

【通达信】麟龙量能饱合度指标公式源码

【通达信】麟龙量能饱合度指标公式源码

【通达信】麟龙量能饱合度指标公式源码哪位老师能改成通达信的?input:N(20,1,100);饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100, 100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100),DOTLI NE,COLORred;STICKLINE(((CLOSE > 0) ANDBARSTATUS=2),0,100,19,1),colorFFFFFF;STICKLINE(((饱和度20) AND (饱和度40) AND BARSTATUS=2),1,( 饱和度),18,0),color0000FF;IF BARSTATUS=2 and (饱和度) THEN BEGIN DRAWTEXTREL(760,800,'量能饱和度:'+NUMTOSTRN(饱和度,0)),LINETHICK5,COLORred;end;{强势追踪}起点量≤5:STICKLINE(饱和度5 AND 饱和度=97 AND BARSTATUS=2,1,饱和度,8,0),COLORGREEN;K:=(DATE < 1341230);XD1:=INDEXO;XD2:=INDEXH;XD3:=INDEXL;XD4:=INDEXC;对应指数开盘:=INDEXO;盘中最高点位:=INDEXH;盘中最低点位:=INDEXL;收盘点位:=INDEXC;大盘资金增减:=(100 * ((INDEXV / REF(INDEXV,1)) - 1)); 大盘上涨家数:=INDEXADV;平盘家数:=DYNAINFO(68);大盘下跌家数:=INDEXDEC;昨收盘:=DYNAINFO(3);今开盘:=DYNAINFO(4);涨幅:=DYNAINFO(14)*100;JJ:=(((XD4 + XD2) + XD3) / 3);A:=EMA(JJ,10);B:=REF(A,1);买卖决策:=B;DRAWTEXTABS(10,10,'【大盘盘口动态观察】'),Color00FFFF;DRAWTEXTABS(10,25,'对应个股开盘:'+对应指数开盘+'点'),Color00FFFF;DRAWTEXTABS(10,40,'盘中最高点位:'+盘中最高点位+'点'),Color00FFFF;DRAWTEXTABS(10,55,'盘中最低点位:'+盘中最低点位+'点'),Color00FFFF;DRAWTEXTABS(10,70,'■大盘资金增减:'+NUMTOSTRN(大盘资金增减,0)+'%'),Color00FF00;DRAWTEXTABS(10,85,'大盘今日上涨:'+大盘上涨家数+'家'),Color00FFFF;DRAWTEXTABS(10,100,'大盘今日平盘:'+平盘家数+'家'),Color00FFFF;DRAWTEXTABS(10,115,'大盘今日下跌:'+NUMTOSTRN(大盘下跌家数,0)+'家'),Color00FFFF;买入委托成交:=ORDER(1);卖出委托成交:=ORDER(2);当日成交总量:=DYNAINFO(8);成交总金额:=DYNAINFO(10)/10000;主动卖盘:=DYNAINFO(22);主动买盘:=DYNAINFO(23);成交笔数:=TICKCOUNT;每笔手数:=DYNAINFO(53);DRAWTEXTABS(150,10,'【个股盘口成交量观察】'),ColorD3A9FF;DRAWTEXTABS(150,25,'日成交总量:'+NUMTOSTRN(当日成交总量,0)+'手'),ColorD3A9FF;DRAWTEXTABS(150,40,'日主动买入量:'+NUMTOSTRN(主动买盘,0)+'手'),ColorD3A9FF;DRAWTEXTABS(150,55,'日主动卖出量:'+NUMTOSTRN(主动卖盘,0)+'手'),ColorD3A9FF;DRAWTEXTABS(150,70,'■当前成交概况:'+NUMTOSTRN(成交笔数,0)+'笔'),Color00FF00;DRAWTEXTABS(150,85,'每笔成交:'+NUMTOSTRN(每笔手数,1)+'手'),ColorD3A9FF;DRAWTEXTABS(150,100,'买入下单委托:'+NUMTOSTRN(买入委托成交,0)+'单'),ColorD3A9FF;DRAWTEXTABS(150,115,'卖出下单委托:'+NUMTOSTRN(卖出委托成交,0)+'单'),ColorD3A9FF;{换手率--成交量--委卖委买量:综合分析}n1:=barslast(cross(c,MA(c,60)));n2:=barslast(cross(MA(c,60),c));强股排序:if(n1<N2,N1+1,0),PRECIS0,COLOR00FFFF,LINETHICK0; 日换手率:=DYNAINFO(37)*100;5日换手率:sum(100*v/capital,5),ColorFFFFFF,PRECIS0,LINETHICK0; 5日均量:DYNAINFO(38),ColorFFFFFF,PRECIS0,LINETHICK0;大单20万买入:DYNAINFO(94)*100,ColorFFFFFF,PRECIS0,LINETHICK0; 大单20万卖出:=DYNAINFO(97)*100;50万大单买入:BIGORDER(1,3)*100,ColorFFFFFF,PRECIS0,LINETHICK0; 卖出50万委托单:=BIGORDER(2,3)*100;建仓成本:=MAXCYC;压力位:=DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE2(37)))*1. 12;avgbpx:=DYNAINFO(87);avgopx:=DYNAINFO(88);tbqty:=DYNAINFO(89);toqty:=DYNAINFO(90);bq:=DYNAINFO(89)/capital;oq:=DYNAINFO(90)/capital;bm:=tbqty/((DYNAINFO(7)-avgbpx)*2/DYNAINFO(7)*100);om:=toqty/((avgopx-DYNAINFO(7))*2/DYNAINFO(7)*100);bd:=(DYNAINFO(7)-avgbpx)/(avgopx-avgbpx)*120;od:=(avgopx-DYNAINFO(7))/(avgopx-avgbpx)*120;gy:=max(bm,om);DRAWTEXTABS(290,10,'【换手率--成交量--委卖委买量:综合分析】'),ColorFFFF00;DRAWTEXTABS(290,25,'委卖→总量:'+str(toqty)+' 占流通盘比例:'+str(oq*100)+'%'+' 密度:'+str(INTPART(om))+'手价宽:'+str(max(0,avgopx*2-DYNAINFO(7)*2))+'元'+str(max(0,avgopx/DYNAINFO(7)*200-200))+'%'),ColorFFFF00,layer0;DRAWTEXTABS(290,40,'委买→总量:'+str(tbqty)+' 占流通盘比例:'+str(bq*100)+'%'+' 密度:'+str(INTPART(bm))+'手价宽:'+str(if(avgbpx=0,0,DYNAINFO(7)*2- avgbpx*2))+'元'+str(max(0,DYNAINFO(7)/avgbpx*200-200))+'%'),ColorFFFF00,layer0;DRAWTEXTABS(290,55,'委卖委买比:'+str((tbqty-toqty)/(tbqty+toqty)*100)+'%→'),layer0,Color0000FF;DRAWTEXTABS(290,70,'■个股对应大盘买卖决策点位:'+NUMTOSTRN(买卖决策,2)+'点'),Color00FF00;DRAWTEXTABS(290,115,'日换手率:'+NUMTOSTRN(日换手率,1)+'%'),ColorFFFF00;DRAWTEXTABS(290,85,'日成交总金额:'+NUMTOSTRN(成交总金额,0)+'万元'),ColorFFFF00;DRAWTEXTABS(445,85,'20万大单买入:'+NUMTOSTRN(大单20万买入,0)+'%'),ColorFFFF00;DRAWTEXTABS(550,85,'20万大单卖出:'+NUMTOSTRN(大单20万卖出,0)+'%'),ColorFFFF00;DRAWTEXTABS(445,100,'50万大单买入:'+NUMTOSTRN(50万大单买入,0)+'%'),ColorFFFF00;DRAWTEXTABS(550,100,'50万大单卖出:'+NUMTOSTRN(卖。

通达信分时量比公式源码

通达信分时量比公式源码

通达信分时量比公式源码一、概述本文档将介绍通达信分时量比公式的源码,通过该公式可以实现对分时量比指标的计算和分析。

分时量比是一种用来衡量买卖力量平衡的技术指标,通过观察分时量比的走势,投资者可以判断市场的买卖力量,辅助决策。

二、公式说明通达信分时量比公式的源码如下:```j av as cr ip t//定义变量v a rv ol=V OL();//获取当前成交量v a ra vg_v ol=M A(vol,5);//计算5日均成交量v a rv ma_v ol=M A(vol,10);//计算10日均成交量v a rr_v ol=v ol/a vg_v ol;//计算分时量比//绘制指标线P l ot(r_v ol,"分时量比",co lo rB lu e,0);P l ot(a vg_v ol,"5日均量",c ol or Re d,0);P l ot(v ma_v ol,"10日均量",co lo rG re e n,0);```三、代码解析以上源码中的变量含义和计算逻辑如下:-`vo l`:当前成交量-`av g_vo l`:5日均成交量,通过计算最近5个交易日的成交量平均值得到-`vm a_vo l`:10日均成交量,通过计算最近10个交易日的成交量平均值得到-`r_vo l`:分时量比,即当前成交量与5日均成交量之比代码中的`P lo t`函数用于绘制指标线,包括分时量比线、5日均量线和10日均量线,使用不同的颜色进行区分。

四、使用方法使用通达信分时量比公式源码可以进行以下操作:1.打开通达信软件,选择要进行分时量比分析的股票品种。

2.找到分时量比公式源码的编辑界面,将以上源码粘贴进去。

3.点击保存并应用,即可在分时图中看到绘制的分时量比指标线。

五、分析方法分时量比指标的分析方法如下:1.分时量比值大于1时,表示当前成交量高于5日均成交量,市场买盘力量较强。

麟龙指标通达信指标公式源码

麟龙指标通达信指标公式源码

今天继续发麟龙指标套三(继续说明一下,麟龙指标是我以前和谐的,跟现在的麟龙至尊版有所区别,我把源码也公布出来,大家能用则用。

)有的前面发的指标套TXT形式有参数设置,参数要设置好,不要一直问为什么指标不行,实在不懂就直接下载tne形式导入,我也不加密,一样的。

所发出来的这些指标都不加密给出源码,至于选股,你们可以根据自己不同的要求去写成选股公式,在通达信综合选股里也可以调用这些公式进行选股,没那么方便就是。

这些指标都是和谐麟龙至尊版指标,基本都是有未来函数,自己看着能用则用。

(系统指标又有几个没未来函数)想用这些指标的人可以上网查找一些麟龙特定战法的使用方法。

在我有时间的情况下,也可以跟大家讨论一下这些指标的使用方法。

麟龙撞击交易指标套撞击交易包括三个指标BOLL-M 布林线-传统版(系统)主图指标(这个指标是通达信系统自带指标)这里就不发出来,自己调用。

中期方向线(跟指标套一的中期方向线有点不一样)副图指标。

决策曲线副图指标另外加发一个麟龙特色主图指标特定均线主图。

特定均线麟龙特色指标EXP1:EMA(C,5),COLORWHITE;EXP2:EMA(C,8),COLORGREEN;EXP3:EMA(C,13),COLOR000599;EXP4:EMA(C,17),COLORYELLOW;EXP5:EMA(C,34),COLOR0000EE;EXP6:EMA(C,50),COLORMAGENTA;EXP7:EMA(C,365),COLORBLUE;STICKLINE(CLOSE>=O ,H,L-0.008,0,0),COLOR0030FF;STICKLINE(CLOSE>=O ,C,O,2.5,0),COLOR0030FF;STICKLINE(CLOSE>=O ,C,O,2,0),COLOR0030FF;STICKLINE(CLOSE>=O ,C,O,1,0),COLOR0030FF; STICKLINE(CLOSE>=O ,C,O,0,0),COLOR0030FF; STICKLINE(CLOSE<O ,L-0.008,H,0,0),COLORGREEN; STICKLINE(O>C ,C,O,2.5,0 ),COLORGREEN;STICKLINE(O>C ,C,O,2,0 ),COLORGREEN;STICKLINE(O>C ,C,O,1,0 ),COLORGREEN;STICKLINE(O>C,C,O,0,0) ,COLORGREEN;J:=CROSS(C,EXP1);J1:=CROSS(EXP1,C);中期方向线-麟龙特色指标时间:DATE+1900/00/00,NODRAW ,COLORWHITE;DIFF:=EMA(CLOSE,30)-EMA(CLOSE,120);DEA:=EMA(DIFF,12);A1:=DIFF>DEA;中期方向线:DIFF-DEA,LINETHICK0;DRAWBAND(中期方向线,RGB(160,0,0),0,RGB(0,130,0));MB:=EMA(中期方向线,20);超买线:MB+1.96*STD(中期方向线,9),COLORYELLOW;超卖线:MB-1.96*STD(中期方向线,9),COLORCYAN;决策曲线麟龙特色指标时间:DATE+1900/00/00,NODRAW ,COLORWHITE;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,2,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,2,IF(DEA>DIF,-1,0));{TRIX}TR2:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR2-REF(TR2,1))/REF(TR2,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)), 7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,1,IF(PDI<MDI AND ADX>MDI AND ADX>50,-1,0));{9}{RSI}LC:=REF(CLOSE,1);RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;{10}P08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));{10}{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));P09:=IF(CCI>180,1,IF(CCI<-180,-1,0));{12}{W%R}WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;P10:= IF(WR1>80,1,IF(WR1<20,-1,0));{13}{OSC}OSC:=100*(CLOSE-MA(CLOSE,20));P11:=IF(OSC>0,1,IF(OSC<0,-1,0));{14}{MTM}MOM:=CLOSE-REF(CLOSE,7);P12:=IF(MOM>0,1,IF(MOM<0,-1,0));{15}{DPO}DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);P13:=IF(DPO>0,1,IF(DPO<0,-1,0));{16}{布林线}MB:=MA(CLOSE,12);R:=(CLOSE-MB)*(CLOSE-MB);X1:=MA(R,12);X2:=SQRT(X1);D1:=1;UPPER:=MB+(D1*X2);LOWER:=MB-(D1*X2);P14:=IF(CLOSE>UPPER,1,IF(CLOSE<LOWER,-1,0));{18}{BRAR}BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)*100; AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;P15:=IF(BR>350 OR AR>180,1,IF(BR<45 OR AR<45,-1,0));{21}{VR}TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),14);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);VR:=0100*(TH*2+TQ)/(TL*2+TQ);P16:=IF(VR>350,1,IF(VR<45,-1,0));{24}{WVAD}WVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;P17:=IF(WVAD>0,1,IF(WVAD<0,-1,0));{25}{EMV}VOLUME:=MA(VOL,4)/VOL;MID1:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);EMV:=MA(MID1*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);P18:=IF(EMV>0,1,IF(EMV<0,-1,0));{26}{OBV}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);MAOBV:=EMA(OBV,24);P19:=IF(OBV>MAOBV,1,IF(OBV<MAOBV,-1,0));{27}{PVI}PVI:= PVI,COLORWHITE;MPVI:=EMA(PVI,24),COLORYELLOW;P20:=IF(PVI>MPVI,1,IF(PVI<MPVI,-1,0));{28}{NVI}NVI:=NVI,COLORWHITE;MNVI:=EMA(NVI,24),COLORYELLOW;P21:=IF(NVI>MNVI,1,IF(NVI<MNVI,-1,0));{30}{MASS}MASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);MA7:=MA(CLOSE,9);P22:=IF(MA7>REF(MA7,1) AND MASS>26.5,1,IF(MA7<REF(MA7,1)AND MASS<26.5,-1,0));{32}{VHF}NUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));DEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);VHF:=IF(DEN=0,0,NUM/DEN);VHF1:=EMA(VHF,240);P23:=IF(VHF>VHF1,1,IF(VHF<VHF1,-1,0));{33}{PUCU}PU:=MA(CLOSE,13);CU:=MA(VOL,13);PU1:=(PU-REF(PU,1))/REF(PU,1)*100;CU1:=(CU-REF(CU,1))/REF(CU,1)*100;逆时针曲线:=PU1+CU1;P24:=IF(逆时针曲线>REF(逆时针曲线,1),1,IF(逆时针曲线<REF(逆时针曲线,1),-1,0)); {ASI}LC2:=REF(CLOSE,1);AA:=ABS(HIGH-LC2);BB:=ABS(LOW-LC2);CC:=ABS(HIGH-REF(LOW,1));DD:=ABS(LC2-REF(OPEN,1));R2:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC ANDBB>AA,BB+AA/2+DD/4,CC+DD/4));X01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1));SI:=16*X01/R2*MAX(AA,BB);ASI:=SUM(SI,0),COLORWHITE;MASI:=MA(ASI,6),COLORYELLOW;P25:=IF(CLOSE<HHV(CLOSE,13) AND ASI=HHV(ASI,13),1,IF(CLOSE>LLV(CLOSE,13) AND ASI=LLV(ASI,13),-1,0));{BIAS}BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;P26:=IF(BIAS1>10,1,IF(BIAS1<-10,-1,0));{DKX}MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;MADKX:=MA(DKX,4);P27:=IF(DKX>MADKX,2,IF(DKX<MADKX,-1,0));{PLJJ}WY1001:=(2*CLOSE+HIGH+LOW)/4;WY1002:=EMA(WY1001,4);WY1003:=EMA(WY1002,4);WY1004:=EMA(WY1003,4);XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;PJGJ:=AMOUNT/VOL/100;SSRYDJX:=MA(PJGJ,13);SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=SSRCJE/SSRCJL/100;CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;XYSHSL:=EMA(VOL/CAPITAL*100,13);ZZX:=0;XYS1:=MA(XYS0,2);XYS2:=MA(XYS0,1);P28:=IF(XYS2>XYS1,1,IF(XYS2<XYS1,-1,0));JC:(48+P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P16 +P17+P18+P19+P20+P21+P22+P23+P24+P25+P26+P27+P28),COLORWHITE; MAJCQX:MA(JC,3),COLORYELLOW;BOLL:=MA(JC,20);UB:BOLL+2*STD(JC,20),COLORYELLOW;LB:BOLL-2*STD(JC,20),COLORGREEN;IF(JC<56,JC,JC),COLORWHITE,LINETHICK1;IF(JC>56,JC,JC),COLORRED,LINETHICK1;IF(JC<56,JC,56),COLORWHITE,LINETHICK1;IF(JC>56,56,56),COLORRED,LINETHICK1;STICKLINE(C>0,36,36,10,0),COLOR808000;STICKLINE(C>0,56,56,10,0),COLOR808000;STICKLINE(C>0,71,71,10,0),COLOR808000;STICKLINE(C>0,44,44,10,0),COLOR808000;。

通达信指标公式源码量价合一

通达信指标公式源码量价合一
分:=CONST(LLV(MACD,250));百:=CONST(HHV(MACD,250))-分;
C比:=(MACD-分)/百;
价柱:C比*基+基点,COLORSTICK;
DIF1:DIFL,COLORGREEN;
DEA1:DEAL,COLORMAGENTA;
分1:=CONST(LLV(DIF,250));百1:=CONST(HHV(DIF,250))-分1;
{攻击波}
HS:=V/CAPITAL*100;
十日换手:=SUM(HS,10)>15;
攻击波:=(DYNAINFO(7)-L>0.3 AND DYNAINFO(17)>3 AND HS>2 AND十日换手);
STICKLINE(攻击波,0,MACL/2,1,0),COLORMAGENTA;
强势出关:=COUNT("KDJ.J"<0,4)>=3 AND
C比1:=(DIF-分1)/百1;
价F:C比1*基+基点,COLORWHITE,LINETHICK1;
分2:=CONST(LLV(DEA,250));百2:=CONST(HHV(DEA,250))-分2;
C比2:=(DEA-分2)/百2;
价A:C比2*基+基点,COLORYELLOW,LINETHICK1;
DEAL:=EL)*2,COLORSTICK;
基点:=CONST(LLV(MACL,250));基:=CONST(HHV(MACL,250))-基点;
STICKLINE(MACL>=0,0,MACL,2,-1),COLORLIRED;
STICKLINE(MACL<=0,0,MACL,2,-1),COLORLIBLUE;
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档