首页 > 原创>正文

东方财富DDX公式源码指标(求助老师仿写一个牛市波段王指标,万分?)

中亿财经网 gengxing 2023-08-18 21:38:08

1. 求助老师仿写一个牛市波段王指标,万分?

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1)r2I中亿财经网财经门户

; D:=SMA(K,3,1)r2I中亿财经网财经门户

; J:=3*K-2*D; XG:REF(J,1)r2I中亿财经网财经门户

2. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。r2I中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。r2I中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。r2I中亿财经网财经门户

dmi指标公式源码r2I中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);r2I中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);r2I中亿财经网财经门户

LD:=ref(LOW,1)-LOW;r2I中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);r2I中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);r2I中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;r2I中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;r2I中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;r2I中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;r2I中亿财经网财经门户

3. 求助老师仿写一个牛市波段王指标,万分?

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1)r2I中亿财经网财经门户

; D:=SMA(K,3,1)r2I中亿财经网财经门户

; J:=3*K-2*D; XG:REF(J,1)r2I中亿财经网财经门户

4. kd指标源码公式?

以下是通达信彩色KD指标KD共振公式源码(无源码的请下载附件导入)r2I中亿财经网财经门户

通达信彩色KD指标KD共振公式源码r2I中亿财经网财经门户

VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; r2I中亿财经网财经门户

K13:SMA(VAR13,3,1); r2I中亿财经网财经门户

D13:SMA(K13,3,1);r2I中亿财经网财经门户

DRAWBAND(K13,RGB(255,255,0),D13,RGB(0,255,0));r2I中亿财经网财经门户

{STICKLINE(K13>D13,K13,D13,8,0),COLOR0055AA;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,5,0),COLOR0077CC;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,3,0),COLOR0099DD;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,1,0),COLOR01BEE7;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,8,0),COLOR006600;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,5,0),COLOR009900;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,3,0),COLOR00BB00;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,1,0),COLOR00CC00;}r2I中亿财经网财经门户

VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; r2I中亿财经网财经门户

K55:SMA(VAR55,3,1); r2I中亿财经网财经门户

D55:SMA(K55,3,1); r2I中亿财经网财经门户

DRAWBAND(K55,RGB(255,0,0),D55,RGB(0,0,255));r2I中亿财经网财经门户

{STICKLINE(K55>D55,K55,D55,7,0),COLOR000045;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,5,0),COLOR000085;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,3,0),COLOR0000C5;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,1,0),COLOR0000E5;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,7,0),COLOR353500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,5,0),COLOR555500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,3,0),COLOR757500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,1,0),COLOR858500;}r2I中亿财经网财经门户

20,COLORWHITE; r2I中亿财经网财经门户

80,COLORWHITE; r2I中亿财经网财经门户

DIBU:= K13<20 AND D13<20 AND K55<20 AND D55<20; r2I中亿财经网财经门户

STICKLINE(DIBU=1,80,60,5.8,1),COLORRED; r2I中亿财经网财经门户

TOBU:= K13>80 AND D13>80 AND K55>80 AND D55>80; r2I中亿财经网财经门户

STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;r2I中亿财经网财经门户

5. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。r2I中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。r2I中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。r2I中亿财经网财经门户

dmi指标公式源码r2I中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);r2I中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);r2I中亿财经网财经门户

LD:=ref(LOW,1)-LOW;r2I中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);r2I中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);r2I中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;r2I中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;r2I中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;r2I中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;r2I中亿财经网财经门户

6. obv公式源码?

MOBV:=OBV-MA(OBV,30);r2I中亿财经网财经门户

W1:STICKLINE(MOBV>0,MOBV,0,3,1),COLORRED;r2I中亿财经网财经门户

W2:STICKLINE(MOBV<0,MOBV,0,3,1),COLORCYAN;r2I中亿财经网财经门户

VA1:=HHVBARS(MOBV,BARSLAST(MOBV<0)+1);r2I中亿财经网财经门户

VA2:=CROSS(BACKSET(CROSS(0,MOBV),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

QG:=CROSS(BACKSET(CROSS(0,MOBV) OR (ISLASTBAR AND MOBV>0),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

前高:DRAWLINE(VA2,MOBV,REF(VA2,1),REF(MOBV,1),1),COLORMAGENTA;r2I中亿财经网财经门户

VA3:=LLVBARS(MOBV,BARSLAST(MOBV>0)+1);r2I中亿财经网财经门户

VA4:=CROSS(BACKSET(CROSS(MOBV,0),REF(VA3,1)+2),0.5);r2I中亿财经网财经门户

BD:=BARSLAST(FILTERX(CROSS(0,MOBV),BARSCOUNT(C)));r2I中亿财经网财经门户

前低:DRAWLINE(VA4,MOBV,REF(VA4,1),REF(MOBV,1),1);r2I中亿财经网财经门户

BDTJ:=IF(MOBV<0,FILTERX(MOBV=LLV(MOBV,BARSLAST(MOBV>0)),r2I中亿财经网财经门户

BARSCOUNT(C)),DRAWNULL);r2I中亿财经网财经门户

TSBDTJ:=BARSLAST(BDTJ);r2I中亿财经网财经门户

BDZH:=FILTERX(MOBV<CONST(LLV(MOBV,BD+1)),BARSCOUNT(C));r2I中亿财经网财经门户

BDTS:=BARSLAST(BDZH);r2I中亿财经网财经门户

本低:IF(BD+1>=1,CONST(LLV(MOBV,BD+1)),DRAWNULL);r2I中亿财经网财经门户

BDCL:=CROSS(COUNT(CROSS(MOBV>本低/2 AND MOBV<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;r2I中亿财经网财经门户

终点:=IF(ISLASTBAR AND MOBV>0 AND MOBV=HHV(MOBV,BARSLAST(MOBV<0)),1,IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));r2I中亿财经网财经门户

UU:=(终点=1 OR 终点=2) AND MOBV>0;r2I中亿财经网财经门户

ZZ:=FILTERX(UU,BARSCOUNT(C));r2I中亿财经网财经门户

本高:DRAWLINE(ZZ,MOBV,REF(ZZ,1),REF(MOBV,1),1),COLORWHITE;r2I中亿财经网财经门户

横线:=CONST(REF(MOBV,BARSLAST(ZZ)));r2I中亿财经网财经门户

WW:=MOBV>横线;r2I中亿财经网财经门户

起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));r2I中亿财经网财经门户

天数:=BARSLAST(起始点),COLORYELLOW,NODRAW;r2I中亿财经网财经门户

上横线:=DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;r2I中亿财经网财经门户

下横线:=DRAWLINE(BDZH,CONST(LLV(MOBV,BD+1)),BDTJ=1,MOBV,0),COLOR8080FF,DOTLINE;r2I中亿财经网财经门户

DRAWNUMBER(BDTJ,CONST(LLV(MOBV,BD+1))*0.9,BDTS);r2I中亿财经网财经门户

DRAWNUMBER(ZZ,上横线*1.1,天数);r2I中亿财经网财经门户

TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);r2I中亿财经网财经门户

红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MOBV>0,天数),DRAWNULL),COLORWHITE,NODRAW;r2I中亿财经网财经门户

横线起始价:=REF(C,天数),NODRAW;r2I中亿财经网财经门户

空间评估:=(横线起始价-C)/C*100,NODRAW;r2I中亿财经网财经门户

TT:=BARSLAST(ZZ);r2I中亿财经网财经门户

WQG:=CROSS(COUNT(CROSS(MOBV<本高/2 AND MOBV>0,0.5),ZZ)=1,0.5) AND ZZ>=0;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(CROSS(MOBV<本高/2,0.5))>0 AND MOBV>(前高+本高)/2,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

前高本高二分位:IF(MOBV>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1),DRAWNULL),COLORC0C000,DOTLINE;r2I中亿财经网财经门户

AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估,DRAWNULL),2));r2I中亿财经网财经门户

STICKLINE(MOBV>前高,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

STICKLINE(WQG,MOBV,0,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(MOBV<0 AND MOBV<前低 AND 前低<0,MOBV,前低,1,0),COLORBLUE;r2I中亿财经网财经门户

B1:=IF(CROSS(MOBV<0,0.5),BARSNEXT(BDTJ),DRAWNULL);r2I中亿财经网财经门户

TSB1:=BARSLAST(MOBV>0)-1;r2I中亿财经网财经门户

STICKLINE(BARSLAST(BDCL)>=0 AND MOBV<前低 AND MOBV<0,MOBV,前低,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(BDCL,MOBV,0,1,0),COLORWHITE;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(WQG)>0,MOBV,前高,1,0),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,(MOBV/10)*9,'前');r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,MOBV/10,'高');r2I中亿财经网财经门户

DRAWTEXT(ZZ,(MOBV/10)*7,'本'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(ZZ,MOBV/10,'高'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,(MOBV/10)*9,'低'),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,MOBV/10,'本'),COLORRED;r2I中亿财经网财经门户

IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;r2I中亿财经网财经门户

7. kd指标源码公式?

以下是通达信彩色KD指标KD共振公式源码(无源码的请下载附件导入)r2I中亿财经网财经门户

通达信彩色KD指标KD共振公式源码r2I中亿财经网财经门户

VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; r2I中亿财经网财经门户

K13:SMA(VAR13,3,1); r2I中亿财经网财经门户

D13:SMA(K13,3,1);r2I中亿财经网财经门户

DRAWBAND(K13,RGB(255,255,0),D13,RGB(0,255,0));r2I中亿财经网财经门户

{STICKLINE(K13>D13,K13,D13,8,0),COLOR0055AA;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,5,0),COLOR0077CC;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,3,0),COLOR0099DD;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,1,0),COLOR01BEE7;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,8,0),COLOR006600;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,5,0),COLOR009900;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,3,0),COLOR00BB00;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,1,0),COLOR00CC00;}r2I中亿财经网财经门户

VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; r2I中亿财经网财经门户

K55:SMA(VAR55,3,1); r2I中亿财经网财经门户

D55:SMA(K55,3,1); r2I中亿财经网财经门户

DRAWBAND(K55,RGB(255,0,0),D55,RGB(0,0,255));r2I中亿财经网财经门户

{STICKLINE(K55>D55,K55,D55,7,0),COLOR000045;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,5,0),COLOR000085;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,3,0),COLOR0000C5;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,1,0),COLOR0000E5;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,7,0),COLOR353500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,5,0),COLOR555500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,3,0),COLOR757500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,1,0),COLOR858500;}r2I中亿财经网财经门户

20,COLORWHITE; r2I中亿财经网财经门户

80,COLORWHITE; r2I中亿财经网财经门户

DIBU:= K13<20 AND D13<20 AND K55<20 AND D55<20; r2I中亿财经网财经门户

STICKLINE(DIBU=1,80,60,5.8,1),COLORRED; r2I中亿财经网财经门户

TOBU:= K13>80 AND D13>80 AND K55>80 AND D55>80; r2I中亿财经网财经门户

STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;r2I中亿财经网财经门户

8. cyc指标公式源码?

Cyc指标(Cycle Indicator)是一种用于研究股票、期货、外汇等市场的技术指标。它的计算方法比较复杂,涉及到多个参数和数学公式。以下是Cyc指标的计算公式源码,供参考:r2I中亿财经网财经门户

```r2I中亿财经网财经门户

// 计算Cyc指标r2I中亿财经网财经门户

double[] Cyc(double[] close, int n, double w) {r2I中亿财经网财经门户

// 初始化变量r2I中亿财经网财经门户

double[] cycle = new double[close.Length];r2I中亿财经网财经门户

double[] trend = new double[close.Length];r2I中亿财经网财经门户

double[] deviation = new double[close.Length];r2I中亿财经网财经门户

double[] period = new double[close.Length];r2I中亿财经网财经门户

double[] smooth = new double[close.Length];r2I中亿财经网财经门户

double[] dc = new double[close.Length];r2I中亿财经网财经门户

double[] cyc = new double[close.Length];r2I中亿财经网财经门户

double[] sum1 = new double[close.Length];r2I中亿财经网财经门户

double[] sum2 = new double[close.Length];r2I中亿财经网财经门户

double[] sum3 = new double[close.Length];r2I中亿财经网财经门户

double[] sum4 = new double[close.Length];r2I中亿财经网财经门户

double[] sum5 = new double[close.Length];r2I中亿财经网财经门户

double[] sum6 = new double[close.Length];r2I中亿财经网财经门户

double[] sum7 = new double[close.Length];r2I中亿财经网财经门户

double[] sum8 = new double[close.Length];r2I中亿财经网财经门户

double[] sum9 = new double[close.Length];r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

// 计算价格波动率r2I中亿财经网财经门户

double sum = 0;r2I中亿财经网财经门户

for (int j = i - n; j <= i; j++) {r2I中亿财经网财经门户

sum += Math.Abs(close[j] - close[j - 1]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

deviation[i] = sum / n;r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

if (deviation[i] != 0) {r2I中亿财经网财经门户

period[i] = 0.5 / (deviation[i] / close[i - 1]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

period[i] = period[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算趋势r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

if (i == n + 1) {r2I中亿财经网财经门户

trend[i] = 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

trend[i] = (1 - w) * trend[i - 1] + w * 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算平滑系数r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

smooth[i] = 0.15 * period[i] + 0.85 * smooth[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算DCr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

dc[i] = 0.5 * (1 + Math.Cos(2 * Math.PI / smooth[i]));r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算Cycr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

sum1[i] = 0.0962 * close[i] + 0.5769 * close[i - 2] - 0.5769 * close[i - 4] - 0.0962 * close[i - 6];r2I中亿财经网财经门户

sum2[i] = 0.075 * sum1[i] + 0.54 * sum1[i - 1] + 0.54 * sum1[i - 2] + 0.075 * sum1[i - 3];r2I中亿财经网财经门户

sum3[i] = sum2[i] - dc[i] * sum2[i];r2I中亿财经网财经门户

sum4[i] = 0.0962 * sum3[i] + 0.5769 * sum3[i - 2] - 0.5769 * sum3[i - 4] - 0.0962 * sum3[i - 6];r2I中亿财经网财经门户

sum5[i] = 0.075 * sum4[i] + 0.54 * sum4[i - 1] + 0.54 * sum4[i - 2] + 0.075 * sum4[i - 3];r2I中亿财经网财经门户

sum6[i] = sum5[i] - dc[i] * sum5[i];r2I中亿财经网财经门户

sum7[i] = 0.0962 * sum6[i] + 0.5769 * sum6[i - 2] - 0.5769 * sum6[i - 4] - 0.0962 * sum6[i - 6];r2I中亿财经网财经门户

sum8[i] = 0.075 * sum7[i] + 0.54 * sum7[i - 1] + 0.54 * sum7[i - 2] + 0.075 * sum7[i - 3];r2I中亿财经网财经门户

sum9[i] = sum8[i] - dc[i] * sum8[i];r2I中亿财经网财经门户

cyc[i] = 0.2 * sum9[i] + 0.8 * cyc[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

return cyc;r2I中亿财经网财经门户

}r2I中亿财经网财经门户

```r2I中亿财经网财经门户

其中,参数`close`表示收盘价序列,`n`表示周期长度,`w`表示趋势平滑系数。该源码中包含了Cyc指标的完整计算过程,可以直接调用该方法进行计算。r2I中亿财经网财经门户

9. kd指标源码公式?

以下是通达信彩色KD指标KD共振公式源码(无源码的请下载附件导入)r2I中亿财经网财经门户

通达信彩色KD指标KD共振公式源码r2I中亿财经网财经门户

VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; r2I中亿财经网财经门户

K13:SMA(VAR13,3,1); r2I中亿财经网财经门户

D13:SMA(K13,3,1);r2I中亿财经网财经门户

DRAWBAND(K13,RGB(255,255,0),D13,RGB(0,255,0));r2I中亿财经网财经门户

{STICKLINE(K13>D13,K13,D13,8,0),COLOR0055AA;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,5,0),COLOR0077CC;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,3,0),COLOR0099DD;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,1,0),COLOR01BEE7;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,8,0),COLOR006600;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,5,0),COLOR009900;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,3,0),COLOR00BB00;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,1,0),COLOR00CC00;}r2I中亿财经网财经门户

VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; r2I中亿财经网财经门户

K55:SMA(VAR55,3,1); r2I中亿财经网财经门户

D55:SMA(K55,3,1); r2I中亿财经网财经门户

DRAWBAND(K55,RGB(255,0,0),D55,RGB(0,0,255));r2I中亿财经网财经门户

{STICKLINE(K55>D55,K55,D55,7,0),COLOR000045;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,5,0),COLOR000085;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,3,0),COLOR0000C5;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,1,0),COLOR0000E5;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,7,0),COLOR353500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,5,0),COLOR555500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,3,0),COLOR757500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,1,0),COLOR858500;}r2I中亿财经网财经门户

20,COLORWHITE; r2I中亿财经网财经门户

80,COLORWHITE; r2I中亿财经网财经门户

DIBU:= K13<20 AND D13<20 AND K55<20 AND D55<20; r2I中亿财经网财经门户

STICKLINE(DIBU=1,80,60,5.8,1),COLORRED; r2I中亿财经网财经门户

TOBU:= K13>80 AND D13>80 AND K55>80 AND D55>80; r2I中亿财经网财经门户

STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;r2I中亿财经网财经门户

10. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。r2I中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。r2I中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。r2I中亿财经网财经门户

dmi指标公式源码r2I中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);r2I中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);r2I中亿财经网财经门户

LD:=ref(LOW,1)-LOW;r2I中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);r2I中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);r2I中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;r2I中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;r2I中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;r2I中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;r2I中亿财经网财经门户

11. 求助老师仿写一个牛市波段王指标,万分?

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1)r2I中亿财经网财经门户

; D:=SMA(K,3,1)r2I中亿财经网财经门户

; J:=3*K-2*D; XG:REF(J,1)r2I中亿财经网财经门户

12. kdj指标源码?

首先与基本的kdj指标类似,有K/d/j三条指标线的走势变化,还有一种尖角指示的指标线在个股的走势过程中,标注出指标线提示的买卖点位置,具体的源码如下:r2I中亿财经网财经门户

  D:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);r2I中亿财经网财经门户

  J:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5);r2I中亿财经网财经门户

  BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;r2I中亿财经网财经门户

  BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;r2I中亿财经网财经门户

  BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;r2I中亿财经网财经门户

  八字KDJ4:EMA(D,3),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

  M:EMA(J,7),COLORWHITE,LINETHICK2;r2I中亿财经网财经门户

  八字KDJ: ((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)r2I中亿财经网财经门户

  -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)r2I中亿财经网财经门户

  -50)*1.032+50),COLORRED,LINETHICK2;r2I中亿财经网财经门户

  买线:=EMA(C,2);r2I中亿财经网财经门户

  卖线:=EMA(SLOPE(C,21)*20+C,42);r2I中亿财经网财经门户

  STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

  COLORWHITE;r2I中亿财经网财经门户

  STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

