公式名称:牛气冲天图(又名:仙鹤大张嘴,也就是钱龙软件的DMI指标修改为通达信软件使用,但是不同于通达信的DMI指标)。 公式类型;其他类型(可任选) 划线方法;附图 应用软件:通达信 公式如下:(复制到公式管理器中安装即可)。 参数 最小 最大 缺省 N 2 90 7 M 2 90 6
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1); HD:=HIGH-REF(HIGH,1); LD:=REF(LOW,1)-LOW; DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1); DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1); PDI:DMP*100/TR,COLORWHITE; MDI:DMM*100/TR,COLORGREEN; ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORRED; ADXR:(ADX+REF(ADX,M))/2,COLORYELLOW;
冲天:IF(MDI<22 AND PDI>30 AND PDI>ADX AND ADX>REF(ADX,1) AND PDI>ADXR AND ADX>MDI AND ADXR>MDI AND ADX<33 AND ADXR<33,18,0)COLORRED,LINETHICK2;
奔天:IF(MDI<18 AND PDI>30 AND PDI>ADX AND ADX>REF(ADX,1) AND MDI<REF(MDI,1) AND PDI>ADXR AND ADX>MDI AND ADXR>MDI AND ADX<28 AND ADXR<28,28,0)COLORYELLOW,LINETHICK2;
潜伏:IF(PDI<33 AND ADX<30 AND ADXR<30 AND MDI<28,8,0)COLORWHITE,LINETHICK2;
埋伏:IF(PDI<30 AND ADX<28 AND ADXR<28 AND MDI<25,6,0)COLORFF00FF,LINETHICK2;
16; 30; 25; |
|