貼語:一支股票階段漲幅達到或超過30%以后,回檔的概率增加。這個公式加到主圖中,方便大家看到階段漲幅。
-----------------------------
之幅度:=10;
最低:=TROUGHBARS(L,之幅度,1);{調(diào)整之字幅度找到低位起點}
低價:=REF(L,BARSLAST(最低=0));
低價_:=DRAWLINE(最低=0,L,ISLASTBAR,低價,0),COLORFFFF00;
FU:=C-低價_;
幅度:=FU/低價_*100,NODRAW;
低A:=DRAWTEXT(ISLASTBAR,低價_,'低價_'),COLOR208FFF;
_50%:DRAWLINE(最低=0,L*1.50,ISLASTBAR,低價*1.50,0),COLORAAAA11,DOTLINE;
_8%:DRAWLINE(最低=0,L*1.08,ISLASTBAR,低價*1.08,0),COLORAAAA11,DOTLINE;
_25%:DRAWLINE(最低=0,L*1.25,ISLASTBAR,低價*1.25,0),COLORAAAA11,DOTLINE;
_12%:DRAWLINE(最低=0,L*1.12,ISLASTBAR,低價*1.12,0),COLORAAAA11,DOTLINE;
_33%:DRAWLINE(最低=0,L*1.33,ISLASTBAR,低價*1.33,0),COLORAAAA11,DOTLINE;
DRAWTEXT(ISLASTBAR,_50%,'50%'),COLORAAAA11;
DRAWTEXT(ISLASTBAR,_8%,'8%'),COLORAAAA11;
DRAWTEXT(ISLASTBAR,_25%,'25%'),COLORAAAA11;
DRAWTEXT(ISLASTBAR,_12%,'12%'),COLORAAAA11;
DRAWTEXT(ISLASTBAR,_33%,'33%'),COLORAAAA11;
|