八字kdj操盘图走势r2I中亿财经网财经门户

  COLORYELLOW;r2I中亿财经网财经门户

  VAR1:=1;r2I中亿财经网财经门户

  VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;r2I中亿财经网财经门户

  VAR3:=LLV(LOW,34);r2I中亿财经网财经门户

  VAR4:=HHV(HIGH,34);r2I中亿财经网财经门户

  RR:=EMA(EMA(CLOSE,9),9);r2I中亿财经网财经门户

  控盘:=(RR-REF(RR,1))/REF(RR,1)*1000;r2I中亿财经网财经门户

  A10:=CROSS(控盘,0);r2I中亿财经网财经门户

  买两股:IF(A10,50,0),LINETHICK1,COLORYELLOW;r2I中亿财经网财经门户

  AR1:=PEAKBARS(3,15,1)<10;r2I中亿财经网财经门户

  AR2:=IF(AR1=1,2,0);r2I中亿财经网财经门户

  顶:= IF(AR2=2,2,0);r2I中亿财经网财经门户

  卖出好:IF(顶>REF(顶,1),50,0),COLORWHITE;r2I中亿财经网财经门户

  DRAWTEXT(卖出好=45,50,'快走'),COLORRED;r2I中亿财经网财经门户

  买: (ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)r2I中亿财经网财经门户

  *50,STICK,COLORMAGENTA,LINETHICK3;r2I中亿财经网财经门户

  卖: (ZIG(3,35)REF(ZIG(3,35),2))r2I中亿财经网财经门户

  *50,STICK,COLORLIBLUE,LINETHICK3;r2I中亿财经网财经门户

  VAR21:=MA(CLOSE,80)-(MA(CLOSE,13))/(3);r2I中亿财经网财经门户

  VAR22:=MA((CLOSE-VAR21)/(VAR21),1);r2I中亿财经网财经门户

  VAR23:=(EMA(VAR22,12))*(0.69999998);r2I中亿财经网财经门户

  VAR24:=EMA(VAR22,3);r2I中亿财经网财经门户

  VAR25:=IF((LLV(VAR24-VAR23,12)>0),0,(-30));r2I中亿财经网财经门户

  VAR26:=FILTER((COUNT((VAR25<(-20)),3)=3),34);r2I中亿财经网财经门户

  快全买:IF(VAR26,50,0),COLORLICYAN;r2I中亿财经网财经门户

  顶线:100,COLORRED;r2I中亿财经网财经门户

  底线:0,COLORGREEN;r2I中亿财经网财经门户

13. dmi指标源码?

DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。r2I中亿财经网财经门户

DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。r2I中亿财经网财经门户

dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。r2I中亿财经网财经门户

dmi指标公式源码r2I中亿财经网财经门户

TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);r2I中亿财经网财经门户

HD:=HIGH-ref(HIGH,1);r2I中亿财经网财经门户

LD:=ref(LOW,1)-LOW;r2I中亿财经网财经门户

DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);r2I中亿财经网财经门户

DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);r2I中亿财经网财经门户

PDI:=DMP*100/TR,COLORFFFFFF;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;r2I中亿财经网财经门户

DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;r2I中亿财经网财经门户

MDI:=DMM*100/TR,COLOR00FFFF;r2I中亿财经网财经门户

ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;r2I中亿财经网财经门户

ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;r2I中亿财经网财经门户

14. cyc指标公式源码?

Cyc指标(Cycle Indicator)是一种用于研究股票、期货、外汇等市场的技术指标。它的计算方法比较复杂,涉及到多个参数和数学公式。以下是Cyc指标的计算公式源码,供参考:r2I中亿财经网财经门户

```r2I中亿财经网财经门户

// 计算Cyc指标r2I中亿财经网财经门户

double[] Cyc(double[] close, int n, double w) {r2I中亿财经网财经门户

// 初始化变量r2I中亿财经网财经门户

double[] cycle = new double[close.Length];r2I中亿财经网财经门户

double[] trend = new double[close.Length];r2I中亿财经网财经门户

double[] deviation = new double[close.Length];r2I中亿财经网财经门户

double[] period = new double[close.Length];r2I中亿财经网财经门户

double[] smooth = new double[close.Length];r2I中亿财经网财经门户

double[] dc = new double[close.Length];r2I中亿财经网财经门户

double[] cyc = new double[close.Length];r2I中亿财经网财经门户

double[] sum1 = new double[close.Length];r2I中亿财经网财经门户

double[] sum2 = new double[close.Length];r2I中亿财经网财经门户

double[] sum3 = new double[close.Length];r2I中亿财经网财经门户

double[] sum4 = new double[close.Length];r2I中亿财经网财经门户

double[] sum5 = new double[close.Length];r2I中亿财经网财经门户

double[] sum6 = new double[close.Length];r2I中亿财经网财经门户

double[] sum7 = new double[close.Length];r2I中亿财经网财经门户

double[] sum8 = new double[close.Length];r2I中亿财经网财经门户

double[] sum9 = new double[close.Length];r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

// 计算价格波动率r2I中亿财经网财经门户

double sum = 0;r2I中亿财经网财经门户

for (int j = i - n; j <= i; j++) {r2I中亿财经网财经门户

sum += Math.Abs(close[j] - close[j - 1]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

deviation[i] = sum / n;r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

if (deviation[i] != 0) {r2I中亿财经网财经门户

period[i] = 0.5 / (deviation[i] / close[i - 1]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

period[i] = period[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算趋势r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

if (i == n + 1) {r2I中亿财经网财经门户

trend[i] = 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

trend[i] = (1 - w) * trend[i - 1] + w * 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算平滑系数r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

smooth[i] = 0.15 * period[i] + 0.85 * smooth[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算DCr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

dc[i] = 0.5 * (1 + Math.Cos(2 * Math.PI / smooth[i]));r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算Cycr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

sum1[i] = 0.0962 * close[i] + 0.5769 * close[i - 2] - 0.5769 * close[i - 4] - 0.0962 * close[i - 6];r2I中亿财经网财经门户

sum2[i] = 0.075 * sum1[i] + 0.54 * sum1[i - 1] + 0.54 * sum1[i - 2] + 0.075 * sum1[i - 3];r2I中亿财经网财经门户

sum3[i] = sum2[i] - dc[i] * sum2[i];r2I中亿财经网财经门户

sum4[i] = 0.0962 * sum3[i] + 0.5769 * sum3[i - 2] - 0.5769 * sum3[i - 4] - 0.0962 * sum3[i - 6];r2I中亿财经网财经门户

sum5[i] = 0.075 * sum4[i] + 0.54 * sum4[i - 1] + 0.54 * sum4[i - 2] + 0.075 * sum4[i - 3];r2I中亿财经网财经门户

sum6[i] = sum5[i] - dc[i] * sum5[i];r2I中亿财经网财经门户

sum7[i] = 0.0962 * sum6[i] + 0.5769 * sum6[i - 2] - 0.5769 * sum6[i - 4] - 0.0962 * sum6[i - 6];r2I中亿财经网财经门户

sum8[i] = 0.075 * sum7[i] + 0.54 * sum7[i - 1] + 0.54 * sum7[i - 2] + 0.075 * sum7[i - 3];r2I中亿财经网财经门户

sum9[i] = sum8[i] - dc[i] * sum8[i];r2I中亿财经网财经门户

cyc[i] = 0.2 * sum9[i] + 0.8 * cyc[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

return cyc;r2I中亿财经网财经门户

}r2I中亿财经网财经门户

```r2I中亿财经网财经门户

其中,参数`close`表示收盘价序列,`n`表示周期长度,`w`表示趋势平滑系数。该源码中包含了Cyc指标的完整计算过程,可以直接调用该方法进行计算。r2I中亿财经网财经门户

15. obv公式源码?

MOBV:=OBV-MA(OBV,30);r2I中亿财经网财经门户

W1:STICKLINE(MOBV>0,MOBV,0,3,1),COLORRED;r2I中亿财经网财经门户

W2:STICKLINE(MOBV<0,MOBV,0,3,1),COLORCYAN;r2I中亿财经网财经门户

VA1:=HHVBARS(MOBV,BARSLAST(MOBV<0)+1);r2I中亿财经网财经门户

VA2:=CROSS(BACKSET(CROSS(0,MOBV),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

QG:=CROSS(BACKSET(CROSS(0,MOBV) OR (ISLASTBAR AND MOBV>0),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

前高:DRAWLINE(VA2,MOBV,REF(VA2,1),REF(MOBV,1),1),COLORMAGENTA;r2I中亿财经网财经门户

VA3:=LLVBARS(MOBV,BARSLAST(MOBV>0)+1);r2I中亿财经网财经门户

VA4:=CROSS(BACKSET(CROSS(MOBV,0),REF(VA3,1)+2),0.5);r2I中亿财经网财经门户

BD:=BARSLAST(FILTERX(CROSS(0,MOBV),BARSCOUNT(C)));r2I中亿财经网财经门户

前低:DRAWLINE(VA4,MOBV,REF(VA4,1),REF(MOBV,1),1);r2I中亿财经网财经门户

BDTJ:=IF(MOBV<0,FILTERX(MOBV=LLV(MOBV,BARSLAST(MOBV>0)),r2I中亿财经网财经门户

BARSCOUNT(C)),DRAWNULL);r2I中亿财经网财经门户

TSBDTJ:=BARSLAST(BDTJ);r2I中亿财经网财经门户

BDZH:=FILTERX(MOBV<CONST(LLV(MOBV,BD+1)),BARSCOUNT(C));r2I中亿财经网财经门户

BDTS:=BARSLAST(BDZH);r2I中亿财经网财经门户

本低:IF(BD+1>=1,CONST(LLV(MOBV,BD+1)),DRAWNULL);r2I中亿财经网财经门户

BDCL:=CROSS(COUNT(CROSS(MOBV>本低/2 AND MOBV<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;r2I中亿财经网财经门户

终点:=IF(ISLASTBAR AND MOBV>0 AND MOBV=HHV(MOBV,BARSLAST(MOBV<0)),1,IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));r2I中亿财经网财经门户

UU:=(终点=1 OR 终点=2) AND MOBV>0;r2I中亿财经网财经门户

ZZ:=FILTERX(UU,BARSCOUNT(C));r2I中亿财经网财经门户

本高:DRAWLINE(ZZ,MOBV,REF(ZZ,1),REF(MOBV,1),1),COLORWHITE;r2I中亿财经网财经门户

横线:=CONST(REF(MOBV,BARSLAST(ZZ)));r2I中亿财经网财经门户

WW:=MOBV>横线;r2I中亿财经网财经门户

起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));r2I中亿财经网财经门户

天数:=BARSLAST(起始点),COLORYELLOW,NODRAW;r2I中亿财经网财经门户

上横线:=DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;r2I中亿财经网财经门户

下横线:=DRAWLINE(BDZH,CONST(LLV(MOBV,BD+1)),BDTJ=1,MOBV,0),COLOR8080FF,DOTLINE;r2I中亿财经网财经门户

DRAWNUMBER(BDTJ,CONST(LLV(MOBV,BD+1))*0.9,BDTS);r2I中亿财经网财经门户

DRAWNUMBER(ZZ,上横线*1.1,天数);r2I中亿财经网财经门户

TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);r2I中亿财经网财经门户

红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MOBV>0,天数),DRAWNULL),COLORWHITE,NODRAW;r2I中亿财经网财经门户

横线起始价:=REF(C,天数),NODRAW;r2I中亿财经网财经门户

空间评估:=(横线起始价-C)/C*100,NODRAW;r2I中亿财经网财经门户

TT:=BARSLAST(ZZ);r2I中亿财经网财经门户

WQG:=CROSS(COUNT(CROSS(MOBV<本高/2 AND MOBV>0,0.5),ZZ)=1,0.5) AND ZZ>=0;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(CROSS(MOBV<本高/2,0.5))>0 AND MOBV>(前高+本高)/2,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

前高本高二分位:IF(MOBV>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1),DRAWNULL),COLORC0C000,DOTLINE;r2I中亿财经网财经门户

AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估,DRAWNULL),2));r2I中亿财经网财经门户

STICKLINE(MOBV>前高,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

STICKLINE(WQG,MOBV,0,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(MOBV<0 AND MOBV<前低 AND 前低<0,MOBV,前低,1,0),COLORBLUE;r2I中亿财经网财经门户

B1:=IF(CROSS(MOBV<0,0.5),BARSNEXT(BDTJ),DRAWNULL);r2I中亿财经网财经门户

TSB1:=BARSLAST(MOBV>0)-1;r2I中亿财经网财经门户

STICKLINE(BARSLAST(BDCL)>=0 AND MOBV<前低 AND MOBV<0,MOBV,前低,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(BDCL,MOBV,0,1,0),COLORWHITE;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(WQG)>0,MOBV,前高,1,0),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,(MOBV/10)*9,'前');r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,MOBV/10,'高');r2I中亿财经网财经门户

DRAWTEXT(ZZ,(MOBV/10)*7,'本'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(ZZ,MOBV/10,'高'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,(MOBV/10)*9,'低'),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,MOBV/10,'本'),COLORRED;r2I中亿财经网财经门户

IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;r2I中亿财经网财经门户

16. obv公式源码?

MOBV:=OBV-MA(OBV,30);r2I中亿财经网财经门户

W1:STICKLINE(MOBV>0,MOBV,0,3,1),COLORRED;r2I中亿财经网财经门户

W2:STICKLINE(MOBV<0,MOBV,0,3,1),COLORCYAN;r2I中亿财经网财经门户

VA1:=HHVBARS(MOBV,BARSLAST(MOBV<0)+1);r2I中亿财经网财经门户

VA2:=CROSS(BACKSET(CROSS(0,MOBV),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

QG:=CROSS(BACKSET(CROSS(0,MOBV) OR (ISLASTBAR AND MOBV>0),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

前高:DRAWLINE(VA2,MOBV,REF(VA2,1),REF(MOBV,1),1),COLORMAGENTA;r2I中亿财经网财经门户

VA3:=LLVBARS(MOBV,BARSLAST(MOBV>0)+1);r2I中亿财经网财经门户

VA4:=CROSS(BACKSET(CROSS(MOBV,0),REF(VA3,1)+2),0.5);r2I中亿财经网财经门户

BD:=BARSLAST(FILTERX(CROSS(0,MOBV),BARSCOUNT(C)));r2I中亿财经网财经门户

前低:DRAWLINE(VA4,MOBV,REF(VA4,1),REF(MOBV,1),1);r2I中亿财经网财经门户

BDTJ:=IF(MOBV<0,FILTERX(MOBV=LLV(MOBV,BARSLAST(MOBV>0)),r2I中亿财经网财经门户

BARSCOUNT(C)),DRAWNULL);r2I中亿财经网财经门户

TSBDTJ:=BARSLAST(BDTJ);r2I中亿财经网财经门户

BDZH:=FILTERX(MOBV<CONST(LLV(MOBV,BD+1)),BARSCOUNT(C));r2I中亿财经网财经门户

BDTS:=BARSLAST(BDZH);r2I中亿财经网财经门户

本低:IF(BD+1>=1,CONST(LLV(MOBV,BD+1)),DRAWNULL);r2I中亿财经网财经门户

BDCL:=CROSS(COUNT(CROSS(MOBV>本低/2 AND MOBV<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;r2I中亿财经网财经门户

终点:=IF(ISLASTBAR AND MOBV>0 AND MOBV=HHV(MOBV,BARSLAST(MOBV<0)),1,IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));r2I中亿财经网财经门户

UU:=(终点=1 OR 终点=2) AND MOBV>0;r2I中亿财经网财经门户

ZZ:=FILTERX(UU,BARSCOUNT(C));r2I中亿财经网财经门户

本高:DRAWLINE(ZZ,MOBV,REF(ZZ,1),REF(MOBV,1),1),COLORWHITE;r2I中亿财经网财经门户

横线:=CONST(REF(MOBV,BARSLAST(ZZ)));r2I中亿财经网财经门户

WW:=MOBV>横线;r2I中亿财经网财经门户

起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));r2I中亿财经网财经门户

天数:=BARSLAST(起始点),COLORYELLOW,NODRAW;r2I中亿财经网财经门户

上横线:=DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;r2I中亿财经网财经门户

下横线:=DRAWLINE(BDZH,CONST(LLV(MOBV,BD+1)),BDTJ=1,MOBV,0),COLOR8080FF,DOTLINE;r2I中亿财经网财经门户

DRAWNUMBER(BDTJ,CONST(LLV(MOBV,BD+1))*0.9,BDTS);r2I中亿财经网财经门户

DRAWNUMBER(ZZ,上横线*1.1,天数);r2I中亿财经网财经门户

TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);r2I中亿财经网财经门户

红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MOBV>0,天数),DRAWNULL),COLORWHITE,NODRAW;r2I中亿财经网财经门户

横线起始价:=REF(C,天数),NODRAW;r2I中亿财经网财经门户

空间评估:=(横线起始价-C)/C*100,NODRAW;r2I中亿财经网财经门户

TT:=BARSLAST(ZZ);r2I中亿财经网财经门户

WQG:=CROSS(COUNT(CROSS(MOBV<本高/2 AND MOBV>0,0.5),ZZ)=1,0.5) AND ZZ>=0;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(CROSS(MOBV<本高/2,0.5))>0 AND MOBV>(前高+本高)/2,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

前高本高二分位:IF(MOBV>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1),DRAWNULL),COLORC0C000,DOTLINE;r2I中亿财经网财经门户

AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估,DRAWNULL),2));r2I中亿财经网财经门户

STICKLINE(MOBV>前高,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

STICKLINE(WQG,MOBV,0,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(MOBV<0 AND MOBV<前低 AND 前低<0,MOBV,前低,1,0),COLORBLUE;r2I中亿财经网财经门户

B1:=IF(CROSS(MOBV<0,0.5),BARSNEXT(BDTJ),DRAWNULL);r2I中亿财经网财经门户

TSB1:=BARSLAST(MOBV>0)-1;r2I中亿财经网财经门户

STICKLINE(BARSLAST(BDCL)>=0 AND MOBV<前低 AND MOBV<0,MOBV,前低,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(BDCL,MOBV,0,1,0),COLORWHITE;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(WQG)>0,MOBV,前高,1,0),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,(MOBV/10)*9,'前');r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,MOBV/10,'高');r2I中亿财经网财经门户

DRAWTEXT(ZZ,(MOBV/10)*7,'本'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(ZZ,MOBV/10,'高'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,(MOBV/10)*9,'低'),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,MOBV/10,'本'),COLORRED;r2I中亿财经网财经门户

IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;r2I中亿财经网财经门户

17. 委比指标公式源码?

集合竞价量比r2I中亿财经网财经门户

量比:=V/REF(MA(V,5),1);r2I中亿财经网财经门户

D1:=ISBUYORDER AND DYNAINFO(9)*C/100>=50;{分笔买入单>50万}r2I中亿财经网财经门户

D2:=(DYNAINFO(23)-DYNAINFO(22))/CAPITAL*100>=0.4;{内外盘净};r2I中亿财经网财经门户

ST:=NOT(NAMELIKE('S') OR NAMELIKE('*S'));r2I中亿财经网财经门户

T1:=DYNAINFO(11)/DYNAINFO(4)>=1.03 AND DYNAINFO(11)/DYNAINFO(4)<=1.05 AND ST;r2I中亿财经网财经门户

T2:=H/DYNAINFO(3)<=1.075 AND C/DYNAINFO(3)<=1.06 AND C>=DYNAINFO(11) AND C<H;r2I中亿财经网财经门户

T3:=FROMOPEN>=10 AND FROMOPEN<=220;{时间控制}r2I中亿财经网财经门户

预警:=T1 AND T2 AND T3 AND D1 AND D2;r2I中亿财经网财经门户

流通股本:=FINANCE(1)/10000000<=30;r2I中亿财经网财经门户

换手率:=COUNT(VOL/CAPITAL*100<3,N)=0;r2I中亿财经网财经门户

