资金成交量变化指标 是逃顶抄底好利器通达信指标公式源码

合集下载

通达信指标公式源码很实用的抄底逃顶指标

通达信指标公式源码很实用的抄底逃顶指标

通达信指标公式源码很实用的抄底逃顶指标这是一篇关于股票交易的文章,提供了一些实用的抄底逃顶指标。

以下是这些指标的具体内容:1.DRAWBAND指标:该指标由两条移动平均线组成,分别是60日和120日的收盘价移动平均线。

这两条线之间的区域被填充为红色。

另外,还有两条5日和10日的收盘价移动平均线,它们之间的区域被填充为绿色。

2.DRAWKLINE指标:该指标显示了股票的开盘价、最高价、最低价和收盘价。

这些数据可以帮助交易者了解股票的价格走势。

3.MA指标:该指标显示了不同时间段内的收盘价移动平均线。

具体来说,包括5日、10日、30日、60日、120日和240日的收盘价移动平均线。

这些线的颜色分别为白色、黄色、洋红色、绿色、浅洋红色和蓝色。

4.VOL指标:该指标显示了不同时间段内的成交量移动平均线。

具体来说,包括5日、10日和40日的成交量移动平均线。

这些线的颜色分别为白色、黄色和紫红色。

5.量托指标:该指标是一种量价分析指标,用于判断股票的买卖压力。

当5日成交量移动平均线大于等于40日成交量移动平均线,并且10日成交量移动平均线上穿40日成交量移动平均线,同时10日成交量移动平均线的前一天小于40日成交量移动平均线的前一天时,就会出现量托信号。

6.芙蓉出水指标:该指标用于判断股票的买入信号。

当60日收盘价移动平均线大于30日收盘价移动平均线,并且30日收盘价移动平均线等于10日收盘价移动平均线或者30日收盘价移动平均线大于10日收盘价移动平均线时,就会出现芙蓉出水信号。

同时,当股票的收盘价上穿60日收盘价移动平均线,并且成交量大于5日成交量移动平均线时,也会出现芙蓉出水信号。

7.ZJ和TM指标:这两个指标分别显示了资金和成交量的情况。

ZJ指标显示了资金的流入流出情况,TM指标显示了成交量的填充情况。

这些指标可以帮助交易者更好地了解股票的走势。

改写后的文章:根据一定的条件,我们可以判断出股市中的黄金柱和将军柱。

MACD逃顶抄底必备通达信指标公式源码

MACD逃顶抄底必备通达信指标公式源码

最有实战价值的macd指标结合kdj 。

在指标发出命令当日或者第二日操作,可以轻松实现逃顶抄底。

N1:=5;N2:=10;LC:=REF(CLOSE,1);A0:=(2*C+H+L)/4;均线:=MA(A0,3)>REF(MA(A0,3),1);安全线:2,COLORLIGRAY,POINTDOT,LINETHICK4;A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;D:MA(K,3),COLORFF0000,LINETHICK1;J:3*K-2*D,LINETHICK1,COLORF00FF0;DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50));VAR1:=C-REF(C,1);VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CR OSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00;BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) ANDCROSS(VAR2,MA(VAR2,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);底线:0,COLORFF00FF;顶线:10,COLORFF0000;STICKLINE(UP,0,0.2,3,0),COLOR0000FF;STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;STICKLINE(BT,0,3,2,0),COLOR000088;STICKLINE(BT,0,3,1,0),COLOR0000CC;STICKLINE(BT,0,3,0.22,0),COLOR0000FF;DRAWTEXT(BT,3,'短牛'),COLOR0000FF;{W }TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82; STICKLINE(TJ1,0,2,3,0),COLOR880088;STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(TJ2,0,1,5,0),COLOR008888;STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,10,9,5,0),COLOR008800;STICKLINE(ST,10,9,2,0),COLOR00AA00;STICKLINE(ST,10,9,1,0),COLOR00CC00;STICKLINE(ST,10,9,0.2,0),COLOR00FF00;DRAWTEXT(ST,9,'卖'),COLOR00FF00;DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:EMA(DIFF,9),COLORFFFF00;A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);DRAWTEXT(底背离,-0.6,'底背离'),COLORWHITE;A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);DRAWTEXT(顶背离,9,'顶背离'),COLORWHITE;RSV2:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*10;K周:=SMA(RSV2,15,1),COLORWHITE;D周:=SMA(K周,3,1),COLORYELLOW;J周:=3*K周-2*D周,COLORRED;DRAWBAND(J周,RGB(200,0,0),D周,RGB(0,150,150));DRAWICON(CROSS(K周, D周), D周-1,13);DRAWICON(CROSS(D周, K周), K周+1,14);。

RSI抄底逃顶指标通达信指标公式源码

RSI抄底逃顶指标通达信指标公式源码

RSI抄底逃顶指标通达信指标公式源码RSI(Relative Strength Index)抄底逃顶指标是一种基于股票价格的技术指标,用于判断股票的市场超买和超卖情况。

以下是通达信指标公式源码,以及对其进行详细解释。

