CCI黄金坑(源码、副图、通达信、贴图)
源码
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA -10 AND RRB
STICKLINE(IF(RRD,-120,0),-120,0,8,0),COLORLIBLUE;
【黄金坑】:IF(RRD,-120,0),COLORYELLOW,LINETHICK2;
TYP := (HIGH + LOW + CLOSE)/3;
CCI14:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORMAGENTA,LINETHICK2;