现价:=DYNAINFO(7);r2I中亿财经网财经门户

均价:=DYNAINFO(11)+(DYNAINFO(11)*0.021);r2I中亿财经网财经门户

条件:=IF(现价>均价,1,0);r2I中亿财经网财经门户

集合竞价选股:量比 AND 预警 AND 流通股本 AND 条件;r2I中亿财经网财经门户

18. kd指标源码公式?

以下是通达信彩色KD指标KD共振公式源码(无源码的请下载附件导入)r2I中亿财经网财经门户

通达信彩色KD指标KD共振公式源码r2I中亿财经网财经门户

VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; r2I中亿财经网财经门户

K13:SMA(VAR13,3,1); r2I中亿财经网财经门户

D13:SMA(K13,3,1);r2I中亿财经网财经门户

DRAWBAND(K13,RGB(255,255,0),D13,RGB(0,255,0));r2I中亿财经网财经门户

{STICKLINE(K13>D13,K13,D13,8,0),COLOR0055AA;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,5,0),COLOR0077CC;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,3,0),COLOR0099DD;r2I中亿财经网财经门户

STICKLINE(K13>D13,K13,D13,1,0),COLOR01BEE7;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,8,0),COLOR006600;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,5,0),COLOR009900;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,3,0),COLOR00BB00;r2I中亿财经网财经门户

STICKLINE(K13<=D13,K13,D13,1,0),COLOR00CC00;}r2I中亿财经网财经门户

VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; r2I中亿财经网财经门户

K55:SMA(VAR55,3,1); r2I中亿财经网财经门户

D55:SMA(K55,3,1); r2I中亿财经网财经门户

DRAWBAND(K55,RGB(255,0,0),D55,RGB(0,0,255));r2I中亿财经网财经门户

{STICKLINE(K55>D55,K55,D55,7,0),COLOR000045;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,5,0),COLOR000085;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,3,0),COLOR0000C5;r2I中亿财经网财经门户

STICKLINE(K55>D55,K55,D55,1,0),COLOR0000E5;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,7,0),COLOR353500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,5,0),COLOR555500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,3,0),COLOR757500;r2I中亿财经网财经门户

STICKLINE(K55<=D55,K55,D55,1,0),COLOR858500;}r2I中亿财经网财经门户

20,COLORWHITE; r2I中亿财经网财经门户

80,COLORWHITE; r2I中亿财经网财经门户

DIBU:= K13<20 AND D13<20 AND K55<20 AND D55<20; r2I中亿财经网财经门户

STICKLINE(DIBU=1,80,60,5.8,1),COLORRED; r2I中亿财经网财经门户

TOBU:= K13>80 AND D13>80 AND K55>80 AND D55>80; r2I中亿财经网财经门户

STICKLINE(TOBU=1,40,20,5.8,1),COLORGREEN;r2I中亿财经网财经门户

19. kd公式源码?

N:=9;r2I中亿财经网财经门户

M1:=3;r2I中亿财经网财经门户

M2:=3;r2I中亿财经网财经门户

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;r2I中亿财经网财经门户

K:SMA(RSV,M1,1);r2I中亿财经网财经门户

D:SMA(K,M2,1);r2I中亿财经网财经门户

1.K线由右边向下交叉D值做卖,K线由右边向上交叉D值做买;r2I中亿财经网财经门户

⒉.高档连续二次向下交叉确认跌势,低挡连续二次向上交叉确认涨势;3.D值<20%超卖,D值>80%超买;r2I中亿财经网财经门户

4.KD值于50%左右徘徊或交叉时,无意义;5.投机性太强的个股不适用;r2I中亿财经网财经门户

6.可观察KD值同股价的背离,以确认高低点。r2I中亿财经网财经门户

20. 求助老师仿写一个牛市波段王指标,万分?

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1)r2I中亿财经网财经门户

; D:=SMA(K,3,1)r2I中亿财经网财经门户

; J:=3*K-2*D; XG:REF(J,1)r2I中亿财经网财经门户

21. kdj指标源码?

首先与基本的kdj指标类似,有K/d/j三条指标线的走势变化,还有一种尖角指示的指标线在个股的走势过程中,标注出指标线提示的买卖点位置,具体的源码如下:r2I中亿财经网财经门户

  D:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);r2I中亿财经网财经门户

  J:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5);r2I中亿财经网财经门户

  BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;r2I中亿财经网财经门户

  BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;r2I中亿财经网财经门户

  BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;r2I中亿财经网财经门户

  八字KDJ4:EMA(D,3),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

  M:EMA(J,7),COLORWHITE,LINETHICK2;r2I中亿财经网财经门户

  八字KDJ: ((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)r2I中亿财经网财经门户

  -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)r2I中亿财经网财经门户

  -50)*1.032+50),COLORRED,LINETHICK2;r2I中亿财经网财经门户

  买线:=EMA(C,2);r2I中亿财经网财经门户

  卖线:=EMA(SLOPE(C,21)*20+C,42);r2I中亿财经网财经门户

  STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

  COLORWHITE;r2I中亿财经网财经门户

  STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

八字kdj操盘图走势r2I中亿财经网财经门户

  COLORYELLOW;r2I中亿财经网财经门户

  VAR1:=1;r2I中亿财经网财经门户

  VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;r2I中亿财经网财经门户

  VAR3:=LLV(LOW,34);r2I中亿财经网财经门户

  VAR4:=HHV(HIGH,34);r2I中亿财经网财经门户

  RR:=EMA(EMA(CLOSE,9),9);r2I中亿财经网财经门户

  控盘:=(RR-REF(RR,1))/REF(RR,1)*1000;r2I中亿财经网财经门户

  A10:=CROSS(控盘,0);r2I中亿财经网财经门户

  买两股:IF(A10,50,0),LINETHICK1,COLORYELLOW;r2I中亿财经网财经门户

  AR1:=PEAKBARS(3,15,1)<10;r2I中亿财经网财经门户

  AR2:=IF(AR1=1,2,0);r2I中亿财经网财经门户

  顶:= IF(AR2=2,2,0);r2I中亿财经网财经门户

  卖出好:IF(顶>REF(顶,1),50,0),COLORWHITE;r2I中亿财经网财经门户

  DRAWTEXT(卖出好=45,50,'快走'),COLORRED;r2I中亿财经网财经门户

  买: (ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)r2I中亿财经网财经门户

  *50,STICK,COLORMAGENTA,LINETHICK3;r2I中亿财经网财经门户

  卖: (ZIG(3,35)REF(ZIG(3,35),2))r2I中亿财经网财经门户

  *50,STICK,COLORLIBLUE,LINETHICK3;r2I中亿财经网财经门户

  VAR21:=MA(CLOSE,80)-(MA(CLOSE,13))/(3);r2I中亿财经网财经门户

  VAR22:=MA((CLOSE-VAR21)/(VAR21),1);r2I中亿财经网财经门户

  VAR23:=(EMA(VAR22,12))*(0.69999998);r2I中亿财经网财经门户

  VAR24:=EMA(VAR22,3);r2I中亿财经网财经门户

  VAR25:=IF((LLV(VAR24-VAR23,12)>0),0,(-30));r2I中亿财经网财经门户

  VAR26:=FILTER((COUNT((VAR25<(-20)),3)=3),34);r2I中亿财经网财经门户

  快全买:IF(VAR26,50,0),COLORLICYAN;r2I中亿财经网财经门户

  顶线:100,COLORRED;r2I中亿财经网财经门户

  底线:0,COLORGREEN;r2I中亿财经网财经门户

22. kd公式源码?

N:=9;r2I中亿财经网财经门户

M1:=3;r2I中亿财经网财经门户

M2:=3;r2I中亿财经网财经门户

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;r2I中亿财经网财经门户

K:SMA(RSV,M1,1);r2I中亿财经网财经门户

D:SMA(K,M2,1);r2I中亿财经网财经门户

1.K线由右边向下交叉D值做卖,K线由右边向上交叉D值做买;r2I中亿财经网财经门户

⒉.高档连续二次向下交叉确认跌势,低挡连续二次向上交叉确认涨势;3.D值<20%超卖,D值>80%超买;r2I中亿财经网财经门户

4.KD值于50%左右徘徊或交叉时,无意义;5.投机性太强的个股不适用;r2I中亿财经网财经门户

6.可观察KD值同股价的背离,以确认高低点。r2I中亿财经网财经门户

23. kdj指标源码?

首先与基本的kdj指标类似,有K/d/j三条指标线的走势变化,还有一种尖角指示的指标线在个股的走势过程中,标注出指标线提示的买卖点位置,具体的源码如下:r2I中亿财经网财经门户

  D:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);r2I中亿财经网财经门户

  J:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5);r2I中亿财经网财经门户

  BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;r2I中亿财经网财经门户

  BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;r2I中亿财经网财经门户

  BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;r2I中亿财经网财经门户

  八字KDJ4:EMA(D,3),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

  M:EMA(J,7),COLORWHITE,LINETHICK2;r2I中亿财经网财经门户

  八字KDJ: ((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)r2I中亿财经网财经门户

  -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)r2I中亿财经网财经门户

  -50)*1.032+50),COLORRED,LINETHICK2;r2I中亿财经网财经门户

  买线:=EMA(C,2);r2I中亿财经网财经门户

  卖线:=EMA(SLOPE(C,21)*20+C,42);r2I中亿财经网财经门户

  STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

  COLORWHITE;r2I中亿财经网财经门户

  STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

