节奏线的指标公式源码(操盘线指标公式源码)
本文目录一览:
- 1、知道通达信这个指标源码,怎样编出这个指标的选股公式?
- 2、求通达信画线公式
- 3、请按照下面指标源码做个选股公式,谢谢!
- 4、obv画线指标公式
- 5、求通达信公式高手将指标源码拆解成两个通达信选股公式,重酬
知道通达信这个指标源码,怎样编出这个指标的选股公式?
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A:=IF(CROSS(0,DEA),1,0);
A1:=IF(DIFF0 AND CROSS(DIFF,DEA),1,0);
SS:=IF(A,SUM(A1,0),0);
SSB:=HHV(SS,0);
SSS:=SUM(A1,0);
W底选股:SSS-SSB=2 AND SSSREF(SSS,1);
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;
趋势线:=MA(股价线,6);
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);
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区:VARO710;
下单: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);
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);
低买:CROSS(BIAS,乖离1) AND 乖离1-9;
TTR:=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) /TTR);
辅助线:=((DMM * 100) /TTR);
动向趋势线:=(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);
TYP:=(HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;
K:=SMA(RSV,3,1);
LC:= REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*500-250;
X:CROSS(CCI,-100) AND K-100 ;
X改成:=CROSS(CCI,-100) AND K-100 AND CROSS(RSI1,-90);
MA2:=EMA(C,2);MA5:=EMA(C,5);
MA13:=EMA(C,13);
MA34:=EMA(C,34);
MA55:=EMA(C,55);
YCX:=MA5=REF(MA5,1);
H1:=MAX(MAX(MA5,MA13),MA34);
L1:=MIN(MIN(MA5,MA13),MA34);
一阳穿三线:= H1C AND OL1 AND YCX AND MA2REF(MA2,1);
满仓选股:一阳穿三线;
准备:=动向趋势线 88 AND (神偷线 5.8);
VAR2:=0.0001*AMOUNT,;
MA1:=0.0001*MA(AMOUNT,5);
M2:=0.0001*MA(AMOUNT,10);
百日地量:=(VAR2,100)=VAR2;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
买点选股:(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.05
AND (V/MA(V,5)2 OR C/REF(C,1)0.035));
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 AA20REF(AA20,1) AND AA30REF(AA30,1);
(AA30-AA20)REF((AA30-AA20),1) AND AA20REF(AA20,1) AND AA30REF(AA30,1);
BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;
强势狙击选股:=FILTER(BB3030 AND BB1045 AND CROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5)=1 AND AA05REF(AA05,1) AND 三拾日乖离率REF(三拾日乖离率,1) AND AA10REF(AA10,1)
AND 加速度5REF(加速度5,1) AND 速度5REF(速度5,1) ,10) ;
MR:=COUNT(CROSS(五日乖离率,0),3)=1 AND 三拾日乖离率REF(三拾日乖离率,1) AND AA05REF(AA05,1) AND (C/REF(C,1)-1)*1005 AND REF(C,1)AA30;
青云直上选股:=FILTER(MR,10);
QUANCLOSE:=(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=-19
AND 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)/C0.02 OR CREF(C,1)*1.01) AND VREF(V,1)*2.8 AND (COUNT(CO*0.93,2)=2 OR COUNT(H/L1.1,5)3),3) ;
AA:=1;
BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100100,100,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);
DD:=CC/BB;
量异动:=IF(AA,DD/REF(DD,1),0);
选股:=DD/REF(DD,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
逃顶:CROSS(80,RSI);
{很高兴回答你的问题,希望帮到你}
求通达信画线公式
这个画线公式需要源码节奏线的指标公式源码,以下是通达信画线指标节奏线的指标公式源码:
参数设置
AA:=REF(H,N)=HHV(H,2*N+1);{N日前节奏线的指标公式源码的最高价}
QY:=BACKSET(AA,N+1);{周期记录}
CC:=FILTER(QY,N) AND H=HHV(H,N+1);{周期过滤 最高价最高值}
DDD:=BARSLAST(CC),NODRAW;{CC条件成立节奏线的指标公式源码的天数}
GDTS:=IF(CC,CURRBARSCOUNT,0),NODRAW;{CC成立 返回交易日的周}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS),NODRAW;{DDD成立,返回DDD日前的GDTS,否则返回GDTS}
GDCS1:=CONST(DINGBUTS),NODRAW;{取DINGBUTS值}
GDCS13:=CONST(REF(HIGH,GDCS1-1));
DINGBUTS1:=REF(DINGBUTS,DDD+1),NODRAW;
GDCS2:=CONST(DINGBUTS1);
GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));
XG1:=BACKSET(ISLASTBAR,GDCS1);{ ISLASTBAR 判断是否为最后一个周期}
XG2:=BACKSET(ISLASTBAR,DINGBUTS1);
STICKLINE(XG2,GDCS23,GDCS23,0.5,1),COLORWHITE,LINETHICK3;{白线}
STICKLINE(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW,LINETHICK3;{黄线}
{谷线}
AA1:=REF(L,N1)=LLV(L,2*N1+1);
QY1:=BACKSET(AA1,N1+1);
CC1:=FILTER(QY1,N1) AND L=LLV(L,N1+1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
DDCS13:=CONST(REF(L,DDCS1-1));
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
DDCS23:=CONST(REF(L,DDTS2-1));
XD1:=BACKSET(ISLASTBAR,DDCS1);
XD2:=BACKSET(ISLASTBAR,DDTS2);
STICKLINE(XD2,DDCS23,DDCS23,0.5,1),COLORMAGENTA,LINETHICK3;
STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN,LINETHICK3;
{压力支撑}
M:=INTPART(3*N2/5);{压力线取}
AAA:=REF(H,M)=HHV(H,2*M+1);
QYY:=BACKSET(AAA,M+1);
CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);
DDDD:=BARSLAST(CCC),NODRAW;
GDTSS:=IF(CCC,CURRBARSCOUNT,0),NODRAW;
DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS),NODRAW;
GDCS11:=CONST(DINGBUTSS),NODRAW;
DINGBUTS11:REF(DINGBUTSS,DDDD+1),NODRAW;
GDCS22:=CONST(DINGBUTS11);
高点压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORBB8000,LINETHICK2;
W:=INTPART(3*N3/5);
AA11:=REF(L,W)=LLV(L,2*W+1);
QY11:=BACKSET(AA11,W+1);
CC11:=FILTER(QY11,W) AND L=LLV(L,W+1);
DD11:=BARSLAST(CC11);
DDTSS:=IF(CC11,CURRBARSCOUNT,0);
DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);
DDCS11:=CONST(DDTS11);
DDTS22:=REF(DDTS11,DD11+1);
DDCS22:=CONST(DDTS22);
低点支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1),COLORMAGENTA,LINETHICK2;
{
ZGSTAR:=(高点压力M+低点支撑M)/2;
ZGEND:=CONST((高点压力M+低点支撑M)/2);
STARDAY:=IF(DDCS2GDCS2,DDCS2,GDCS2);
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;
}
{DRAWKLINE(H,O,L,C);}
{主图中的倍量K线如何变黄色}
V2V:=V/REF(V,1)=1.9 AND CREF(C,1);
STICKLINE(V2V,O,C,-1,0),COLORYELLOW;
{涨停}
ZT:=C/REF(C,1)1.097;
STICKLINE(ZT,O,C,-1,0),COLORMAGENTA;
ZZ:=(O+H+L)/3;
黄金买点:EMA(ZZ,7),COLORGREEN,LINETHICK1;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
BB1:=LAA1*0.9;
EE1:=VOLMA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(CREF(O,1) AND F0,1,0);
P2:=IF(CREF(O,2) AND F0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
DRAWICON(CROSS(ZX,C),H*1.01,2);
DRAWTEXT(CROSS(CLOSE,TT1)AND J55,LOW,'买'),COLORRED;
DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'短顶'),COLOR00FFFF;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;
A1:=EMA(C,14)COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
出击:IF(A1X=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
休假:IF(A1X0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;
STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;
STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE;
请按照下面指标源码做个选股公式,谢谢!
VOLUME:=VOL;
MA1:=MA(VOLUME,5);
启动:= (MA1+MA1)VOLUME;
买入:=DYNAINFO(4)0 AND HHV(HIGH,10)/LLV(LOW,10)1.25 AND CLOSE=HHV(HIGH,10)
AND REF(CLOSE,1)(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85) AND CO;
选股:(CREF(HHV(H,3),1) AND (C-REF(C,1))/REF(C,1)0.07) AND 启动 AND 买入;
obv画线指标公式
公式源码:MOBV:=OBV-MA(OBV节奏线的指标公式源码,30);
STICKLINE(MOBV;0节奏线的指标公式源码,0节奏线的指标公式源码,MOBV,1,0),COLORRED;
STICKLINE(MOBVOBV高:=REF(OBV,BARSLAST(FILTER(BACKSET(FILTER(REF(OBV,5)=HHV(OBV,2*5+1),5),5+1),5));
C高:REF(C,BARSLAST(FILTER(BACKSET(FILTER(REF(C,5)=HHV(C,2*5+1),5),5+1),5))),NODRAW;
量入为主:CROSS(OBV,OBV高)ANDH
STICKLINE(量入为主,0,MOBV,1,0),COLORYELLOW。
需要注意的是,以上介绍的公式含有未来的,注意信号的出现,量入为主,量在价先。以上就是能量obv画线指标公式相关内容。
拓展资料:
OBV 的英文全称是:On Balance Volume,是由美国的投资分析家Joe Granville所创。该指标通过统计成交量变动的趋势来推测股价趋势。OBV以“N”字型为波动单位,并且由许许多多“N”型波构成了OBV的曲线图,对一浪高于一浪的“N”型波,称其为“上升潮”(UP TIDE),至于上升潮中的下跌回落则称为“跌潮”(DOWN FIELD)。
能量潮是将成交量数量化,制成趋势线,配合股价趋势线,从价格的变动及成交量的增减关系,推测市场气氛。其主要理论基础是市场价格的变化必须有成交量的配合,股价的波动与成交量的扩大或萎缩有密切的关连。通常股价上升所需的成交量总是较大;下跌时,则成交量可能放大,也可能较小。价格升降而成交量不相应升降,则市场价格的变动难以为继。
OBV指标,又称为能量潮,具有非常高的借鉴意义,据了解,能量潮OBV指标是通过累计每日的需求量和供给量并予以数字化,制成趋势线,然后配合证券价格趋势图,从价格变动与成交量增减的关系上,来推测市场气氛的一种技术指标。
如果OBV指标波动情况为N字形,持续上攻的时候,投资人应该继续持股。如果OBV指标呈小N上攻,并且在某段时间内迅速的上涨,一般都意味着行情会出现反转。OBV线长时间内横向运动,但是某天却快速上涨,并且突破MAOBV线,这种情况一般就代表着大行情的到来。OBV运动背离移动平均线,通常情况下代表着后期行情会有反转的情况,这时候投资人一定要小心。
公式源码:MOBV:=OBV-MA(OBV,30);
STICKLINE(MOBV;0,0,MOBV,1,0),COLORRED;
STICKLINE(MOBVOBV高:=REF(OBV,BARSLAST(FILTER(BACKSET(FILTER(REF(OBV,5)=HHV(OBV,2*5+1),5),5+1),5));
C高:REF(C,BARSLAST(FILTER(BACKSET(FILTER(REF(C,5)=HHV(C,2*5+1),5),5+1),5))),NODRAW;
量入为主:CROSS(OBV,OBV高)ANDH
STICKLINE(量入为主,0,MOBV,1,0),COLORYELLOW。
需要注意的是,以上介绍的公式含有未来的,注意信号的出现,量入为主,量在价先。以上就是能量obv画线指标公式相关内容。
拓展资料:
OBV 的英文全称是:On Balance Volume,是由美国的投资分析家Joe Granville所创。该指标通过统计成交量变动的趋势来推测股价趋势。OBV以“N”字型为波动单位,并且由许许多多“N”型波构成了OBV的曲线图,对一浪高于一浪的“N”型波,称其为“上升潮”(UP TIDE),至于上升潮中的下跌回落则称为“跌潮”(DOWN FIELD)。
能量潮是将成交量数量化,制成趋势线,配合股价趋势线,从价格的变动及成交量的增减关系,推测市场气氛。其主要理论基础是市场价格的变化必须有成交量的配合,股价的波动与成交量的扩大或萎缩有密切的关连。通常股价上升所需的成交量总是较大;下跌时,则成交量可能放大,也可能较小。价格升降而成交量不相应升降,则市场价格的变动难以为继。
OBV指标,又称为能量潮,具有非常高的借鉴意义,据了解,能量潮OBV指标是通过累计每日的需求量和供给量并予以数字化,制成趋势线,然后配合证券价格趋势图,从价格变动与成交量增减的关系上,来推测市场气氛的一种技术指标。
如果OBV指标波动情况为N字形,持续上攻的时候,投资人应该继续持股。如果OBV指标呈小N上攻,并且在某段时间内迅速的上涨,一般都意味着行情会出现反转。OBV线长时间内横向运动,但是某天却快速上涨,并且突破MAOBV线,这种情况一般就代表着大行情的到来。OBV运动背离移动平均线,通常情况下代表着后期行情会有反转的情况,这时候投资人一定要小心。
求通达信公式高手将指标源码拆解成两个通达信选股公式,重酬
1、粉色柱出现第一天选股买入股票:
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
主力进:=IF(V4=0,V4,0),COLORFF00FF;
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);
趋势线:=EMA(V11,3);
XG:REF(主力进 AND 趋势线13,1)=0 AND 主力进 AND 趋势线13=1;
2、绿柱出现第一天预警卖出股票:
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大盘资金撤走:=IF(VB=0,VB,0),COLORGREEN;
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);
趋势线:=EMA(V11,3);
卖出:REF(大盘资金撤走 AND 趋势线90,1)=0 AND 大盘资金撤走 AND 趋势线90=1;
不为别的,为节奏线的指标公式源码了节奏线的指标公式源码你的高分,必须滴!不许食言啊!