通达信游侠CCI副图指标 源码 测试图
月C:=("CCI.CCI#MONTH"(88));
周C:=("CCI.CCI#WEEK"(88));
LC:=REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
MA6:=MA(RSI6,6);
短波:=IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL);
TYPD:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;
游侠CCI:EMA((TYPD-MA(TYPD,36.0270012))/(0.015*AVEDEV(TYPD,36.0270012)),2.0332);
DRAWICON(CROSS(游侠CCI,100) AND 周C>=月C AND 周C>=200 AND 月C>=110 ,游侠CCI,34);
DRAWICON(CROSS(游侠CCI,110) AND 周C>=月C AND 周C>=200 AND 月C>=0 AND 短波,游侠CCI,1);
20211089145228918.png
20211089145571078.png
|