九毛八公式指标
公式模块:
老师您好!请老师编同花顺可用的cci和dmi同时金叉的选股公式,谢谢!
条件是:CCI上穿+100的同时,DMI指标中的+di正好要上穿其他三线,符合这两个条件的个股介入的话基本上是一剑封喉,尽收渔翁辶利,请老师尽力帮忙,谢谢,谢谢!
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);