八字kdj操盘图走势r2I中亿财经网财经门户

  COLORYELLOW;r2I中亿财经网财经门户

  VAR1:=1;r2I中亿财经网财经门户

  VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;r2I中亿财经网财经门户

  VAR3:=LLV(LOW,34);r2I中亿财经网财经门户

  VAR4:=HHV(HIGH,34);r2I中亿财经网财经门户

  RR:=EMA(EMA(CLOSE,9),9);r2I中亿财经网财经门户

  控盘:=(RR-REF(RR,1))/REF(RR,1)*1000;r2I中亿财经网财经门户

  A10:=CROSS(控盘,0);r2I中亿财经网财经门户

  买两股:IF(A10,50,0),LINETHICK1,COLORYELLOW;r2I中亿财经网财经门户

  AR1:=PEAKBARS(3,15,1)<10;r2I中亿财经网财经门户

  AR2:=IF(AR1=1,2,0);r2I中亿财经网财经门户

  顶:= IF(AR2=2,2,0);r2I中亿财经网财经门户

  卖出好:IF(顶>REF(顶,1),50,0),COLORWHITE;r2I中亿财经网财经门户

  DRAWTEXT(卖出好=45,50,'快走'),COLORRED;r2I中亿财经网财经门户

  买: (ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)r2I中亿财经网财经门户

  *50,STICK,COLORMAGENTA,LINETHICK3;r2I中亿财经网财经门户

  卖: (ZIG(3,35)REF(ZIG(3,35),2))r2I中亿财经网财经门户

  *50,STICK,COLORLIBLUE,LINETHICK3;r2I中亿财经网财经门户

  VAR21:=MA(CLOSE,80)-(MA(CLOSE,13))/(3);r2I中亿财经网财经门户

  VAR22:=MA((CLOSE-VAR21)/(VAR21),1);r2I中亿财经网财经门户

  VAR23:=(EMA(VAR22,12))*(0.69999998);r2I中亿财经网财经门户

  VAR24:=EMA(VAR22,3);r2I中亿财经网财经门户

  VAR25:=IF((LLV(VAR24-VAR23,12)>0),0,(-30));r2I中亿财经网财经门户

  VAR26:=FILTER((COUNT((VAR25<(-20)),3)=3),34);r2I中亿财经网财经门户

  快全买:IF(VAR26,50,0),COLORLICYAN;r2I中亿财经网财经门户

  顶线:100,COLORRED;r2I中亿财经网财经门户

  底线:0,COLORGREEN;r2I中亿财经网财经门户

24. obv公式源码?

MOBV:=OBV-MA(OBV,30);r2I中亿财经网财经门户

W1:STICKLINE(MOBV>0,MOBV,0,3,1),COLORRED;r2I中亿财经网财经门户

W2:STICKLINE(MOBV<0,MOBV,0,3,1),COLORCYAN;r2I中亿财经网财经门户

VA1:=HHVBARS(MOBV,BARSLAST(MOBV<0)+1);r2I中亿财经网财经门户

VA2:=CROSS(BACKSET(CROSS(0,MOBV),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

QG:=CROSS(BACKSET(CROSS(0,MOBV) OR (ISLASTBAR AND MOBV>0),REF(VA1,1)+2),0.5);r2I中亿财经网财经门户

前高:DRAWLINE(VA2,MOBV,REF(VA2,1),REF(MOBV,1),1),COLORMAGENTA;r2I中亿财经网财经门户

VA3:=LLVBARS(MOBV,BARSLAST(MOBV>0)+1);r2I中亿财经网财经门户

VA4:=CROSS(BACKSET(CROSS(MOBV,0),REF(VA3,1)+2),0.5);r2I中亿财经网财经门户

BD:=BARSLAST(FILTERX(CROSS(0,MOBV),BARSCOUNT(C)));r2I中亿财经网财经门户

前低:DRAWLINE(VA4,MOBV,REF(VA4,1),REF(MOBV,1),1);r2I中亿财经网财经门户

BDTJ:=IF(MOBV<0,FILTERX(MOBV=LLV(MOBV,BARSLAST(MOBV>0)),r2I中亿财经网财经门户

BARSCOUNT(C)),DRAWNULL);r2I中亿财经网财经门户

TSBDTJ:=BARSLAST(BDTJ);r2I中亿财经网财经门户

BDZH:=FILTERX(MOBV<CONST(LLV(MOBV,BD+1)),BARSCOUNT(C));r2I中亿财经网财经门户

BDTS:=BARSLAST(BDZH);r2I中亿财经网财经门户

本低:IF(BD+1>=1,CONST(LLV(MOBV,BD+1)),DRAWNULL);r2I中亿财经网财经门户

BDCL:=CROSS(COUNT(CROSS(MOBV>本低/2 AND MOBV<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;r2I中亿财经网财经门户

终点:=IF(ISLASTBAR AND MOBV>0 AND MOBV=HHV(MOBV,BARSLAST(MOBV<0)),1,IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));r2I中亿财经网财经门户

UU:=(终点=1 OR 终点=2) AND MOBV>0;r2I中亿财经网财经门户

ZZ:=FILTERX(UU,BARSCOUNT(C));r2I中亿财经网财经门户

本高:DRAWLINE(ZZ,MOBV,REF(ZZ,1),REF(MOBV,1),1),COLORWHITE;r2I中亿财经网财经门户

横线:=CONST(REF(MOBV,BARSLAST(ZZ)));r2I中亿财经网财经门户

WW:=MOBV>横线;r2I中亿财经网财经门户

起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));r2I中亿财经网财经门户

天数:=BARSLAST(起始点),COLORYELLOW,NODRAW;r2I中亿财经网财经门户

上横线:=DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;r2I中亿财经网财经门户

下横线:=DRAWLINE(BDZH,CONST(LLV(MOBV,BD+1)),BDTJ=1,MOBV,0),COLOR8080FF,DOTLINE;r2I中亿财经网财经门户

DRAWNUMBER(BDTJ,CONST(LLV(MOBV,BD+1))*0.9,BDTS);r2I中亿财经网财经门户

DRAWNUMBER(ZZ,上横线*1.1,天数);r2I中亿财经网财经门户

TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);r2I中亿财经网财经门户

红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MOBV>0,天数),DRAWNULL),COLORWHITE,NODRAW;r2I中亿财经网财经门户

横线起始价:=REF(C,天数),NODRAW;r2I中亿财经网财经门户

空间评估:=(横线起始价-C)/C*100,NODRAW;r2I中亿财经网财经门户

TT:=BARSLAST(ZZ);r2I中亿财经网财经门户

WQG:=CROSS(COUNT(CROSS(MOBV<本高/2 AND MOBV>0,0.5),ZZ)=1,0.5) AND ZZ>=0;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(CROSS(MOBV<本高/2,0.5))>0 AND MOBV>(前高+本高)/2,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

前高本高二分位:IF(MOBV>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1),DRAWNULL),COLORC0C000,DOTLINE;r2I中亿财经网财经门户

AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估,DRAWNULL),2));r2I中亿财经网财经门户

STICKLINE(MOBV>前高,MOBV,前高,1,0),COLORYELLOW;r2I中亿财经网财经门户

STICKLINE(WQG,MOBV,0,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(MOBV<0 AND MOBV<前低 AND 前低<0,MOBV,前低,1,0),COLORBLUE;r2I中亿财经网财经门户

B1:=IF(CROSS(MOBV<0,0.5),BARSNEXT(BDTJ),DRAWNULL);r2I中亿财经网财经门户

TSB1:=BARSLAST(MOBV>0)-1;r2I中亿财经网财经门户

STICKLINE(BARSLAST(BDCL)>=0 AND MOBV<前低 AND MOBV<0,MOBV,前低,1,0),COLORGREEN;r2I中亿财经网财经门户

STICKLINE(BDCL,MOBV,0,1,0),COLORWHITE;r2I中亿财经网财经门户

STICKLINE(MOBV>前高 AND 本高>前高 AND BARSLAST(WQG)>0,MOBV,前高,1,0),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,(MOBV/10)*9,'前');r2I中亿财经网财经门户

DRAWTEXT(VA2 AND VA2!=UU,MOBV/10,'高');r2I中亿财经网财经门户

DRAWTEXT(ZZ,(MOBV/10)*7,'本'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(ZZ,MOBV/10,'高'),COLORBLUE;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,(MOBV/10)*9,'低'),COLORRED;r2I中亿财经网财经门户

DRAWTEXT(BDTJ,MOBV/10,'本'),COLORRED;r2I中亿财经网财经门户

IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;r2I中亿财经网财经门户

25. kd公式源码?

N:=9;r2I中亿财经网财经门户

M1:=3;r2I中亿财经网财经门户

M2:=3;r2I中亿财经网财经门户

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;r2I中亿财经网财经门户

K:SMA(RSV,M1,1);r2I中亿财经网财经门户

D:SMA(K,M2,1);r2I中亿财经网财经门户

1.K线由右边向下交叉D值做卖,K线由右边向上交叉D值做买;r2I中亿财经网财经门户

⒉.高档连续二次向下交叉确认跌势,低挡连续二次向上交叉确认涨势;3.D值<20%超卖,D值>80%超买;r2I中亿财经网财经门户

4.KD值于50%左右徘徊或交叉时,无意义;5.投机性太强的个股不适用;r2I中亿财经网财经门户

6.可观察KD值同股价的背离,以确认高低点。r2I中亿财经网财经门户

26. kdj指标源码?

首先与基本的kdj指标类似,有K/d/j三条指标线的走势变化,还有一种尖角指示的指标线在个股的走势过程中,标注出指标线提示的买卖点位置,具体的源码如下:r2I中亿财经网财经门户

  D:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);r2I中亿财经网财经门户

  J:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5);r2I中亿财经网财经门户

  BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;r2I中亿财经网财经门户

  BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;r2I中亿财经网财经门户

  BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;r2I中亿财经网财经门户

  八字KDJ4:EMA(D,3),COLOR00FF00,LINETHICK2;r2I中亿财经网财经门户

  M:EMA(J,7),COLORWHITE,LINETHICK2;r2I中亿财经网财经门户

  八字KDJ: ((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)r2I中亿财经网财经门户

  -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)r2I中亿财经网财经门户

  -50)*1.032+50),COLORRED,LINETHICK2;r2I中亿财经网财经门户

  买线:=EMA(C,2);r2I中亿财经网财经门户

  卖线:=EMA(SLOPE(C,21)*20+C,42);r2I中亿财经网财经门户

  STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

  COLORWHITE;r2I中亿财经网财经门户

  STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),r2I中亿财经网财经门户

