首页 > 专栏 > 机构专栏 > 机构黄金>正文

美联储加息25个基点并暗示暂停,鲍威尔称“现在降息为时过早”

机构黄金
来源:中亿财经网 作者:gengxing 时间:2023-07-16
1. JS日历算法怎么写?主要是排日期哪里!1-31号怎么排?数组,包括公历的月份天数、农历及节气等等,都用的是数组,网上有JS源码.2. JS日历算法怎么写?主要是排日期哪里!

1. JS日历算法怎么写?主要是排日期哪里!1-31号怎么排?

数组,包括公历的月份天数、农历及节气等等,都用的是数组,网上有JS源码.mkx中亿财经网财经门户

2. JS日历算法怎么写?主要是排日期哪里!1-31号怎么排?

数组,包括公历的月份天数、农历及节气等等,都用的是数组,网上有JS源码.mkx中亿财经网财经门户

3. JS日历算法怎么写?主要是排日期哪里!1-31号怎么排?

数组,包括公历的月份天数、农历及节气等等,都用的是数组,网上有JS源码.mkx中亿财经网财经门户

4. JS日历算法怎么写?主要是排日期哪里!1-31号怎么排?

数组,包括公历的月份天数、农历及节气等等,都用的是数组,网上有JS源码.mkx中亿财经网财经门户

5. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。mkx中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:mkx中亿财经网财经门户

  【顶底DMI】mkx中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);mkx中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);mkx中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);mkx中亿财经网财经门户

  ADXR:EMA(ADX,7);mkx中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  五十:50;mkx中亿财经网财经门户

  三十:30;mkx中亿财经网财经门户

  二十:20;mkx中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');mkx中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');mkx中亿财经网财经门户

顶底dmimkx中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。mkx中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:mkx中亿财经网财经门户

  【dmi买点】mkx中亿财经网财经门户

  {参数n14,m6}mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

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

  穿破短底:16;mkx中亿财经网财经门户

  线上发飙:30;mkx中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;mkx中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;mkx中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;mkx中亿财经网财经门户

  0;mkx中亿财经网财经门户

  {6}mkx中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;mkx中亿财经网财经门户

  K1:=SMA(RSV9,3,1);mkx中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;mkx中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);mkx中亿财经网财经门户

dmi买点mkx中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。mkx中亿财经网财经门户

  【dmi组合】mkx中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;mkx中亿财经网财经门户

  牛:SMA(VAR1,7,1);mkx中亿财经网财经门户

  VAR2:=SMA(牛,5,1);mkx中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);mkx中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));mkx中亿财经网财经门户

  N:=14;M:=6;mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI:DMP*100/TR COLORMAGENTA;mkx中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;mkx中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;mkx中亿财经网财经门户

  STICKLINE(ADXmkx中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;mkx中亿财经网财经门户

  10;90;mkx中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);mkx中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;mkx中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }mkx中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;mkx中亿财经网财经门户

6. obv公式源码?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

7. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。mkx中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:mkx中亿财经网财经门户

  【顶底DMI】mkx中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);mkx中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);mkx中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);mkx中亿财经网财经门户

  ADXR:EMA(ADX,7);mkx中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  五十:50;mkx中亿财经网财经门户

  三十:30;mkx中亿财经网财经门户

  二十:20;mkx中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');mkx中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');mkx中亿财经网财经门户

顶底dmimkx中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。mkx中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:mkx中亿财经网财经门户

  【dmi买点】mkx中亿财经网财经门户

  {参数n14,m6}mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

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

  穿破短底:16;mkx中亿财经网财经门户

  线上发飙:30;mkx中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;mkx中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;mkx中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;mkx中亿财经网财经门户

  0;mkx中亿财经网财经门户

  {6}mkx中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;mkx中亿财经网财经门户

  K1:=SMA(RSV9,3,1);mkx中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;mkx中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);mkx中亿财经网财经门户

dmi买点mkx中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。mkx中亿财经网财经门户

  【dmi组合】mkx中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;mkx中亿财经网财经门户

  牛:SMA(VAR1,7,1);mkx中亿财经网财经门户

  VAR2:=SMA(牛,5,1);mkx中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);mkx中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));mkx中亿财经网财经门户

  N:=14;M:=6;mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI:DMP*100/TR COLORMAGENTA;mkx中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;mkx中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;mkx中亿财经网财经门户

  STICKLINE(ADXmkx中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;mkx中亿财经网财经门户

  10;90;mkx中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);mkx中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;mkx中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }mkx中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;mkx中亿财经网财经门户

8. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。mkx中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:mkx中亿财经网财经门户

  【顶底DMI】mkx中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);mkx中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);mkx中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);mkx中亿财经网财经门户

  ADXR:EMA(ADX,7);mkx中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  五十:50;mkx中亿财经网财经门户

  三十:30;mkx中亿财经网财经门户

  二十:20;mkx中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');mkx中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');mkx中亿财经网财经门户

顶底dmimkx中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。mkx中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:mkx中亿财经网财经门户

  【dmi买点】mkx中亿财经网财经门户

  {参数n14,m6}mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

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

  穿破短底:16;mkx中亿财经网财经门户

  线上发飙:30;mkx中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;mkx中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;mkx中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;mkx中亿财经网财经门户

  0;mkx中亿财经网财经门户

  {6}mkx中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;mkx中亿财经网财经门户

  K1:=SMA(RSV9,3,1);mkx中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;mkx中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);mkx中亿财经网财经门户

dmi买点mkx中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。mkx中亿财经网财经门户

  【dmi组合】mkx中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;mkx中亿财经网财经门户

  牛:SMA(VAR1,7,1);mkx中亿财经网财经门户

  VAR2:=SMA(牛,5,1);mkx中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);mkx中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));mkx中亿财经网财经门户

  N:=14;M:=6;mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI:DMP*100/TR COLORMAGENTA;mkx中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;mkx中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;mkx中亿财经网财经门户

  STICKLINE(ADXmkx中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;mkx中亿财经网财经门户

  10;90;mkx中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);mkx中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;mkx中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }mkx中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;mkx中亿财经网财经门户

9. obv公式源码?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10. obv公式源码?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

11. psy指标公式源码?

1、PSY=N日内上涨天数/N*100 mkx中亿财经网财经门户

2、PSYMA=PSY的M日简单移动平均 mkx中亿财经网财经门户

3、参数N设置为12日,参数M设置为6日.PSY指标与成交量变异率(VR)应配合使用,确定短期买卖点,可以找出每一波的高低点。另外,PSY指标最好与K线互相对照,如此更能从股价变动中了解超买或超卖的情况。在股市的几个指标里占很小比重。mkx中亿财经网财经门户

12. psy指标公式源码?

1、PSY=N日内上涨天数/N*100 mkx中亿财经网财经门户

2、PSYMA=PSY的M日简单移动平均 mkx中亿财经网财经门户

3、参数N设置为12日,参数M设置为6日.PSY指标与成交量变异率(VR)应配合使用,确定短期买卖点,可以找出每一波的高低点。另外,PSY指标最好与K线互相对照,如此更能从股价变动中了解超买或超卖的情况。在股市的几个指标里占很小比重。mkx中亿财经网财经门户

13. psy指标公式源码?

1、PSY=N日内上涨天数/N*100 mkx中亿财经网财经门户

2、PSYMA=PSY的M日简单移动平均 mkx中亿财经网财经门户

3、参数N设置为12日,参数M设置为6日.PSY指标与成交量变异率(VR)应配合使用,确定短期买卖点,可以找出每一波的高低点。另外,PSY指标最好与K线互相对照,如此更能从股价变动中了解超买或超卖的情况。在股市的几个指标里占很小比重。mkx中亿财经网财经门户

14. dmi趋向指标公式?