在通达信软件中,RSI抄底逃顶指标的计算方法如下:1.初始化设置设置两个变量n和m,分别表示RSI的时间周期和观测周期。

其中,n通常取6,m通常取122.计算RSI指标对于每一个交易日i,根据以下公式计算RSI值:如果i=0,RSI[i]=0;如果i>0,RSI[i]=(n-1)/n*RSI[i-1]+1/n*ΔP[i],其中ΔP[i]表示当前价格与前一日价格的差值。

3.计算抄底和逃顶信号对于每一个交易日i,根据以下公式计算抄底和逃顶信号:如果i=0,信号[i]=0;如果i>0,如果RSI[i-1]<20且RSI[i]>=20,信号[i]=1;如果RSI[i-1]>80且RSI[i]<=80,信号[i]=-1;否则,信号[i]=0。

根据以上计算方法,以下是通达信指标公式源码:```_SECTION_BEGIN("RSI抄底逃顶指标");//初始化设置n=6;m=12;//计算RSI指标delta = C - Ref(C, -1);up = Sum(delta > 0 ? delta : 0, n);down = Sum(delta < 0 ? -delta : 0, n);rsi = up / (up + down) * 100;//计算抄底和逃顶信号signal = IIf(Cross(rsi, 20) && Ref(rsi, -1) < 20, 1,IIf(Cross(80, rsi) && Ref(rsi, -1) > 80, -1, 0));//绘制抄底和逃顶信号Plot(signal, "", colorRed, styleHistogram , styleNoLabel);_SECTION_END(;```以上代码中的变量n和m分别表示RSI的时间周期和观测周期。

通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。

通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。

VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);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);上升:=CROSS(VAR1,8);准备上:(建仓区OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE,M2)&&CLOSE>MA(CLOSE,L1); CCC:=BBB&&OPEN<MA(CLOSE,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);{好}通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))), ABS(REF(CLOSE,1)-LOW)),14);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;。

通达信公式源码指标软件抄底逃顶副图指标

通达信公式源码指标软件抄底逃顶副图指标

通达信抄底逃顶副图指标见红柱及笑脸强力买进,第一见哭脸要留意,第二次哭脸及MACD背离要离场。

卖在低位,买在高位。

操底逃顶N3:=BARSLAST(CROSS(C,MA(C,20)));N4:=BARSLAST(CROSS(MA(C,20),C));黑马:IF(N3<N4,N3+1,0);M:=60;N:=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),COLORMAGENTA;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*VAR7;VAR9:=IF(VAR8>100,100,VAR8);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);OK线:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK3;AA6:=SMA(AA3,21,8);买关注: STICKLINE(OK线-AA6<-65,0,7,2,1);DRAWICON(FILTER(J>REF(J,1)AND OK线>=REF(OK线,1)AND OK线<25 ,5),OK线,5);卖关注: STICKLINE(OK线-AA6>85,98,90,2,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND OK线<=REF(OK线,1)AND J>85 ,5),J,6); V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3); VB:=(V9-VA)/2;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);小心:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LI NETHICK2 , COLORYELLOW;买信: IF(CROSS(小心,10),35,0),STICK ,COLORRED ,LINETHICK4; DRAWTEXT(买信,35,'低') , COLORRED ;VAR199:=MA(CLOSE,80)-MA(CLOSE,10)/3;VVVV:=CLOSE<VAR199 AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3;底:(IF(VVVV,1,0))*15,STICK,COLORWHITE,LINETHICK4;DRAWTEXT(底,15,' ★底'),COLORWHITE;下单:IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100, 5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100, 5,1),3,1),10),20,0),STICK ,COLORGREEN, LINETHICK4;DRAWTEXT(下单,20,'买!'),COLORGREEN;卖出:IF(CROSS(84,3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1 00,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1 00,5,1),3,1)),60,0),STICK ,COLORCYAN ,LINETHICK1;DRAWTEXT(卖出,61,'顶!'),COLORCYAN ;AA:=LLV(LOW,36);BB:=HHV(HIGH,30);DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);底部:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);----。

通达信指标公式源码发一个可以检测顶底的好指标

通达信指标公式源码发一个可以检测顶底的好指标

通达信指标公式源码发一个可以检测顶底的好指标以下是一个可以检测顶底的指标的源码示例,逻辑基于股票的收盘价和成交量:```pythondef tops_bottoms(closes, volumes):#计算成交量的5日均线vma5 = sum(volumes[-5:]) / 5#计算收盘价的5日均线sma5 = sum(closes[-5:]) / 5#计算收盘价的10日均线sma10 = sum(closes[-10:]) / 10#计算收盘价的20日均线sma20 = sum(closes[-20:]) / 20#计算成交量的20日均线vma20 = sum(volumes[-20:]) / 20#获取最近3日的收盘价prev3_closes = closes[-3:]#获取最近3日的成交量prev3_volumes = volumes[-3:]#判断顶底的逻辑:#如果最近3日的收盘价都小于等于5日均线且成交量递增,则为底部信号if all(c <= sma5 for c in prev3_closes) and prev3_volumes[0] < prev3_volumes[1] < prev3_volumes[2]:return "底部信号"#如果最近3日的收盘价都大于等于5日均线且成交量递减elif all(c >= sma5 for c in prev3_closes) andprev3_volumes[0] > prev3_volumes[1] > prev3_volumes[2]: return "顶部信号"#没有信号return "无信号"```这个指标基于几个原则进行判断:当最近3日的收盘价都小于等于5日均线且成交量递增时,表示可能是底部信号;当最近3日的收盘价都大于等于5日均线且成交量递减时,表示可能是顶部信号。

