RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;DIF:=EMA(INDEXC,12)-EMA(INDEXC,26);DEA:=EMA(DIF,9);MACDS:=(DIF-DEA)*2;N:=14;TYP := (HIGH + LOW + CLOSE)/3;CCI:= (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));bb:= REF(CCI,1)<-100 AND CCI>-100 AND j>REF(j,1) AND OPEN<CLOSE AND MACDS>REF(MACDS,1) AND CLOSE>MA(CLOSE,5);