八字kdj操盘图走势r2I中亿财经网财经门户

  COLORYELLOW;r2I中亿财经网财经门户

  VAR1:=1;r2I中亿财经网财经门户

  VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;r2I中亿财经网财经门户

  VAR3:=LLV(LOW,34);r2I中亿财经网财经门户

  VAR4:=HHV(HIGH,34);r2I中亿财经网财经门户

  RR:=EMA(EMA(CLOSE,9),9);r2I中亿财经网财经门户

  控盘:=(RR-REF(RR,1))/REF(RR,1)*1000;r2I中亿财经网财经门户

  A10:=CROSS(控盘,0);r2I中亿财经网财经门户

  买两股:IF(A10,50,0),LINETHICK1,COLORYELLOW;r2I中亿财经网财经门户

  AR1:=PEAKBARS(3,15,1)<10;r2I中亿财经网财经门户

  AR2:=IF(AR1=1,2,0);r2I中亿财经网财经门户

  顶:= IF(AR2=2,2,0);r2I中亿财经网财经门户

  卖出好:IF(顶>REF(顶,1),50,0),COLORWHITE;r2I中亿财经网财经门户

  DRAWTEXT(卖出好=45,50,'快走'),COLORRED;r2I中亿财经网财经门户

  买: (ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)r2I中亿财经网财经门户

  *50,STICK,COLORMAGENTA,LINETHICK3;r2I中亿财经网财经门户

  卖: (ZIG(3,35)REF(ZIG(3,35),2))r2I中亿财经网财经门户

  *50,STICK,COLORLIBLUE,LINETHICK3;r2I中亿财经网财经门户

  VAR21:=MA(CLOSE,80)-(MA(CLOSE,13))/(3);r2I中亿财经网财经门户

  VAR22:=MA((CLOSE-VAR21)/(VAR21),1);r2I中亿财经网财经门户

  VAR23:=(EMA(VAR22,12))*(0.69999998);r2I中亿财经网财经门户

  VAR24:=EMA(VAR22,3);r2I中亿财经网财经门户

  VAR25:=IF((LLV(VAR24-VAR23,12)>0),0,(-30));r2I中亿财经网财经门户

  VAR26:=FILTER((COUNT((VAR25<(-20)),3)=3),34);r2I中亿财经网财经门户

  快全买:IF(VAR26,50,0),COLORLICYAN;r2I中亿财经网财经门户

  顶线:100,COLORRED;r2I中亿财经网财经门户

  底线:0,COLORGREEN;r2I中亿财经网财经门户

27. kd公式源码?

N:=9;r2I中亿财经网财经门户

M1:=3;r2I中亿财经网财经门户

M2:=3;r2I中亿财经网财经门户

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;r2I中亿财经网财经门户

K:SMA(RSV,M1,1);r2I中亿财经网财经门户

D:SMA(K,M2,1);r2I中亿财经网财经门户

1.K线由右边向下交叉D值做卖,K线由右边向上交叉D值做买;r2I中亿财经网财经门户

⒉.高档连续二次向下交叉确认跌势,低挡连续二次向上交叉确认涨势;3.D值<20%超卖,D值>80%超买;r2I中亿财经网财经门户

4.KD值于50%左右徘徊或交叉时,无意义;5.投机性太强的个股不适用;r2I中亿财经网财经门户

6.可观察KD值同股价的背离,以确认高低点。r2I中亿财经网财经门户

28. macd指标源代码是什么?

macd指标源代码如下:r2I中亿财经网财经门户

D:2*(DIFF-DEA), COLORSTICK,LINETHICK2;r2I中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;r2I中亿财经网财经门户

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;r2I中亿财经网财经门户

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;r2I中亿财经网财经门户

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));r2I中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;r2I中亿财经网财经门户

29. macd指标源代码是什么?

macd指标源代码如下:r2I中亿财经网财经门户

D:2*(DIFF-DEA), COLORSTICK,LINETHICK2;r2I中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;r2I中亿财经网财经门户

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;r2I中亿财经网财经门户

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;r2I中亿财经网财经门户

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));r2I中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;r2I中亿财经网财经门户

30. macd指标源代码是什么?

macd指标源代码如下:r2I中亿财经网财经门户

D:2*(DIFF-DEA), COLORSTICK,LINETHICK2;r2I中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;r2I中亿财经网财经门户

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;r2I中亿财经网财经门户

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;r2I中亿财经网财经门户

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));r2I中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;r2I中亿财经网财经门户

31. 委比指标公式源码?

集合竞价量比r2I中亿财经网财经门户

量比:=V/REF(MA(V,5),1);r2I中亿财经网财经门户

D1:=ISBUYORDER AND DYNAINFO(9)*C/100>=50;{分笔买入单>50万}r2I中亿财经网财经门户

D2:=(DYNAINFO(23)-DYNAINFO(22))/CAPITAL*100>=0.4;{内外盘净};r2I中亿财经网财经门户

ST:=NOT(NAMELIKE('S') OR NAMELIKE('*S'));r2I中亿财经网财经门户

T1:=DYNAINFO(11)/DYNAINFO(4)>=1.03 AND DYNAINFO(11)/DYNAINFO(4)<=1.05 AND ST;r2I中亿财经网财经门户

T2:=H/DYNAINFO(3)<=1.075 AND C/DYNAINFO(3)<=1.06 AND C>=DYNAINFO(11) AND C<H;r2I中亿财经网财经门户

T3:=FROMOPEN>=10 AND FROMOPEN<=220;{时间控制}r2I中亿财经网财经门户

预警:=T1 AND T2 AND T3 AND D1 AND D2;r2I中亿财经网财经门户

流通股本:=FINANCE(1)/10000000<=30;r2I中亿财经网财经门户

换手率:=COUNT(VOL/CAPITAL*100<3,N)=0;r2I中亿财经网财经门户

现价:=DYNAINFO(7);r2I中亿财经网财经门户

均价:=DYNAINFO(11)+(DYNAINFO(11)*0.021);r2I中亿财经网财经门户

条件:=IF(现价>均价,1,0);r2I中亿财经网财经门户

集合竞价选股:量比 AND 预警 AND 流通股本 AND 条件;r2I中亿财经网财经门户

32. cyc指标公式源码?

Cyc指标(Cycle Indicator)是一种用于研究股票、期货、外汇等市场的技术指标。它的计算方法比较复杂,涉及到多个参数和数学公式。以下是Cyc指标的计算公式源码,供参考:r2I中亿财经网财经门户

```r2I中亿财经网财经门户

// 计算Cyc指标r2I中亿财经网财经门户

double[] Cyc(double[] close, int n, double w) {r2I中亿财经网财经门户

// 初始化变量r2I中亿财经网财经门户

double[] cycle = new double[close.Length];r2I中亿财经网财经门户

double[] trend = new double[close.Length];r2I中亿财经网财经门户

double[] deviation = new double[close.Length];r2I中亿财经网财经门户

double[] period = new double[close.Length];r2I中亿财经网财经门户

double[] smooth = new double[close.Length];r2I中亿财经网财经门户

double[] dc = new double[close.Length];r2I中亿财经网财经门户

double[] cyc = new double[close.Length];r2I中亿财经网财经门户

double[] sum1 = new double[close.Length];r2I中亿财经网财经门户

double[] sum2 = new double[close.Length];r2I中亿财经网财经门户

double[] sum3 = new double[close.Length];r2I中亿财经网财经门户

double[] sum4 = new double[close.Length];r2I中亿财经网财经门户

double[] sum5 = new double[close.Length];r2I中亿财经网财经门户

double[] sum6 = new double[close.Length];r2I中亿财经网财经门户

double[] sum7 = new double[close.Length];r2I中亿财经网财经门户

double[] sum8 = new double[close.Length];r2I中亿财经网财经门户

double[] sum9 = new double[close.Length];r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

// 计算价格波动率r2I中亿财经网财经门户

double sum = 0;r2I中亿财经网财经门户

for (int j = i - n; j <= i; j++) {r2I中亿财经网财经门户

sum += Math.Abs(close[j] - close[j - 1]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

deviation[i] = sum / n;r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

if (deviation[i] != 0) {r2I中亿财经网财经门户

period[i] = 0.5 / (deviation[i] / close[i - 1]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

period[i] = period[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算趋势r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

if (i == n + 1) {r2I中亿财经网财经门户

trend[i] = 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

trend[i] = (1 - w) * trend[i - 1] + w * 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算平滑系数r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

smooth[i] = 0.15 * period[i] + 0.85 * smooth[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算DCr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

dc[i] = 0.5 * (1 + Math.Cos(2 * Math.PI / smooth[i]));r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算Cycr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

sum1[i] = 0.0962 * close[i] + 0.5769 * close[i - 2] - 0.5769 * close[i - 4] - 0.0962 * close[i - 6];r2I中亿财经网财经门户

sum2[i] = 0.075 * sum1[i] + 0.54 * sum1[i - 1] + 0.54 * sum1[i - 2] + 0.075 * sum1[i - 3];r2I中亿财经网财经门户

sum3[i] = sum2[i] - dc[i] * sum2[i];r2I中亿财经网财经门户

sum4[i] = 0.0962 * sum3[i] + 0.5769 * sum3[i - 2] - 0.5769 * sum3[i - 4] - 0.0962 * sum3[i - 6];r2I中亿财经网财经门户

sum5[i] = 0.075 * sum4[i] + 0.54 * sum4[i - 1] + 0.54 * sum4[i - 2] + 0.075 * sum4[i - 3];r2I中亿财经网财经门户

sum6[i] = sum5[i] - dc[i] * sum5[i];r2I中亿财经网财经门户

sum7[i] = 0.0962 * sum6[i] + 0.5769 * sum6[i - 2] - 0.5769 * sum6[i - 4] - 0.0962 * sum6[i - 6];r2I中亿财经网财经门户

sum8[i] = 0.075 * sum7[i] + 0.54 * sum7[i - 1] + 0.54 * sum7[i - 2] + 0.075 * sum7[i - 3];r2I中亿财经网财经门户

sum9[i] = sum8[i] - dc[i] * sum8[i];r2I中亿财经网财经门户

cyc[i] = 0.2 * sum9[i] + 0.8 * cyc[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

return cyc;r2I中亿财经网财经门户

}r2I中亿财经网财经门户

```r2I中亿财经网财经门户

