说明:来测测手中的票在本波段中到底涨了多少吧。首先利用指标找到本波段的最低价位,然后依以此为基准计算涨幅百分比,让自己心中有数。
TIAOJIAN:=C=LLV(C,8) AND (C-HHV(C,15))/HHV(C,15)<0.10;
X1:=BACKSET(CROSS(0.5,TIAOJIAN),2);
D:=BACKSET(CROSS(X1,0.5) OR (REF(TIAOJIAN,2)=1 AND REF(TIAOJIAN,1)=0 AND TIAOJIAN=1),1);
DAYS:=BARSLAST(D);
涨幅:100*(C-REF(C,DAYS))/REF(C,DAYS),NODRAW;
低价:IF(CURRBARSCOUNT<=10 ,REF(C,DAYS),DRAWNULL);