通达信公式源码精准抄底逃顶

通达信公式源码精准抄底逃顶

通达信公式源码精准抄底逃顶抄底逃顶是投资者们经常在股市中使用的一种操作策略。

通达信是一种常用的股票分析软件,它提供了一系列的公式(也称为指标),用于帮助投资者分析和预测股票市场的走势。

在这篇文章中,我将为你介绍一些常用的通达信公式源码,以帮助你更加准确地抄底逃顶。

首先,我们先介绍一下通达信如何使用公式源码。

通达信的公式源码是一种股票分析算法,需要通过编程语言(如C语言)来实现。

这种源码通常包含一系列的计算公式和函数,用于根据特定的股票数据进行分析和预测。

为了使用这些公式源码,你需要了解一些基本的编程知识,并能够将这些源码嵌入到通达信软件中。

下面是一些常用的通达信公式源码,用于精准抄底逃顶:1.均线指标源码:均线指标是衡量股票价格趋势的重要指标之一,通过计算一段时间内的平均价格来反映股票走势的平均趋势。

均线指标在抄底逃顶中非常有用,因为它可以帮助投资者捕捉到股票价格的长期趋势。

常用的均线指标包括简单移动平均线(SMA)和指数移动平均线(EMA)等。

以下是一个简单移动平均线的通达信公式源码示例:```//计算简单移动平均线double sma(double close[], int length)double sum = 0.0;for (int i = 0; i < length; i++)sum += close[i];}return sum / length;```2. MACD指标源码:MACD指标是一个非常常用的趋势指标,它可以帮助投资者把握到股票价格的短期和长期趋势。

MACD指标主要由两条线组成,分别是DIF(Difference)线和DEA(Divergence Exponential Average)线,它们在图表中的交叉和背离可以用来识别抄底逃顶的时机。

以下是一个简单的MACD指标的通达信公式源码示例:```//计算MACD指标void macd(double close[], int length, double &dif, double&dea)double ema12 = ema(close, 12);double ema26 = ema(close, 26);dif = ema12 - ema26;dea = ema(dif, 9);```3.相对强弱指标源码:相对强弱指标(RSI)是一个广泛应用于股票分析的技术指标,它通过计算一段时间内的平均涨幅和平均跌幅来判断股票价格的强弱程度。

资金成交量变化指标 是逃顶抄底好利器通达信指标公式源码

资金成交量变化指标 是逃顶抄底好利器通达信指标公式源码

