RSV:= (HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*-100;
LWR1:SMA(RSV,3,1),LINETHICK2;
LWR2:SMA(LWR1,3,1),LINETHICK2;
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
股价线:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORFFFFFF,LINETHICK2;
上穿买入:-100,COLORFF0000 , LINETHICK2;
跌破卖出:100,COLORDB70DB,LINETHICK2;
超买:200,COLORD8D8BF ,LINETHICK2;
超跌:-200, COLORGREEN,LINETHICK2;
IF(CCI 100,CCI,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(CCI -100,CCI,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(CROSS(CCI,-100),-100,1);
DRAWICON(CROSS(100,CCI),100,2);
公式模块:
RSV:= (HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*-100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
CROSS(CCI,-100) AND CROSS(LWR1,LWR2);