A:=-100; TYP := (HIGH + LOW + CLOSE)/3; CCI:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)); 顯示文字( CROSS(CCI,A),-100,'↑\n上\n穿\n-100'),COLORRED;
TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)); TYP15:=(HHV(HIGH,15)+LLV(LOW,15)+CLOSE)/3; CCI15:(TYP15-MA(TYP15,N))/(0.015*AVEDEV(TYP15,N)),COLORRED; AA:=REF(CCI,3)=HHV(CCI,2*3+1); BB:=BACKSET(AA,3+1); CC:=FILTER(BB,3) AND CCI=HHV(CCI,3+1); A1:=BARSLAST(REF(CC,1)); 頂背離:=REF(CLOSE,A1+1)<CLOSE AND REF(CCI,A1+1)>CCI AND CC; DRAWLINE(CC,CCI,FILTER(頂背離>0,5),CCI,0),COLORRED,LINETHICK3; AA2:=REF(CCI,3)=LLV(CCI,2*3+1); BB2:=BACKSET(AA2,3+1); CC2:=FILTER(BB2,3) AND CCI=LLV(CCI,3+1); AA2A:=BARSLAST(REF(CC2,1)); 底背離:=REF(C,AA2A+1)>CLOSE AND REF(CCI,AA2A+1)<CCI AND CC2; DRAWLINE(CC2,CCI,FILTER(底背離>0,5),CCI,0),COLORRED,LINETHICK4; DRAWLINE(CC2,CCI,FILTER(底背離>0,5),CCI,0),COLORRED,LINETHICK4; |