资金成交量变化指标资金成交量变化指标自己体会是逃顶抄底好利器预测量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,-1,-1),COLOR00C0C0;{成交量}量:VOL,VOLSTICK;{倍量}量差:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NO DRAW, COLORLIMAGENTA;STICKLINE(量差>=1,0,VOL,2,0),COLORMAGENTA;V12:=MA(V,12);STICKLINE(VOL<MA(VOL,5)/2 ANDV<V12/2,0,VOL,1,0),COLORBLUE;VOL5:MA(量,5),COLORWHITE;VOL35:MA(量,35),COLORYELLOW;超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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);大宗净流入:=(超B+大B)+(超S+大S);超大单:=(超B)+(超S);大单:=(大B)+(大S);中单:=(中B)+(中S);小单:=(小B)+(小S);大宗进:=(超B)+(大B);大宗出:=(超S)+(大S);非大宗进:=(中B)+(小B);非大宗出:=(中S)+(小S);资金流向:=(超B+大B+中B+小B)+(超S+大S+中S+小S);近5日流向:=SUM(资金流向,5);近10日流向:=SUM(资金流向,10);主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHICK2;主力买力度:=LARGEINTRDVOL*100/VOL;主力卖力度:=LARGEOUTTRDVOL*100/VOL;DRAWRECTREL(0,0,235,999,RGB(100,330,30));DRAWRECTREL(0,0,235,507,RGB(0,30,50));DRAWRECTREL(75,515,235,999,RGB(0,30,50));DRAWRECTREL(144,0,235,507,RGB(100,330,30));DRAWRECTREL(0,507,235,600,RGB(100,330,30));AA:=CONST(MAX(ABS(净流入),MAX(ABS(大宗净流入),MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出)))))))*3,NODRAW;DRAWRECTREL(5,CONST(830-(ABS(净流入)*500/AA)),35,945,IF(CONST(净流入)>0,RGB(250,150,10),RGB(0,100,100)));DRAWRECTREL(40,CONST(830-(ABS(大宗净流入)*500/AA)),70,945,IF(CONST(大宗净流入)>0,RGB(250,150,10),RGB(0,100,100)));DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.005,0.88,0,INTPART(净流入)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.041,0.88,0,INTPART(大宗净流入)),COLORWHITE;DRAWRECTREL(80,CONST(830-(ABS(大宗进)*500/AA)),115,945,IF(CONST(大宗进)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(117,CONST(830-(ABS(大宗出)*500/AA)),152,945,IF(CONST(大宗出)<0,RGB(0,50,0),RGB(0,50,0)));DRAWRECTREL(158,CONST(830-(ABS(非大宗进)*500/AA)),193,945,IF(CONST(非大宗进)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(195,CONST(830-(ABS(非大宗出)*500/AA)),230,945,IF(CONST(非大宗出)<0,RGB(0,50,0),RGB(0,50,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,1,0,'净流大宗流主力进出散户进出'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.082,0.88,0,INTPART(大宗进)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.12,0.88,0,INTPART(大宗出)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.161,0.88,0,INTPART(非大宗进)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.196,0.88,0,INTPART(非大宗出)),COLORWHITE;AAB:=CONST(MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单))))),NODRAW; DRAWRECTREL(5,CONST(830-(ABS(超大单)*500/AAB))/2,35,460,IF(CONST(超大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(40,CONST(830-(ABS(大单)*500/AAB))/2,70,460,IF(CONST(大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(110,CONST(830-(ABS(小单)*500/AAB))/2,140,460,IF(CONST(小单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超户大户中户散户5日流10日流'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超大单)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(大单)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(小单)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'【综合资金分析】(¥万元)'),COLORRED;AAC:=CONST(MAX(ABS(近5日流向),ABS(近10日流向))),NODRAW; DRAWRECTREL(149,CONST(830-(ABS(近5日流向)*500/AAC))/2,189,460,IF(CONST(近5日流向)>0,RGB(250,150,10),RGB(0,100,100)));DRAWRECTREL(191,CONST(830-(ABS(近10日流向)*500/AAC))/2,230,460,IF(CONST(近10日流向)>0,RGB(250,150,10),RGB(0,100,100)));DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.15,0.4,0,INTPART(近5日流向)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.19,0.4,0,INTPART(近10日流向)),COLORWHITE;DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0); DRAWRECTREL(144,0,235,40,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(144,45,235,85,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(144,90,235,130,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0))); DRAWTEXT_FIX(1,0.15,0,0,STRCAT('DDX:',VAR2STR(DDX,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.04,0,STRCAT('DDY:',VAR2STR(DDY,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.09,0,STRCAT('DDZ:',VAR2STR(DDZ,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.16,0.508,0,STRCAT('主力买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.16,0.553,0,STRCAT('主力卖力度:',CON2STR(主力卖力度,0))),COLORMAGENTA;日3大宗净流入:=REF(大宗净流入,1)+REF(大宗净流入,2)+REF(大宗净流入,3);日5大宗净流入:=REF(大宗净流入,1)+REF(大宗净流入,2)+REF(大宗净流入,3)+REF(大宗净流入,4)+REF(大宗净流入,5);DRAWTEXT_FIX(1,0,0.508,0,STRCAT('3日大宗流:',CON2STR(日3大宗净流入,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.553,0,STRCAT('5日大宗流:',CON2STR(日5大宗净流入,0))),COLORMAGENTA;。

通达信精品逃顶公式源码

通达信精品逃顶公式源码

通达信精品逃顶公式源码庄家最不愿见到的公式,本公式最大的优点就是逃顶100%不毕等第二天的信号出现,你就可以判断出来,而且,在买入加仓的信号也精确显示,对打击主力踪迹,可以说是庄影难遁!巨量有下部(负交易量)说名主力,一边拉升,一边出逃,黄色成交量,且中间为红色蜡烛芯的,说明主力控盘,出现兰色或粉红色的蜡烛色!情况就不妙!根据股票的趋势线做分析是否出逃!操作口诀:选好股,挑好庄;等大势,看起航。

跟上了,看着庄;他撤退,我清仓。

破趋势,急离场;等着跌,莫手痒。

白色烛,红芯长,庄家找底在振荡,俺也伺机建点仓。

黄色烛,红芯长;庄家进货强,俺也进货等起航。

粉色烛,红芯长,庄家高抛低吸操作忙,俺也去逐浪。

蓝色烛,红芯短,巨量绿尾长,庄家撤退,俺也清仓。

巨量绿,蓝烛长,趋势破,急离场;等着跌,莫手痒。

VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((VOL > 0),VOL,0,4,1),colorFFFFFF;STICKLINE((买卖差 > 0),0,买卖差,4,0),color0000FF;STICKLINE((买卖差 < 0),0,买卖差,2,0),LINETHICK3,color33FF33;量比1:=(VOL / MA(VOL,5));VAR10:=买盘;VAR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神 / VAR30);鬼比:=(鬼力 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND(CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,动神) + 动神) / 2);VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,动神) + 动神) / 2);VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,4,1),color0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,4,1),color00FF00;STICKLINE((鬼力 > 0),鬼力,0,4,0),colorFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),color00FFFF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,4,0),colorFF0000;洗盘:STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,4,0),colorFFFFFF;高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,4,0),colorFF00FF;相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);。