其中,参数`close`表示收盘价序列,`n`表示周期长度,`w`表示趋势平滑系数。该源码中包含了Cyc指标的完整计算过程,可以直接调用该方法进行计算。r2I中亿财经网财经门户

33. macd指标源代码是什么?

macd指标源代码如下:r2I中亿财经网财经门户

D:2*(DIFF-DEA), COLORSTICK,LINETHICK2;r2I中亿财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;r2I中亿财经网财经门户

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;r2I中亿财经网财经门户

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;r2I中亿财经网财经门户

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));r2I中亿财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;r2I中亿财经网财经门户

34. 委比指标公式源码?

集合竞价量比r2I中亿财经网财经门户

量比:=V/REF(MA(V,5),1);r2I中亿财经网财经门户

D1:=ISBUYORDER AND DYNAINFO(9)*C/100>=50;{分笔买入单>50万}r2I中亿财经网财经门户

D2:=(DYNAINFO(23)-DYNAINFO(22))/CAPITAL*100>=0.4;{内外盘净};r2I中亿财经网财经门户

ST:=NOT(NAMELIKE('S') OR NAMELIKE('*S'));r2I中亿财经网财经门户

T1:=DYNAINFO(11)/DYNAINFO(4)>=1.03 AND DYNAINFO(11)/DYNAINFO(4)<=1.05 AND ST;r2I中亿财经网财经门户

T2:=H/DYNAINFO(3)<=1.075 AND C/DYNAINFO(3)<=1.06 AND C>=DYNAINFO(11) AND C<H;r2I中亿财经网财经门户

T3:=FROMOPEN>=10 AND FROMOPEN<=220;{时间控制}r2I中亿财经网财经门户

预警:=T1 AND T2 AND T3 AND D1 AND D2;r2I中亿财经网财经门户

流通股本:=FINANCE(1)/10000000<=30;r2I中亿财经网财经门户

换手率:=COUNT(VOL/CAPITAL*100<3,N)=0;r2I中亿财经网财经门户

现价:=DYNAINFO(7);r2I中亿财经网财经门户

均价:=DYNAINFO(11)+(DYNAINFO(11)*0.021);r2I中亿财经网财经门户

条件:=IF(现价>均价,1,0);r2I中亿财经网财经门户

集合竞价选股:量比 AND 预警 AND 流通股本 AND 条件;r2I中亿财经网财经门户

35. 委比指标公式源码?

集合竞价量比r2I中亿财经网财经门户

量比:=V/REF(MA(V,5),1);r2I中亿财经网财经门户

D1:=ISBUYORDER AND DYNAINFO(9)*C/100>=50;{分笔买入单>50万}r2I中亿财经网财经门户

D2:=(DYNAINFO(23)-DYNAINFO(22))/CAPITAL*100>=0.4;{内外盘净};r2I中亿财经网财经门户

ST:=NOT(NAMELIKE('S') OR NAMELIKE('*S'));r2I中亿财经网财经门户

T1:=DYNAINFO(11)/DYNAINFO(4)>=1.03 AND DYNAINFO(11)/DYNAINFO(4)<=1.05 AND ST;r2I中亿财经网财经门户

T2:=H/DYNAINFO(3)<=1.075 AND C/DYNAINFO(3)<=1.06 AND C>=DYNAINFO(11) AND C<H;r2I中亿财经网财经门户

T3:=FROMOPEN>=10 AND FROMOPEN<=220;{时间控制}r2I中亿财经网财经门户

预警:=T1 AND T2 AND T3 AND D1 AND D2;r2I中亿财经网财经门户

流通股本:=FINANCE(1)/10000000<=30;r2I中亿财经网财经门户

换手率:=COUNT(VOL/CAPITAL*100<3,N)=0;r2I中亿财经网财经门户

现价:=DYNAINFO(7);r2I中亿财经网财经门户

均价:=DYNAINFO(11)+(DYNAINFO(11)*0.021);r2I中亿财经网财经门户

条件:=IF(现价>均价,1,0);r2I中亿财经网财经门户

集合竞价选股:量比 AND 预警 AND 流通股本 AND 条件;r2I中亿财经网财经门户

36. cyc指标公式源码?

Cyc指标(Cycle Indicator)是一种用于研究股票、期货、外汇等市场的技术指标。它的计算方法比较复杂,涉及到多个参数和数学公式。以下是Cyc指标的计算公式源码,供参考:r2I中亿财经网财经门户

```r2I中亿财经网财经门户

// 计算Cyc指标r2I中亿财经网财经门户

double[] Cyc(double[] close, int n, double w) {r2I中亿财经网财经门户

// 初始化变量r2I中亿财经网财经门户

double[] cycle = new double[close.Length];r2I中亿财经网财经门户

double[] trend = new double[close.Length];r2I中亿财经网财经门户

double[] deviation = new double[close.Length];r2I中亿财经网财经门户

double[] period = new double[close.Length];r2I中亿财经网财经门户

double[] smooth = new double[close.Length];r2I中亿财经网财经门户

double[] dc = new double[close.Length];r2I中亿财经网财经门户

double[] cyc = new double[close.Length];r2I中亿财经网财经门户

double[] sum1 = new double[close.Length];r2I中亿财经网财经门户

double[] sum2 = new double[close.Length];r2I中亿财经网财经门户

double[] sum3 = new double[close.Length];r2I中亿财经网财经门户

double[] sum4 = new double[close.Length];r2I中亿财经网财经门户

double[] sum5 = new double[close.Length];r2I中亿财经网财经门户

double[] sum6 = new double[close.Length];r2I中亿财经网财经门户

double[] sum7 = new double[close.Length];r2I中亿财经网财经门户

double[] sum8 = new double[close.Length];r2I中亿财经网财经门户

double[] sum9 = new double[close.Length];r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

// 计算价格波动率r2I中亿财经网财经门户

double sum = 0;r2I中亿财经网财经门户

for (int j = i - n; j <= i; j++) {r2I中亿财经网财经门户

sum += Math.Abs(close[j] - close[j - 1]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

deviation[i] = sum / n;r2I中亿财经网财经门户

// 计算周期r2I中亿财经网财经门户

if (deviation[i] != 0) {r2I中亿财经网财经门户

period[i] = 0.5 / (deviation[i] / close[i - 1]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

period[i] = period[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算趋势r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

if (i == n + 1) {r2I中亿财经网财经门户

trend[i] = 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

} else {r2I中亿财经网财经门户

trend[i] = (1 - w) * trend[i - 1] + w * 0.5 * (close[i] - close[i - n]);r2I中亿财经网财经门户

}r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算平滑系数r2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

smooth[i] = 0.15 * period[i] + 0.85 * smooth[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算DCr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

dc[i] = 0.5 * (1 + Math.Cos(2 * Math.PI / smooth[i]));r2I中亿财经网财经门户

}r2I中亿财经网财经门户

// 计算Cycr2I中亿财经网财经门户

for (int i = n + 1; i < close.Length; i++) {r2I中亿财经网财经门户

sum1[i] = 0.0962 * close[i] + 0.5769 * close[i - 2] - 0.5769 * close[i - 4] - 0.0962 * close[i - 6];r2I中亿财经网财经门户

sum2[i] = 0.075 * sum1[i] + 0.54 * sum1[i - 1] + 0.54 * sum1[i - 2] + 0.075 * sum1[i - 3];r2I中亿财经网财经门户

sum3[i] = sum2[i] - dc[i] * sum2[i];r2I中亿财经网财经门户

sum4[i] = 0.0962 * sum3[i] + 0.5769 * sum3[i - 2] - 0.5769 * sum3[i - 4] - 0.0962 * sum3[i - 6];r2I中亿财经网财经门户

sum5[i] = 0.075 * sum4[i] + 0.54 * sum4[i - 1] + 0.54 * sum4[i - 2] + 0.075 * sum4[i - 3];r2I中亿财经网财经门户

sum6[i] = sum5[i] - dc[i] * sum5[i];r2I中亿财经网财经门户

sum7[i] = 0.0962 * sum6[i] + 0.5769 * sum6[i - 2] - 0.5769 * sum6[i - 4] - 0.0962 * sum6[i - 6];r2I中亿财经网财经门户

sum8[i] = 0.075 * sum7[i] + 0.54 * sum7[i - 1] + 0.54 * sum7[i - 2] + 0.075 * sum7[i - 3];r2I中亿财经网财经门户

sum9[i] = sum8[i] - dc[i] * sum8[i];r2I中亿财经网财经门户

cyc[i] = 0.2 * sum9[i] + 0.8 * cyc[i - 1];r2I中亿财经网财经门户

}r2I中亿财经网财经门户

return cyc;r2I中亿财经网财经门户

}r2I中亿财经网财经门户

```r2I中亿财经网财经门户

其中,参数`close`表示收盘价序列,`n`表示周期长度,`w`表示趋势平滑系数。该源码中包含了Cyc指标的完整计算过程,可以直接调用该方法进行计算。r2I中亿财经网财经门户