波浪王 BLW(实际是 CCI与 ADX结合,技巧在于:对指标数值进行技巧处理,使两指标线直观出现在同一显示范围内)缺省值 N=14,M=6,C=14,最小1,2,2 TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);
PDI:= DMP*100/TR;
MDI:= DMM*100/TR;
ADX: 6*MA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLORMAGENTA,LINETHICK1;
TYP := (HIGH + LOW + CLOSE)/3;
CCI:(TYP-MA(TYP,C))/(0.015*AVEDEV(TYP,C)),COLORWHITE,LINETHICK1;