通达信改良主力追踪指标公式(超准确)
主力行为跟踪——筹码监控通达信指标公式源码
主力行为跟踪——筹码监控通达信指标公式源码以下是主力行为跟踪,筹码监控通达信指标的公式源码:```python#实时计算总成交额、主力买入额、主力卖出额、散户买入额、散户卖出额等指标#计算总成交额def volume(trade_data):return trade_data['volume']#计算主力买入额def main_buy(trade_data):return trade_data['main_buy']#计算主力卖出额def main_sell(trade_data):return trade_data['main_sell']#计算散户买入额def retail_buy(trade_data):return trade_data['retail_buy']#计算散户卖出额def retail_sell(trade_data):return trade_data['retail_sell']#计算主力净买入额def net_main_buy(trade_data):return trade_data['main_buy'] - trade_data['main_sell']#计算散户净买入额def net_retail_buy(trade_data):return trade_data['retail_buy'] - trade_data['retail_sell'] #计算主力买入额占比def main_buy_ratio(trade_data):return trade_data['main_buy'] / trade_data['volume']#计算主力卖出额占比def main_sell_ratio(trade_data):return trade_data['main_sell'] / trade_data['volume']#计算散户买入额占比def retail_buy_ratio(trade_data):return trade_data['retail_buy'] / trade_data['volume']#计算散户卖出额占比def retail_sell_ratio(trade_data):return trade_data['retail_sell'] / trade_data['volume']```上述源码中,`trade_data`代表交易数据,可以是一段时间内的交易数据,也可以是实时的交易数据。
抓住主力动向通达信指标公式源码
抓住主力动向通达信指标公式源码1.成交量变动率(VR):通达信指标公式:VR:=(AVS+V)/E/100;说明:其中AVS为前N日上涨成交量之和,V为当日上涨成交量,E 为前N日下跌成交量之和。
2.相对强弱指标(RSI):通达信指标公式:LC:=(1+C/REF(C,1))*LC[1]HC:=(1+C/REF(C,1))*HC[1]RSI:=(MA(LC,N1)-MA(HC,N1))/(MA(HC,N1))*100;说明:其中LC为前一日的收盘价,HC为前一日的最高价,N1为计算RSI的天数。
3.异同移动平均线(MACD):通达信指标公式:DIFF:=(EMA(C,SHORT)-EMA(C,LONG));DEA:=EMA(DIFF,M);MACD:=(DIFF-DEA)*2;说明:其中EMA为指数移动平均线函数,C为收盘价,SHORT为短期均线参数,LONG为长期均线参数,M为平均线参数。
4.动力指标(DMI):通达信指标公式:MTR:=MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW));HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SUM(IF(HD>0&&HD>LD,HD,0),N);DMM:=SUM(IF(LD>0&&LD>HD,LD,0),N);PDI:IF(DMP+DMM>0,DMP/(DMP+DMM)*100,0);MDI:IF(DMP+DMM>0,DMM/(DMP+DMM)*100,0);DX:IF(MDI+PDI>0,ABS((MDI-PDI)/(MDI+PDI))*100,0);ADX:=MA(DX,M);说明:其中MTR为真实波动幅度,HIGH为最高价,LOW为最低价,CLOSE为收盘价,REF为取前一日的数据,HD为高点移动平均,LD为低点移动平均,DMP为正动向指标,DMM为负动向指标,PDI为上升动向值,MDI为下降动向值,DX为动向指数,ADX为平均动向指数。
通达信看清主力资金指标公式
通达信看清主力资金指标公式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(ZSHTL90);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 ANDZSHTL75,ZZLKP,0,3,0),COLORFFFFFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLO RRED;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,1 5))*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),COLOR00009 9;STICKLINE(TGLXS>0,150,150+TGLXS,2,0),COLOR0000A A;STICKLINE(TGLXS>0,150,150+TGLXS,1.5,0),COLOR0000 BB;STICKLINE(TGLXS>0,150,150+TGLXS,1.0,0),COLOR0000 DD;STICKLINE(TGLXS>0,150,150+TGLXS,0.5,0),COLOR0000F F;STICKLINE(TGLXS<0,150,150+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,150,150+TGLXS,2.5,0),COLOR00AA 00;STICKLINE(TGLXS=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 AND100+TGLXS=REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0),CO LORYELLOW;STICKLINE(TGLXS=TYCFX AND100+REF(TGLXS,1)REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZL50 AND TFXXS=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS100 );T11:=CONST(TFXXS>50 AND TFXXSREF(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) ANDZSHTL>ZZLKP AND ZCMZL>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,'☆特别信号提示:铸顶风险区'),COLORCYAN;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;。
主力追踪指标公式
主力追踪指标公式
主力追踪指标公式是一个用于分析股票市场中主力资金动向的指标,以下是一个常见的指标公式:
1、指标计算公式:
(CLOSE - MA(CLOSE,m)) / MA(CLOSE,m) n)
其中,CLOSE表示当天股票的收盘价,m表示平滑天数,n表示放大倍数。
2、指标计算过程:
(1)首先计算当天股票收盘价与m天移动平均线的差值,即CLOSE - MA(CLOSE,m)。
(2)然后将差值除以m天移动平均线,即MA(CLOSE,m),得到一个比例。
(3)最后将比例乘以n,得到最终的主力追踪指标值。
3、指标应用:
主力追踪指标可以帮助投资者分析股票市场中主力资金的动向。
一般来说,指标值为正数表示主力资金在流入,指标值为负数表示主力资金在流出。
投资者可以根据指标值的大小和变化趋势来判断主力
资金的流向和力度,从而制定相应的投资策略。
需要注意的是,主力追踪指标只是一种辅助分析工具,投资者还需要结合其他指标和分析方法来判断股票市场的走势和投资风险。
指标的计算和应用也需要一定的专业知识和经验,建议投资者在使用前充分了解其含义和特点。
通达信指标公式源码跟踪主力指标公式
通达信跟踪主力指标公式
VAR1:=(CLOSE+LOW+HIGH)/3;
VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0 );
VAR3:=EMA(VAR2,1);
短线:VAR3;
中线:MA(VAR3,12);
长线:MA(VAR3,26);
短线为短期主力运作轨迹,中线为中期主力运作轨迹,长线为长期主力运作轨迹。
1、主力进出指标的白线向上突破黄线、紫线且三线向上发散,表示主力有效控盘,可逢底介入,持股待涨。
2、主力进出指标的白线上涨过快远离黄、紫线,出现较大乖离,表示短线获利筹码较多,宜注意控制风险,可适当卖出。
3、当白线回落至黄、紫线处受支撑时,而黄紫线发散向上,表示上升趋势未改,前期股价回落仅是途中的回调,可适量跟进。
4、主力进出三线“死亡交叉”,盘口呈空头排列,宜尽快出局。
5、主力进出三线相近并平行向下时,表明主力尚未进场或正在出货。
通达信改良主力追踪指标公式
通达信改良主力追踪指标公式通达信是一款国内比较常用的股票分析软件,其中提供了许多技术指标来辅助投资者分析股票走势。
主力追踪指标是一种常用的技术指标之一,用于判断主力资金的流入和流出情况,进而研判股票的走势。
传统的主力追踪指标通常包括主力资金流入指标、主力资金流出指标和主力资金净流入指标。
主力资金流入指标用于衡量主力资金的买入压力,主力资金流出指标用于衡量主力资金的卖出压力,主力资金净流入指标则用于判定主力资金的净流向情况。
改良主力追踪指标的公式相较于传统的主力追踪指标略有不同。
改良的主力追踪指标公式如下:主力资金流入指标(MFI)=(股价-最低价)/(最高价-最低价)×成交量主力资金流出指标(MFO)=(最高价-股价)/(最高价-最低价)×成交量主力资金净流入指标(NFI)=MFI-MFO在这个公式中,股价代表的是当前股价,最低价和最高价分别是一段时间内的最低价和最高价,成交量代表的是一段时间内的成交量。
改良主力追踪指标相较于传统的主力追踪指标主要在计算主力资金流入指标和主力资金流出指标时引入了最高价和最低价的概念。
传统的主力资金流入指标和主力资金流出指标仅仅考虑了股价和成交量之间的关系,而改良主力追踪指标引入了最高价和最低价,可以更全面地判断主力资金的买入和卖出压力。
改良主力追踪指标还引入了主力资金净流入指标,通过比较主力资金流入和流出的情况,可以更准确地判断主力资金的净流向情况。
如果主力资金流入大于主力资金流出,说明主力资金存在净流入的情况,表明主力资金对于该股票持有乐观态度,有可能会继续推高股价;相反,如果主力资金流出大于主力资金流入,说明主力资金存在净流出的情况,表明主力资金对于该股票持有悲观态度,股价可能会下跌。
综上所述,改良的主力追踪指标通过引入最高价和最低价,以及计算主力资金净流入指标,可以更准确地判断主力资金的流入和流出情况。
投资者可以根据该指标对股票走势进行分析,作出更明智的投资决策。
通达信改良主力追踪指标公式(超准确)
通达信改良主力追踪指标公式(超准确)通达信改良主力追踪指标公式V1:=(C*3+H+L)/5*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*;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;0;主力动向:EMA(V4,2),COLORRED;机构动向:EMA(VB,2),COLORMAGENTA;(SLOPE(主力动向,2)>0 AND SLOPE(机构动向,2)>0,主力动向),COLORRED,LINETHICK4; (SLOPE(主力动向,2)<0,主力动向),COLORGREEN,LINETHICK3;(SLOPE(机构动向,2)>0 AND SLOPE(主力动向,2)>0,机构动向),COLORMAGENTA,LINETHICK4; (SLOPE(机构动向,2)<0,机构动向),COLORWHITE,LINETHICK2;ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*-WINNER(CLOSE*)*80,3);ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,89);ZJLRQD:=ZZLKP-ZZLJJ;AA:=EMA(ZJLRQD,1);BB:=EMA(AA,5);CC:=AA-BB;STICKLINE(CC<="" p="">STICKLINE(CC>REF(CC,2),CC,0,5,1), COLORRED;主力资金试盘:IF(CROSS(AA,BB),3,0),STICK,LINETHICK4,COLOR0080FF;主力对倒出货:IF(CROSS(BB,AA),-3,0),STICK,LINETHICK4,COLOR00FF00;DRAWICON(主力资金试盘>0,5,4);DRAWICON(主力对倒出货<0,-4,2);VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),5);惨跌:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORMAGENTA;主力拉升:STICKLINE(VAR5<o,0,var5,7,0),colorblue;<="" p="" 洗盘阴:stickline(var5。
通达信指标公式源码 主力轨迹公式
VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*50;短线1:=VAR2*(1+VAR1),COLOR0099FF;短线2:=MA(短线1,5),COLOR336633;LC := REF(CLOSE,1);VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2))*100))/100;RC := (CLOSE-LC)*VID;LONG := SUM(RC,0);DIFF := SMA(LONG,10,1);DEA := SMA(LONG,20,1);长线1:=DIFF-DEA,COLOR9900FF;长线2:=MA(长线1,10),COLORCC3300;DRAWBAND(短线1,RGB(99,50,0),短线2,RGB(0,70,60));DRAWBAND(长线1,RGB(115,0,37),长线2,RGB(0,51,102));STICKLINE(长线1>0,0,长线1/2,1,0),COLOR000098;STICKLINE(长线1<0,0,长线1/2,1,0),COLOR007100;主力短线1: VAR2*(1+VAR1),COLOR004F98;主力短线2:MA(主力短线1,5),COLOR4D7500;主力长线1: DIFF-DEA,COLOR9900FF;主力长线2: MA(主力长线1,10),COLORCC3300;主力长线强度:主力长线1/2,NODRAW,COLOR3300FF;{钱龙短线}L2:=5; L3:=10;Var1:=MA((VOL-REF(VOL,1))/REF(VOL,1),L2);Var2:=(CLOSE-MA(CLOSE,L3))/MA(CLOSE,L3)*100;MY: Var2*(1+Var1);钱龙短线: MY, COLORSTICK;MA(钱龙短线,5);V0:0,COLORFFA2AF;{钱龙短线指标当指标曲线向上交叉其平均线时,视为短线买进信号。
通达信深度主力分析主图指标公式
通达信深度主力分析主图指标公式DRAWKLINE(H,O,L,C);ZKP:=IF(C>REF(C,1),REF(C,1),DRAWNULL);ZSP:=IF(C>REF(C,1),C,DRAWNULL);DKP:=IF(C<=REF(C,1),REF(C,1),DRAWNULL);DSP:=IF(C<=REF(C,1),C,DRAWNULL);DRAWKLINE(H,DKP,L,DSP);stICKLINE(C<=REF(C,1),DKP,DSP,3.05,0),COLORBLUE;STICKLINE(C<=REF(C,1),DKP,DSP,2.2,0),COLORFF7700;STICKLINE(C<=REF(C,1),DKP,DSP,1.5,0),COLORFF9900;STICKLINE(C<=REF(C,1),DKP,DSP,0.5,0),COLORFFBB00;DRAWKLINE(H,ZKP,L,ZSP);STICKLINE(C>REF(C,1),ZKP,ZSP,3.05,0),COLOR000099;STICKLINE(C>REF(C,1),ZKP,ZSP,2.2,0),COLOR0000CC;STICKLINE(C>REF(C,1),ZKP,ZSP,1.5,0),COLOR0000FF;STICKLINE(C>REF(C,1),ZKP,ZSP,0.5,0),COLORCC66FF;STICKLINE(V/REF(V,1)>2 AND CLOSE>=OPEN,ZKP,ZSP,1,0),COLORYELLOW;VAR111:=zig(3,13);STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,3,0),COLOR66FF00;{DRAWTEXT_FIX(STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,5,0),0.00,0.11,0,''),COLOR00FF00,LI NETHICK1;}ma5:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);C1:=BacKSET(B1,10+1);HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);前期高位:REF(C,BArslAST(HD)),COLOR8000FF,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;JRH:=HHV(C,2);JRL:=LLV(C,2);VAR01:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR02:=(REF(VAR01,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR03:=(REF(VAR02,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR04:=(REF(VAR03,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR05:=(REF(VAR04,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR06:=(REF(VAR05,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR07:=(REF(VAR06,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR08:=(REF(VAR07,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR09:=(REF(VAR08,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR09,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 ORVAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR01);VAR1A:=((REF(VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND crOSS(BB5,60),10);加仓:=FILTER(COUNT(CROSS(BB5,30),5)>=1 AND MA5>REF(MA5,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1),10);清仓:=FILTER(COUNT(CROSS(30,BB5),5)>=1 AND (C>MA30 OR O>MA30) AND MA5<REF(MA5,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);DRAWTEXT(加仓 ,LOW*0.96,'加'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA5>REF(MA5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.01,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.99,'买'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;DRAWTEXT(强势狙击,LOW*0.98,'←狙击'),COLORWHITE;VAR21:=MAX(Abs(HIGH-AMOUNT/vol/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLORABFF46;支撑:MA(REF(LLV(C,30),1),2),COLOR9DFFFF;总额:=AMOUNT;买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNT*100;流入:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入-流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入-流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入-流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入-流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF;DRAWTEXT_FIX(1,0.06,0,0,HYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.20,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.30,0.00,0,'主题投资:')COLOR00FFFF;DRAWTEXT_FIX(1,0.36,0.00,0,EXTERNSTR(0,2))COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.05,0,'主营业务:')COLOR00FFFF;DRAWTEXT_FIX(1,0.06,0.05,0,EXTERNSTR(0,3))COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.10,0,'解禁日期:')COLOR00FFFF;DRAWTEXT_FIX(1,0.06,0.10,0,EXTERNSTR(0,4))COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.15,0,'莸利比例:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.06,0.15,0,CONST(WINNER(C )*100)), COLOR0080FF;DRAWTEXT_FIX(1,0.12,0.15,0,'动态PE:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.17,0.15,0,CONST(DYNAINFO(39))),C OLOR0080FF;DRAWTEXT_FIX(1,0.22,0.15,0,'市值:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.26,0.15,0,FINANCE(40)/100000000), COLOR0080FF;DRAWTEXT_FIX (1,0.31,0.15,0,'公积金(股):'),COLORYELLOW;DRAWNUMBER_FIX(1,0.38,0.15,0,FINANCE(18)),COLOR0080 FF;DRAWTEXT_FIX (1,0.43,0.15,0,'收益:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.47,0.15,0,FINANCE(33)),COLOR0080 FF;DRAWTEXT_FIX(1,0.00,0.19,0,'净流入(亿):'),COLORYELLOW;DRAWTEXT_FIX(1,0.06,0.19,0,'1日'),COLORYELLOW;DRAWTEXT_FIX(1,0.12,0.19,0,'3日'),COLORYELLOW;DRAWTEXT_FIX(1,0.18,0.19,0,'5日'),COLORYELLOW;DRAWTEXT_FIX(1,0.24,0.19,0,'10日'),COLORYELLOW;DRAWNUMBER_FIX(1,0.08,0.19,0,CONST((净流))),COLOR0080FF;DRAWNUMBER_FIX(1,0.14,0.19,0,CONST((净流3))),COLOR0080FF;DRAWNUMBER_FIX(1,0.20,0.19,0,CONST((净流5))),COLOR0080FF;DRAWNUMBER_FIX(1,0.265,0.19,0,CONST((净流10))),COLOR0080FF;DRAWTEXT_FIX(1,0.00,0.23,0,'愚民导向:'),COLOR00FFFF;DRAWTEXT_FIX(1,0.06,0.23,0,EXTERNSTR(0,5)),COLOR00FFF F;DRAwrECTREL(0,500,147,999.4,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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进);大宗出限制:=IF((超S+大S)=0,0,大宗出);非大宗进限制:=IF(中B+小B=0,0,非大宗进);非大宗出限制:=IF(中S+小S=0,0,非大宗出);主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度限制:=IF(大单强度=0,-100,大单强度);大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('' ,CON2STR(大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT('', CON2STR(大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT('', CON2STR(非大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT('', CON2STR(非大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT('', CON2STR(净流入/1,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT('主力',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT('散户',CON2STR(散户净流入,0)),'万')),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,0.99,0,'净流入:(万)'),COLORYELLOW;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;DRAWRECTREL(0,515,CONST(ABS(主力买力度)*560/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*560/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;{dde显示}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(150,500,192,540,IF(CONST(DDX)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWRECTREL(150,545,192,585,IF(CONST(DDY)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWRECTREL(150,590,192,630,IF(CONST(DDZ)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWTEXT_FIX(1,0.153,0.500,0,STRCAT('DDX:',CON2STR(DD X,1))),COLORYELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.548,0,STRCAT('DDY:',CON2STR(DD Y,1))),COLORYELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.596,0,STRCAT('DDZ:',CON2STR(DD Z,1))),COLORYELLOW,COLORWHITE;T1:=IF (DDX>0 AND REF(DDX,1)<0,1,0);T2:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)<0,2,T1);T3:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)<0,3,T2);T4:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 ANDREF(DDX,3)>0 AND REF(DDX,4)<0,4,T3);T5:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)<0,5,T4);T6:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)<0,6,T5);T7:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)<0,7,T6);T8:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)<0,8,T7);T9:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)<0,9,T8);T:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)>0,10,T9);DRAWTEXT_FIX(1,0.190,0.500,0,STRCAT(STRCAT('',CON2STR(T,0)),' [天] ')),COLORYELLOW;T11:=IF (DDY>0 AND REF(DDY,1)<0,1,0);T21:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)<0,2,T11);T31:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)<0,3,T21);T41:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)<0,4,T31);T51:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 ANDREF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)<0,5,T41);T61:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)<0,6,T51);T71:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)<0,7,T61);T81:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)<0,8,T71);T91:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)<0,9,T81);TY01:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)>0,10,T91);DRAWTEXT_FIX(1,0.190,0.548,0,STRCAT(STRCAT('',CON2STR(TY01,0)),' [天] ')),COLORYELLOW;T1Z:=IF (DDZ>0 AND REF(DDZ,2)<0,1,0);T2Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)<0,2,T1Z);T3Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)<0,3,T2Z);T4Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)<0,4,T3Z);T5Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)<0,5,T4Z);T6Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)<0,6,T5Z);T7Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)<0,7,T6Z);T8Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)<0,8,T7Z);T9Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)<0,9,T8Z);TZ:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)>0,10,T9Z);DRAWTEXT_FIX(1,0.190,0.596,0,STRCAT(STRCAT('',CON2STR(TZ,0)),' [天] ')),COLORYELLOW;。
通达信主力资金监控指标公式
通达信主力资金监控指标公式副图指标,可以看资金特大单、大单、中小单,以及主力筹码集中度指标源码:资金:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));资金买:=IF(CLOSE>OPEN,资金*(HIGH-LOW),IF(CLOSE<OPEN,资金*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;资金卖:=IF(CLOSE>OPEN,0-资金*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- 资金*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;买卖量:=资金买+资金卖,COLOR00FFFF;STICKLINE(买卖量<0,0,买卖量,1,0),COLORFF6600;STICKLINE(买卖量<0,0,买卖量,3,0),COLORFF9900;STICKLINE(买卖量<0,0,买卖量,1.5,0),COLORFFCC00;STICKLINE(买卖量<0,0,买卖量,0.5,0),COLORCYAN;STICKLINE(买卖量>0,0,买卖量,3,0),COLOR000099;STICKLINE(买卖量>0,0,买卖量,3,0),COLOR0000CC;STICKLINE(买卖量>0,0,买卖量,1.0,0),COLOR0000FF;STICKLINE(买卖量>0,0,买卖量,0.5,0),COLORCC66FF;N:=1;买卖0:= (HIGH+LOW+CLOSE)/3;买卖1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));买卖2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-买卖0);买卖3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);买卖4:=IF(HIGH=LOW,1,买卖0-MIN(CLOSE,OPEN));买卖5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));买卖6:='MACD.DIF'>'MACD.DEA' AND 'MACD.DEA'<0;买卖7:='KDJ.K'>'KDJ.D' AND 'KDJ.D'<30;买卖8:='MACD.DIF'<'MACD.DEA';买卖9:='KDJ.K'<'KDJ.D' AND 'KDJ.K'>80;特大:买卖4*买卖5,NODRAW;大单:买卖3*买卖5,NODRAW;中单:买卖1*买卖5,NODRAW;小单:买卖2*买卖5,NODRAW;综合:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单 AND 大单>小单;量振2:=特大<小单 AND 大单<小单;标振1:=买卖6 AND 买卖7;标振2:=买卖8 AND 买卖9;A:=综合-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,1,0),COLOR000044;主力持仓:EMA(100*(CLOSE- LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;主力筹码集中度:WINNER(C)*100,COLORRED;。
优化的主力追踪 通达信指标公式源码
一张图足矣,底部百分百,优化的主力追踪大盘MAV:=(2*"999999$CLOSE"+"999999$HIGH"+"999999$LOW")/4; 大盘VAR1:=LLV("999999$LOW",34);大盘VAR2:=HHV("999999$HIGH",34);大盘SK:=EMA((大盘MAV-大盘VAR1)/(大盘VAR2-大盘VAR1)*100,13); 大盘主力资金:EMA(0.667*REF(大盘SK,1)+0.333*大盘SK,2);大盘T1:大盘主力资金<15;深证MAV:=(2*"399001$CLOSE"+"399001$HIGH"+"399001$LOW")/4; 深证VAR1:=LLV("399001$LOW",34);深证VAR2:=HHV("399001$HIGH",34);深证SK:=EMA((深证MAV-深证VAR1)/(深证VAR2-深证VAR1)*100,13); 深证主力资金:EMA(0.667*REF(深证SK,1)+0.333*深证SK,2);深证T1:深证主力资金<15;创业板MAV:=(2*"399006$CLOSE"+"399006$HIGH"+"399006$LOW")/4; 创业板VAR1:=LLV("399006$LOW",34);创业板VAR2:=HHV("399006$HIGH",34);创业板SK:=EMA((创业板MAV-创业板VAR1)/(创业板VAR2-创业板VAR1)*100,13);创业板主力资金:EMA(0.667*REF(创业板SK,1)+0.333*创业板SK,2);创业板T1:创业板主力资金<15;中小板MAV:=(2*"399005$CLOSE"+"399005$HIGH"+"399005$LOW")/4; 中小板VAR1:=LLV("399005$LOW",34);中小板VAR2:=HHV("399005$HIGH",34);中小板SK:=EMA((中小板MAV-中小板VAR1)/(中小板VAR2-中小板VAR1)*100,13);中小板主力资金:EMA(0.667*REF(中小板SK,1)+0.333*中小板SK,2);中小板T1:中小板主力资金<15;。
通达信公式主力资金流向监控指标
通达信公式主力资金流向监控指标有100线上下的柱线显示资金进出情况,20线上灰白柱线提示散户筹码,彩色柱线提示主力筹码运行,从吸货拉升到出货(由蓝-黄-红-绿),散兵坑予示底部,20线下深蓝柱提示关注,亮红柱提示建仓。
三根线与柱线综合观察分析,就可以获得极隹的买卖点。
{价量线主线快线}价量:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00CCFF,NODRAW;主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),COLORCYAN,NODRAW;快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25) ,COLOR55AAFF,NODRAW;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{变异KD风险系数}TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}{红}STICKLINE(TGLXS>0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;{粉}STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;{黄}STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;{蓝}STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE;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;{主力控盘筹码系数}ZSHJJ:=EMA(ZSHTL,55);{散户警戒}ZZLJJ:=EMA(ZZLKP,55);{主力警戒}散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;{散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C 0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB;{蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF;STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹码警戒}{黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00A AFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00C CFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00F FFF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5 ,0 ),COLOR0055FF;{铸顶风险区}{绿}STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;{散兵坑}STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;80,COLORGREEN;{0,COLORGREEN;}{主线快线}价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
V1:=(C*3+H+L)/5*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*;
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;
0;
主力动向:EMA(V4,2),COLORRED;
机构动向:EMA(VB,2),COLORMAGENTA;
(SLOPE(主力动向,2)>0 AND SLOPE(机构动向,2)>0,主力动向),COLORRED,LINETHICK4; (SLOPE(主力动向,2)<0,主力动向),COLORGREEN,LINETHICK3;
(SLOPE(机构动向,2)>0 AND SLOPE(主力动向,2)>0,机构动向),COLORMAGENTA,LINETHICK4; (SLOPE(机构动向,2)<0,机构动向),COLORWHITE,LINETHICK2;
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*-WINNER(CLOSE*)*80,3);
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
ZZLJJ:=EMA(ZZLKP,89);
ZJLRQD:=ZZLKP-ZZLJJ;
AA:=EMA(ZJLRQD,1);
BB:=EMA(AA,5);
CC:=AA-BB;
STICKLINE(CC<REF(CC,2),CC,0,5,1), COLOR00FF00;
STICKLINE(CC>REF(CC,2),CC,0,5,1), COLORRED;
主力资金试盘:IF(CROSS(AA,BB),3,0),STICK,LINETHICK4,COLOR0080FF;
主力对倒出货:IF(CROSS(BB,AA),-3,0),STICK,LINETHICK4,COLOR00FF00;
DRAWICON(主力资金试盘>0,5,4);
DRAWICON(主力对倒出货<0,-4,2);
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),5);
惨跌:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORMAGENTA;
主力拉升:STICKLINE(VAR5<REF(VAR5,1),0,VAR5,7,0),COLORRED; 洗盘阴:STICKLINE(VAR5<REF(VAR5,1) AND C<O,0,VAR5,7,0),COLORBLUE;。