通达信抄底逃顶没错指标公式

通达信抄底逃顶没错指标公式

通达信抄底逃顶没错指标公式BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25; 底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3; IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3; DRAWTEXT(底背离,6,'底背离'),COLORA67D3D; DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1; 趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW;DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);快买:( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF;( IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:= EMA(C,30);MA55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MA X(MAX(MA5,MA13),MA30);L1:=MIN(MIN(MA5,MA13),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00;DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 ANDAA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13 ))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34 ))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,1 00,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN; CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN; DRAWTEXT(CROSS(80,RSI),88,'逃顶 '),COLORGREEN;。

通达信指标公式源码 macd副图指标,逃顶抄底,买卖利器

通达信指标公式源码 macd副图指标,逃顶抄底,买卖利器

RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);DEA1:=EMA(DIFF,9);MACD1:=2*(DIFF-DEA1),COLORSTICK,LINETHICK2;趋势:=MA(MACD,1);DRAWICON(MACD1>REF(MACD1,1) AND 趋势>0 ,趋势,1);低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3*K-2*D);DRAWTEXT(二次金叉,DEA*1,'低二叉'),COLORYELLOW;周DIF:="MACD.DIF#WEEK"(12,26,9);周DEA:="MACD.DEA#WEEK"(12,26,9);周MACD:="MACD.MACD#WEEK"(12,26,9);DIF周金叉:=CROSS(周DIF,周DEA);DRAWTEXT(DIF周金叉,0,'周叉'),COLORYELLOW;DRAWTEXT(CROSS(周DEA,周DIF),0,'周死'),COLORGREEN;MACD周金叉:=CROSS(周MACD,周DIF) AND 周MACD>=(0-0.05) AND 周MACD<=0.02; VARR:=EMA(EMA(CLOSE,13),13);控盘:=(VARR-REF(VARR,1))/REF(VARR,1)*1000;A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;刘:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;剑:=EMA(刘,M1);BTJ11:=(C-JJ)/JJ<-0.03;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ3:=CROSS(刘,剑) AND 刘<-0.3;BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:=FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,-0.2,'★有庄'),COLORYELLOW;DRAWTEXT(CROSS(J,-3),DIF,'出击'),COLORWHITE;A1:=BARSLAST(REF(CROSS(EMA(CLOSE,12)-EMA(CLOSE,26),EMA(EMA(CLOSE,12)-EMA( CLOSE,26),9)),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND EMA(CLOSE,12)-EMA(CLOSE,26)>REF(EMA(CLOSE,12)-EMA(CLOSE,26),A1+1) AND CROSS(EMA(CLOSE,12)-EMA(CLOSE,26),EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9));底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORMAGENTA,LINETHICK2;A2:=BARSLAST(REF(CROSS(EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9),EMA(CLOSE,12)-E MA(CLOSE,26)),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(EMA(CLOSE,12)-EMA(CLOSE,26),A2+1)>EMA(CLOSE,12)-EMA(CLOSE,26) AND CROSS(EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9),EMA(CLOSE,12)-EMA(CLOSE,26));顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;。

抄底逃顶 趋势顶底通达信指标公式源码

抄底逃顶 趋势顶底通达信指标公式源码

80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;{50,COLORRED;FILLRGN(1,20,80),COLOR222222;FILLRGN(1,90,100),COLOR000068;FILLRGN(1,79,90),COLOR663366;FILLRGN(1,10,20),COLOR666600;FILLRGN(1, 0,10),COLOR663300;}A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;{见顶:(长期线>85 OR REF(长期线,1)>85 ) AND (CROSS(中期线,短期线) OR CROSS(REF(中期线,1),REF(短期线,1)) )AND CROSS(长期线,短期线);}见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线) ;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);{DRAWICON( 见顶, 108, 2 );}底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 );STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;。

大盘逃顶主图源码通达信指标公式源码

大盘逃顶主图源码通达信指标公式源码

