A:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
A1:=HIGH-REF(HIGH,1);
A2:=REF(LOW,1)-LOW;
DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),N);
DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),N);
PDI:=DMP*100/A;MDI:=DMM*100/A;ADX:=MA((ABS(MDI-PDI))/(MDI+PDI)*100,M);ADXR:=(ADX+REF(ADX,M))/2;
暴涨前夜:IF(ADX>90 AND PDI=0,3,0),LINETHICK2,colorFFFF;
通达信暴涨前夜公式 一不小心就骑上黑马
本指标吸取了众多高手的抄底思路,以及抄底骑马技巧,总结了黑马启动规律、空中加油形态,让你一不小心就骑上黑马,随时上下,再也不愁被抛下。币要用光了,为了能多看到各位高手的好东东,只能忍痛拿出,废话少说,直接上干货。TXT格式源码,无未来函数。忘了写参数,现补上.
参数设置:N=3,M=7
源码
A:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
A1:=HIGH-REF(HIGH,1);
A2:=REF(LOW,1)-LOW;
DMP:=SUM(IF(A1>0 AND A1>A2,A1,0),N);
DMM:=SUM(IF(A2>0 AND A2>A1,A2,0),N);
PDI:=DMP*100/A;MDI:=DMM*100/A;ADX:=MA((ABS(MDI-PDI))/(MDI+PDI)*100,M);ADXR:=(ADX+REF(ADX,M))/2;
暴涨前夜:IF(ADX>90 AND PDI=0,3,0),LINETHICK2,colorFFFF;