CCI和DMI同時(shí)金叉的選股公式
條件是:CCI上穿+100的同時(shí),DMI指標(biāo)中的+di正好要上穿其他三線,符合這兩個(gè)條件的個(gè)股介入的話基本上是一劍封喉,盡收漁翁辶利。
TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7);
HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),7); DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),7); +DI:=DMP*100/TR; -DI:=DMM*100/TR; ADX:=MA(ABS(-DI-+DI)/(-DI++DI)*100,6); ADXR:=(ADX+REF(ADX,6))/2; TYP:=(IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); CROSS(CCI,100) AND CROSS(+DI,ADX) AND CROSS(+DI,-DI) AND CROSS(+DI,ADXR); |
|