此超好用,精准,无未来,绝不漂移,是判断趋势的绝佳好指标,一直在使用X_1:=LLV(LOW,9);X_2:=LLV(LOW,14);X_3:=LLV(LOW,19);X_4:=LLV(LOW,29);X_5:=LLV(LOW,39);X_6:=LLV(LOW,59);X_7:=LLV(LOW,99);X_8:=LLV(LOW,119);X_9:=LLV(LOW,199);X_10:=REF(BARSLAST(LOW=X_1),1)+1;X_11:=REF(BARSLAST(LOW=X_2),1)+1;X_12:=REF(BARSLAST(LOW=X_3),1)+1;X_13:=REF(BARSLAST(LOW=X_4),1)+1;X_14:=REF(BARSLAST(LOW=X_5),1)+1;X_15:=REF(BARSLAST(LOW=X_6),1)+1;X_16:=REF(BARSLAST(LOW=X_7),1)+1;X_17:=REF(BARSLAST(LOW=X_8),1)+1;X_18:=REF(BARSLAST(LOW=X_9),1)+1;X_19:=LOW<REF(LOW,X_10) AND MACD.DIF>REF(MACD.DIF,X_10);X_20:=LOW<REF(LOW,X_11) AND MACD.DIF>REF(MACD.DIF,X_11);X_21:=LOW<REF(LOW,X_12) AND MACD.DIF>REF(MACD.DIF,X_12);X_22:=LOW<REF(LOW,X_13) AND MACD.DIF>REF(MACD.DIF,X_13);X_23:=LOW<REF(LOW,X_14) AND MACD.DIF>REF(MACD.DIF,X_14);X_24:=LOW<REF(LOW,X_15) AND MACD.DIF>REF(MACD.DIF,X_15);X_25:=LOW<REF(LOW,X_16) AND MACD.DIF>REF(MACD.DIF,X_16);X_26:=LOW<REF(LOW,X_17) AND MACD.DIF>REF(MACD.DIF,X_17);X_27:=LOW<REF(LOW,X_18) AND MACD.DIF>REF(MACD.DIF,X_18);X_28:=X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24 OR X_25 OR X_26 OR X_27; X_29:=CROSS(MACD.DIF,MACD.DEA) AND COUNT(X_28,10)>=1;X_30:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1))+1;X_31:=CROSS(MACD.DIF,MACD.DEA) AND MACD.DIF>REF(MACD.DIF,X_30) AND LOW<REF(LOW,X_30);X_32:=EMA(CLOSE,12)-EMA(CLOSE,26);X_33:=EMA(X_32,9);X_34:=2*(X_32-X_33);X_35:=BARSLAST(REF(X_34,1)<0 AND X_34>0);X_36:=LLVBARS(X_34,X_35+18);X_37:=IF(X_36>X_35,REF(X_34,X_36),0);X_38:=LLVBARS(X_32,X_35+18);X_39:=IF(X_38>X_35,REF(X_32,X_38),0);X_40:=X_34<0 AND X_34>X_37 AND X_32<0 AND X_32>X_39 AND CLOSE=LLV(CLOSE,X_35+18) AND X_37<0 AND X_39<0;X_41:=REF(X_40,1)=1 AND X_34>REF(X_34,1) AND X_35>=10;X_42:=X_29 OR X_31 OR X_41 AND NOT(EVERY(ABS(MACD.DIF-MACD.DEA)>0.1,3));X_43:=1;X_44:=MA(CLOSE,13);X_45:=100-ABS((CLOSE-X_44)/X_44*100);X_46:=LLV(LOW,75);X_47:=HHV(HIGH,75);X_48:=(X_47-X_46)/100;X_49:=SMA((CLOSE-X_46)/X_48,20,1);X_50:=SMA((OPEN-X_46)/X_48,20,1);X_51:=3*X_49-2*SMA(X_49,15,1);X_52:=3*X_50-2*SMA(X_50,15,1);X_53:=100-X_52;X_54:=(100-X_51)*X_43;X_55:=X_54>X_45;X_56:=REF(LOW,1)*0.9;X_57:=LOW*0.9;X_58:=EMA(X_57,30);X_59:=CLOSE-REF(CLOSE,1);X_60:=MAX(X_59,0);X_61:=ABS(X_59);X_62:=SMA(X_60,7,1)/SMA(X_61,7,1)*100;X_63:=SMA(X_60,13,1)/SMA(X_61,13,1)*100;X_64:=BARSCOUNT(CLOSE);X_65:=SMA(MAX(X_59,0),6,1)/SMA(ABS(X_59),6,1)*100;X_66:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;X_67:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;X_68:=SMA((SMA(X_67,4,1)-50)*2,3,1);X_69:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;X_70:=SMA(X_69,4,1);X_71:=SMA(X_70,3,1);X_72:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;X_73:=X_65<=25 AND X_66<(-95) AND X_72>20 AND X_68<(-30) AND X_71<30 AND X_58-CLOSE>=(-0.25) AND X_62<22 AND X_63<28 AND X_64>50;X_74:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));X_75:=VOL;X_76:=IF(CLOSE>OPEN,ABS(X_74*(HIGH-LOW)),IF(CLOSE<OPEN,ABS(X_74*(HIGH-OP EN+(CLOSE-LOW))),ABS(VOL/2)));X_77:=IF(CLOSE>OPEN,ABS(0-X_74*(HIGH-CLOSE+(OPEN-LOW))),IF(CLOSE<OPEN,AB S(0-X_74*(HIGH-LOW)),ABS(0-VOL/2)));X_78:=X_73 AND X_76>X_77;X_79:=BARSLAST(X_73)>=1 AND CLOSE>REF(CLOSE,BARSLAST(X_73))*1.01 AND COUNT(X_73,2)=1;X_80:=EMA(CLOSE,12)-EMA(CLOSE,26);X_81:=EMA(X_80,9);X_82:=2*(X_80-X_81);X_83:=BARSLAST(REF(X_82,1)<0 AND X_82>0);X_84:=LLVBARS(X_82,X_83+20);X_85:=IF(X_84>X_83,REF(X_82,X_84),0);X_86:=LLVBARS(X_80,X_83+20);X_87:=IF(X_86>X_83,REF(X_80,X_86),0);X_88:=X_82<0 AND X_82>X_85 AND X_80<0 AND X_80>X_87 AND CLOSE=LLV(CLOSE,X_83+20) AND X_85<0 AND X_87<0;X_89:=REF(X_88,1)=1 AND X_82>REF(X_82,1);X_90:=EXIST(CLOSE/REF(CLOSE,1)>1.055,60);X_91:=X_89 AND X_90;X_92:=X_78 OR X_79 OR X_91;X_93:=HHV(HIGH,9);X_94:=HHV(HIGH,14);X_95:=HHV(HIGH,19);X_96:=HHV(HIGH,29);X_97:=HHV(HIGH,39);X_98:=HHV(HIGH,59);X_99:=HHV(HIGH,99);X_100:=HHV(HIGH,119);X_101:=HHV(HIGH,199);X_102:=REF(BARSLAST(HIGH=X_93),1)+1;X_103:=REF(BARSLAST(HIGH=X_94),1)+1;X_104:=REF(BARSLAST(HIGH=X_95),1)+1;X_105:=REF(BARSLAST(HIGH=X_96),1)+1;X_106:=REF(BARSLAST(HIGH=X_97),1)+1;X_107:=REF(BARSLAST(HIGH=X_98),1)+1;X_108:=REF(BARSLAST(HIGH=X_99),1)+1;X_109:=REF(BARSLAST(HIGH=X_100),1)+1;X_110:=REF(BARSLAST(HIGH=X_101),1)+1;X_111:=HIGH>REF(HIGH,X_102) AND MACD.DIF<REF(MACD.DIF,X_102);X_112:=HIGH>REF(HIGH,X_103) AND MACD.DIF<REF(MACD.DIF,X_103);X_113:=HIGH>REF(HIGH,X_104) AND MACD.DIF<REF(MACD.DIF,X_104);X_114:=HIGH>REF(HIGH,X_105) AND MACD.DIF<REF(MACD.DIF,X_105);X_115:=HIGH>REF(HIGH,X_106) AND MACD.DIF<REF(MACD.DIF,X_106);X_116:=HIGH>REF(HIGH,X_107) AND MACD.DIF<REF(MACD.DIF,X_107);X_117:=HIGH>REF(HIGH,X_108) AND MACD.DIF<REF(MACD.DIF,X_108);X_118:=HIGH>REF(HIGH,X_109) AND MACD.DIF<REF(MACD.DIF,X_109);X_119:=HIGH>REF(HIGH,X_110) AND MACD.DIF<REF(MACD.DIF,X_110);X_120:=X_111 OR X_112 OR X_113 OR X_114 OR X_115 OR X_116 OR X_117 OR X_118 OR X_119;X_121:=CROSS(MACD.DEA,MACD.DIF);X_122:=BARSLAST(REF(X_121,1))+1;X_123:=MACD.DIF<REF(MACD.DIF,X_122);X_124:=HIGH>REF(HIGH,X_122);X_125:=X_121 AND X_123 AND X_124;X_126:=X_121 AND COUNT(X_120,10)>=1;X_127:=X_125 OR X_126;X_128:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;X_129:=SMA(X_128,3,1);X_130:=SMA(X_129,3,1);X_131:=3*X_129-2*X_130;X_132:=CROSS(X_130,X_129);X_133:=BARSLAST(REF(X_132,1))+1;X_134:=X_132 AND X_133>3 AND HIGH>REF(HIGH,X_133) AND REF(X_129,1)<REF(X_129,X_133+1);DRAWICON(X_42,LOW*0.97,23);DRAWICON(X_92,LOW*0.97,1);DRAWICON(X_127,HIGH*1.02,15);X_135:=FILTER(EVERY(CLOSE>REF(CLOSE,4),9),9);JZ:DRAWICON(X_135,HIGH*1.02,39);DRAWICON(X_134,HIGH*1.02,2);X_136:=X_127 AND COUNT(JZ,5)>0;X_137:=X_127 AND COUNT(X_134,5)>0;X_138:=X_136 OR X_137;DRAWICON(X_138,HIGH*1.04,15);MA1:MA(CLOSE,20),COLORGREEN;MA2:MA(CLOSE,55),COLORWHITE;IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORRED;。

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

