委比指标公式源码?
一、委比指标公式源码?
集合竞价量比
量比:=V/REF(MA(V,5),1);
D1:=ISBUYORDER AND DYNAINFO(9)*C/100>=50;{分笔买入单>50万}
D2:=(DYNAINFO(23)-DYNAINFO(22))/CAPITAL*100>=0.4;{内外盘净};
ST:=NOT(NAMELIKE('S') OR NAMELIKE('*S'));
T1:=DYNAINFO(11)/DYNAINFO(4)>=1.03 AND DYNAINFO(11)/DYNAINFO(4)<=1.05 AND ST;
T2:=H/DYNAINFO(3)<=1.075 AND C/DYNAINFO(3)<=1.06 AND C>=DYNAINFO(11) AND C<H;
T3:=FROMOPEN>=10 AND FROMOPEN<=220;{时间控制}
预警:=T1 AND T2 AND T3 AND D1 AND D2;
流通股本:=FINANCE(1)/10000000<=30;
换手率:=COUNT(VOL/CAPITAL*100<3,N)=0;
现价:=DYNAINFO(7);
均价:=DYNAINFO(11)+(DYNAINFO(11)*0.021);
条件:=IF(现价>均价,1,0);
集合竞价选股:量比 AND 预警 AND 流通股本 AND 条件;
二、量比换手率涨幅指标公式源码?
源码:
量比:VOL/REF(MA(VOL,M1),1)*10,LINETHICK0,COLORYELLOW;二十日量比:SUM(VOL/REF(MA(VOL,M1),1)*1,20),NODRAW;
STICKLINE(量比,量比,0,1,1),COLOR00FF00;正常量:10;换手:V/CAPITAL*100,COLORRED,NODRAW;十日换手:SUM(换手,10),NODRAW;二十日换手:SUM(换手,20),NODRAW;
三、成交量指标公式源码?
成交量指标的公式源码:
A03:=(EMA((AMOUNT/100000),1)/3);
A04:=(WINNER(CLOSE)/ 0.3);
A05:=IF((BARSCOUNT(CLOSE) >100),A03,A04);
量:A05 LINETHICK2 ;
动量: (EMA(量, 13.000) * 1.5)LINETHICK2;
A01:=IF((量 > 动量),量,0);
A08:=BARSLAST((A01 > 0));
A09:=REF(量,A08);
趋势:IF((量 <= A01),量,A09),LINETHICK2,COLORRED;
盘整天数:BARSLAST((A01 > 0)),LINETHICK0,COLORMAGENTA;
量价同行:IF(趋势>量,趋势,DRAWNULL),COLORCYAN,LINETHICK2;
A0D:=((((REF(量, 1.000) = REF(趋势, 1)) AND (量 >= REF(量, 1))) AND (量 >= 动量)) AND (REF(量, 1) <= REF(量, 2)));
量价突破选股:IF(((((量 = 趋势) AND (CLOSE > REF(CLOSE, 1))) AND (量 > REF(量, 1))) AND (REF(A08, 2) > 0)), 888,0),LINETHICK0;
量价同行选股:IF((量 = 趋势), 888,0)LINETHICK0;
量价背离选股:IF((REF(((动量 > REF(动量,1)) AND (MA(CLOSE, 5) < REF(MA(CLOSE, 5), 1))), 1) AND 量价突破选股), 888,0),LINETHICK0;
再次上攻选股:IF(A0D, 888,0),LINETHICK0;
DRAWICON(量价突破选股>0,量,9);
DRAWICON(A0D>0,量,6);
DRAWTEXT(再次上攻选股>0,(量*0.7),'再次上攻'),COLORMAGENTA;
DRAWTEXT(量价背离选股>0,(量*1.149),'背离后上攻'),COLORGREEN;
DRAWTEXT(量价突破选股>0,(量*0.699),'上攻'),COLORCYAN。
四、顾比粘合指标公式源码?
顾比粘合指标(Ease of Movement,EMV)是一种技术分析指标,用于衡量价格和成交量之间的关系。它通过计算价格变动与成交量变动之比的移动平均值来评估市场的趋势和强度。其公式如下:
EMV = ((H+L)/2 - (H' + L')/2) / ((V/10000) / ((H-L)/2))
其中,H表示当日最高价,L表示当日最低价,H'表示前一日的最高价,L'表示前一日的最低价,V表示当日的成交量。
下面是用Python实现顾比粘合指标的代码示例:
python
Copy code
import pandas as pd
def EMV(df, n=14):
dm = ((df['High'] + df['Low']) / 2) - ((df['High'].shift(1) + df['Low'].shift(1)) / 2)
br = df['Volume'] / (df['High'] - df['Low'])
emv = dm / br
emv_ma = emv.rolling(n).mean()
return emv_ma
其中,df为股票数据的DataFrame,包括High、Low和Volume等列。n表示计算移动平均的周期,默认为14天。函数返回的是顾比粘合指标的移动平均值。
五、mse成交量指标公式源码?
LC:=REF(C,1);
VVA:=IF(C>REF(C,1),V,-V);
OBV18:=SUM(IF(C=REF(C,1),0,VVA),18);
XXV:=IF(C>LC,SUM(V,18),0),COLOR0000CC;
YYV:=IF(C<LC,SUM(V,18),0),COLOR00CC00;
SS0:=IF(C>LC,HHV(REF(V,1),18),0);
SS1:=IF(C<LC,HHV(REF(V,1),18),0);
CCI:=((C-MA(C,14))/(0.015*AVEDEV(C,14)))/4+50,COLORFFCCCC;
RSI:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*150-30,COLORCC9900;
K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),COLOR00CCCC;
D9:=SMA(K9,3,1),COLOR00CC00;
J:=3*K9-2*D9,COLORFF3399,LINETHICK1;
VAR01:=DYNAINFO(17)*REF(MA(V,5),1);
VAR02:=DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT;
预V1:=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,VAR01,VAR02);
预量:=IF(V>=预V1,V,预V1);
VA:=IF(C>REF(C,1),预量,-预量);
换手率:10000*VOL/FINANCE(7),NODRAW,COLORRED;
周换手率:SUM(VOL/CAPITAL*100,5);
月换手率:SUM(VOL/CAPITAL*100,20);
WOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
主力启动线:MA(VOLUME,5),COLORRED;
主力洗盘线:MA(VOLUME,35),COLORYELLOW;
生命线:=MA(VOLUME,10);
资金异动线:MA(VOLUME,135),COLORGREEN;
AA:=VOL>=REF(V,1)*1.91 && C>REF(C,1);
AAA:=VOL>=REF(V,1)*4 && C>REF(C,1);
AA1:=VOL<REF(LLV(VOL,13),1);
AA2:=VOL<REF(LLV(VOL,55),1);
AA3:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.06;
AA4:=VOL<=REF(V,1)*0.51 ;
AA5:=COUNT(CLOSE>REF(CLOSE,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2;
STICKLINE(AA,0,V,2,0),COLORYELLOW;
STICKLINE(AAA,0,V,1,0),COLORMAGENTA;
STICKLINE(AA1,0,V,2,0),COLORMAGENTA;
STICKLINE(AA2,0,V,2,0),COLORRED;
STICKLINE(AA3,0,V,2,0),COLORWHITE;
STICKLINE(AA4,0,V,2,0),COLOR22A6E6;
STICKLINE(AA5,0,V,2,0),COLORGREEN;
地量:=VOL<=REF(LLV(VOL,13),1);
XG:=COUNT(地量>0,3)=3;
DRAWTEXT(XG ,VOL*0.5,'买'),COLORYELLOW;
VAR2:=1*AMOUNT;
三十日天量:=HHV(VAR2,30)=VAR2;
六十日天量:=HHV(VAR2,60)=VAR2;
百日天量:=HHV(VAR2,100)=VAR2;
一年天量:=HHV(VAR2,250)=VAR2;
STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;
DRAWTEXT(三十日天量,VOL*0.70,'----30'),COLORMAGENTA;
STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1.5,0),COLORWHITE;
DRAWTEXT(六十日天量,VOL*0.8,'----60'),COLORWHITE;
STICKLINE(百日天量,VOLUME,VOLUME*0.7,1.5,0),COLORGREEN;
DRAWTEXT(百日天量,VOL*0.88,'----100'),COLORGREEN;
STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORRED;
DRAWTEXT(一年天量,VOL*1.0,'----250'),COLORRED;
获利盘:=WINNER(C)*100;
VARA2:=LLV(LOW,10);
VARA3:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
BB5:=获利盘<=1;
STICKLINE(BB5,0,V,0.5,0),COLORBLUE;
六、成交量vol指标公式源码?
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH- OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主动卖盘:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
地量:=VOL<LLV(VOL,14)*1.001;
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(VOL>0,VOL,0,3,1),COLORWHITE;
STICKLINE(主动买盘>V/2,0,V,2,0),COLORYELLOW;
STICKLINE(主动买盘<=V/2,0,V,2,0),COLORLIGRAY;
STICKLINE(主动买盘>0,0,主动买盘,2,0),COLORRED;
STICKLINE(主动卖盘<0,0,主动卖盘,2,0),COLOR00FF00;
STICKLINE(地量>0,0,VOL,1,0),COLORMAGENTA;
STICKLINE(V2>=1,V,0,1,0),COLORYELLOW;
七、量比指标公式?
量比的计算公式为:
量比=(当前成交总手数/当前累计交易时间(分钟))/过去5天每分钟的平均交易量。它是恒量相对成交数量的指标,投资者可以使用该指标来解释主要资金的流入,从而为他们的入场提供参考。
从公式可以看出,量比越大,当日的成交量就越大,也就意味着当日股票流入的资金越多,投资者对市场的热情就越大。如果量比相对较小,则意味着当天的成交数量较小,并且当天的资金流动量较小,也就意味着市场活动程度将较低。
八、量比曲线指标公式?
量比是衡量相对成交量的指标。它是指股市开市后平均每分钟的成交量与过去5个交易日平均每分钟成交量之比。其计算公式为:量比=(现成交总手数/现累计开市时间(分))/过去5日平均每分钟成交量。
九、量比指标公式代码?
1,量比大于1.8,涨幅小于2%,现价涨幅在0—2%之间,在盘中选股的 量比:=V/REF(MA(V,5),1); 涨幅:=(C-REF(C,1))/REF(C,1)*100; 选股:量比>1.8 AND 涨幅>0 AND 涨幅1 单数比>1 特大差>0 大单差>0.1 中单差>0.1 小单差0.1 DDY>0.1 DDZ>1 DDX连续>3 涨幅(% 5日)0 每天收盘后选股,第二天开盘就买.
十、psy指标公式源码?
1、PSY=N日内上涨天数/N*100
2、PSYMA=PSY的M日简单移动平均
3、参数N设置为12日,参数M设置为6日.PSY指标与成交量变异率(VR)应配合使用,确定短期买卖点,可以找出每一波的高低点。另外,PSY指标最好与K线互相对照,如此更能从股价变动中了解超买或超卖的情况。在股市的几个指标里占很小比重。