股票走势的技术指标中,有趋势类、摆动类、能量类的指标,而DMI就是其中的一种经典的趋势指标,在实战中能够帮助投资者识别价格的趋势变化以及其中蕴含的买卖点位置,为了能够更加清晰的了解指标的应用技巧,我们从其源码公式进行学习。mkx中亿财经网财经门户

  首先我们来看一下具有顶底识别以及抄底逃顶作用的指标源码的编译:mkx中亿财经网财经门户

  【顶底DMI】mkx中亿财经网财经门户

  TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);mkx中亿财经网财经门户

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

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

  DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);mkx中亿财经网财经门户

  DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

  ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);mkx中亿财经网财经门户

  ADXR:EMA(ADX,7);mkx中亿财经网财经门户

  抄底1:COUNT(PDI50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  逃顶1:=COUNT(PDI>MDI,3)=3 AND REF(ADX>50,1) AND REF(ADX,1)>=REF(ADX,2) ANDmkx中亿财经网财经门户

  ADXmkx中亿财经网财经门户

  五十:50;mkx中亿财经网财经门户

  三十:30;mkx中亿财经网财经门户

  二十:20;mkx中亿财经网财经门户

  DRAWTEXT(抄底1,PDI,'抄底');mkx中亿财经网财经门户

  DRAWTEXT(逃顶1,ADX,'逃顶');mkx中亿财经网财经门户

顶底dmimkx中亿财经网财经门户

  从源码和走势图形中我们可以看出,其中指标线包含有PDI、ndi、adx等走势,具体的操作用法,请点击DMI指标,在这里主要讲解的是其源码公式的编译,以及简单的走势分析。mkx中亿财经网财经门户

  其次,我们可以通过其源码公式的展示,寻找指标线中的买入点位置:mkx中亿财经网财经门户

  【dmi买点】mkx中亿财经网财经门户

  {参数n14,m6}mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI: DMP*100/TR;mkx中亿财经网财经门户

  MDI: DMM*100/TR;mkx中亿财经网财经门户

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

  穿破短底:16;mkx中亿财经网财经门户

  线上发飙:30;mkx中亿财经网财经门户

  {2}预警:IF(ADX>90 AND PDI=0,30,0),COLORYELLOW,LINETHICK2;mkx中亿财经网财经门户

  买:IF(CROSS(PDI,MDI) AND (C >1.05*REF(C,1) OR REF(C,1)>1.05*REF(C,2)) AND (V>2*REF(V,1) OR REF(V,1)>2*REF(V,2))AND MA(V,5)>MA(V,60) ,20,0),COLORRED,LINETHICK2;mkx中亿财经网财经门户

  买2:IF(CROSS(PDI,MDI) AND COUNT(预警,10)>=1,10,0),COLORMAGENTA,LINETHICK3;mkx中亿财经网财经门户

  0;mkx中亿财经网财经门户

  {6}mkx中亿财经网财经门户

  RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;mkx中亿财经网财经门户

  K1:=SMA(RSV9,3,1);mkx中亿财经网财经门户

  DK1:=K1-REF(K1,1),COLORSTICK;mkx中亿财经网财经门户

  出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);mkx中亿财经网财经门户

dmi买点mkx中亿财经网财经门户

  依据其指标线的走势形态,在股价的K线走势图中能够清楚的表现出,投资者应该买入以及卖出的获利点位置,希望投资者能够从中做好应对的操作策略。mkx中亿财经网财经门户

  【dmi组合】mkx中亿财经网财经门户

  VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;mkx中亿财经网财经门户

  牛:SMA(VAR1,7,1);mkx中亿财经网财经门户

  VAR2:=SMA(牛,5,1);mkx中亿财经网财经门户

  熊:IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);mkx中亿财经网财经门户

  DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));mkx中亿财经网财经门户

  N:=14;M:=6;mkx中亿财经网财经门户

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

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

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

  DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);mkx中亿财经网财经门户

  DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);mkx中亿财经网财经门户

  PDI:DMP*100/TR COLORMAGENTA;mkx中亿财经网财经门户

  MDI:=DMM*100/TR COLORGREEN;mkx中亿财经网财经门户

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

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

  STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;mkx中亿财经网财经门户

  STICKLINE(ADXmkx中亿财经网财经门户

  关注:STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADXADXR*0.97,ADX,ADXR,2,0) COLORRED;mkx中亿财经网财经门户

  10;90;mkx中亿财经网财经门户

  FVAR1:=REF(CLOSE,2);mkx中亿财经网财经门户

  会员专用: SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;mkx中亿财经网财经门户

  {一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }mkx中亿财经网财经门户

  走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1) AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1),ADXR*0.98,'走强'),COLORYELLOW;mkx中亿财经网财经门户

15. obv公式源码?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

16. psy指标公式源码?

1、PSY=N日内上涨天数/N*100 mkx中亿财经网财经门户

2、PSYMA=PSY的M日简单移动平均 mkx中亿财经网财经门户

3、参数N设置为12日,参数M设置为6日.PSY指标与成交量变异率(VR)应配合使用,确定短期买卖点,可以找出每一波的高低点。另外,PSY指标最好与K线互相对照,如此更能从股价变动中了解超买或超卖的情况。在股市的几个指标里占很小比重。mkx中亿财经网财经门户

关键字:JS   算法  
1.中亿财经网(http://www.zhongyi9999.com/)遵循行业规范,任何转载的稿件都会明确标注作者和来源;
2.中亿财经网的原创文章,请转载时务必注明文章作者和"来源:中亿财经网",不尊重原创的行为或将追究责任;
3.作者投稿可能会经中亿财经网编辑修改或补充。
【免责声明】本文仅代表作者本人观点,与本网站无关。本网站对文中陈述、观点判断保持中立,不对所包含内容的准确性、可靠性或完整性提供任何明示或暗示的保证。请读者仅作参考,并请自行承担全部责任。