资金成交量变化指标资金成交量变化指标自己体会是逃顶抄底好利器预测量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,-1,-1),COLOR00C0C0;{成交量}量:VOL,VOLSTICK;{倍量}量差:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NO DRAW, COLORLIMAGENTA;STICKLINE(量差>=1,0,VOL,2,0),COLORMAGENTA;V12:=MA(V,12);STICKLINE(VOL<MA(VOL,5)/2 ANDV<V12/2,0,VOL,1,0),COLORBLUE;VOL5:MA(量,5),COLORWHITE;VOL35:MA(量,35),COLORYELLOW;超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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 净流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S);大宗净流入:=(超B+大B)+(超S+大S);超大单:=(超B)+(超S);大单:=(大B)+(大S);中单:=(中B)+(中S);小单:=(小B)+(小S);大宗进:=(超B)+(大B);大宗出:=(超S)+(大S);非大宗进:=(中B)+(小B);非大宗出:=(中S)+(小S);资金流向:=(超B+大B+中B+小B)+(超S+大S+中S+小S);近5日流向:=SUM(资金流向,5);近10日流向:=SUM(资金流向,10);主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHICK2;主力买力度:=LARGEINTRDVOL*100/VOL;主力卖力度:=LARGEOUTTRDVOL*100/VOL;DRAWRECTREL(0,0,235,999,RGB(100,330,30));DRAWRECTREL(0,0,235,507,RGB(0,30,50));DRAWRECTREL(75,515,235,999,RGB(0,30,50));DRAWRECTREL(144,0,235,507,RGB(100,330,30));DRAWRECTREL(0,507,235,600,RGB(100,330,30));AA:=CONST(MAX(ABS(净流入),MAX(ABS(大宗净流入),MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出)))))))*3,NODRAW;DRAWRECTREL(5,CONST(830-(ABS(净流入)*500/AA)),35,945,IF(CONST(净流入)>0,RGB(250,150,10),RGB(0,100,100)));DRAWRECTREL(40,CONST(830-(ABS(大宗净流入)*500/AA)),70,945,IF(CONST(大宗净流入)>0,RGB(250,150,10),RGB(0,100,100)));DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.005,0.88,0,INTPART(净流入)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.041,0.88,0,INTPART(大宗净流入)),COLORWHITE;DRAWRECTREL(80,CONST(830-(ABS(大宗进)*500/AA)),115,945,IF(CONST(大宗进)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(117,CONST(830-(ABS(大宗出)*500/AA)),152,945,IF(CONST(大宗出)<0,RGB(0,50,0),RGB(0,50,0)));DRAWRECTREL(158,CONST(830-(ABS(非大宗进)*500/AA)),193,945,IF(CONST(非大宗进)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(195,CONST(830-(ABS(非大宗出)*500/AA)),230,945,IF(CONST(非大宗出)<0,RGB(0,50,0),RGB(0,50,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,1,0,'净流大宗流主力进出散户进出'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.082,0.88,0,INTPART(大宗进)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.12,0.88,0,INTPART(大宗出)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.161,0.88,0,INTPART(非大宗进)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.196,0.88,0,INTPART(非大宗出)),COLORWHITE;AAB:=CONST(MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单))))),NODRAW; DRAWRECTREL(5,CONST(830-(ABS(超大单)*500/AAB))/2,35,460,IF(CONST(超大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(40,CONST(830-(ABS(大单)*500/AAB))/2,70,460,IF(CONST(大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(110,CONST(830-(ABS(小单)*500/AAB))/2,140,460,IF(CONST(小单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超户大户中户散户5日流10日流'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超大单)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(大单)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(小单)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'【综合资金分析】(¥万元)'),COLORRED;AAC:=CONST(MAX(ABS(近5日流向),ABS(近10日流向))),NODRAW; DRAWRECTREL(149,CONST(830-(ABS(近5日流向)*500/AAC))/2,189,460,IF(CONST(近5日流向)>0,RGB(250,150,10),RGB(0,100,100)));DRAWRECTREL(191,CONST(830-(ABS(近10日流向)*500/AAC))/2,230,460,IF(CONST(近10日流向)>0,RGB(250,150,10),RGB(0,100,100)));DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.15,0.4,0,INTPART(近5日流向)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.19,0.4,0,INTPART(近10日流向)),COLORWHITE;DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0); DRAWRECTREL(144,0,235,40,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(144,45,235,85,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0))); DRAWRECTREL(144,90,235,130,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0))); DRAWTEXT_FIX(1,0.15,0,0,STRCAT('DDX:',VAR2STR(DDX,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.04,0,STRCAT('DDY:',VAR2STR(DDY,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.09,0,STRCAT('DDZ:',VAR2STR(DDZ,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.16,0.508,0,STRCAT('主力买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.16,0.553,0,STRCAT('主力卖力度:',CON2STR(主力卖力度,0))),COLORMAGENTA;日3大宗净流入:=REF(大宗净流入,1)+REF(大宗净流入,2)+REF(大宗净流入,3);日5大宗净流入:=REF(大宗净流入,1)+REF(大宗净流入,2)+REF(大宗净流入,3)+REF(大宗净流入,4)+REF(大宗净流入,5);DRAWTEXT_FIX(1,0,0.508,0,STRCAT('3日大宗流:',CON2STR(日3大宗净流入,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.553,0,STRCAT('5日大宗流:',CON2STR(日5大宗净流入,0))),COLORMAGENTA;。

相关文档
最新文档