N:=5; E:=(HIGH+LOW+OPEN+2*CLOSE)/5; AAA:=2*E-LOW,NODRAW; AB:=2*E-HIGH,NODRAW; ACC:=E+(HIGH-LOW),NODRAW; ADD:=E-(HIGH-LOW),NODRAW; 今阻力:REF(AAA,1),COLORWHITE,NODRAW; 今支撐:REF(AB,1),COLORYELLOW,NODRAW; 明阻力:AAA,COLORCYAN,NODRAW; 明支撐:AB,COLORMAGENTA,NODRAW; 明突破:ACC,COLORGREEN,NODRAW; 明反轉(zhuǎn):ADD,COLORLICYAN,NODRAW; 回調(diào)總天數(shù):HHVBARS(HIGH,500),NODRAW; 最高:REF(HHV(HIGH,500),1); 最低價(jià):REF(LLV(LOW,800),1),COLORLIGRAY; 上低位價(jià):REF(LLV(LOW,30),1),NODRAW; 總漲幅:((CLOSE-最低價(jià))/最低價(jià))*100,COLORRED,NODRAW; 最大漲幅:((最高-最低價(jià))/最低價(jià))*100,COLORMAGENTA,NODRAW; 回調(diào)幅度:(上低位價(jià)-最高)/(最高-最低價(jià)),COLORYELLOW,NODRAW; _382%:最高-(REF(最高-最低價(jià),1)*0.382),COLORGREEN; _50%:最高-(REF(最高-最低價(jià),1)/2),COLORRED; _618%:最高-REF(最高-最低價(jià),1)*0.618,COLORLIBLUE; MAXS:=CONST(HHV(HIGH,21));BS:=MAXV/MAXS; VOLUME:=VOL/BS*0.10; ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0)),; STICKLINE(CLOSE>=OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORRED; STICKLINE(CLOSE<OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORGREEN; |
|