以下是涨幅测量计
涨幅测量计
之幅度:=10;
最低:=TROUGHBARS(L,之幅度,1);{调整之字幅度找到低位起点}
低价:=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;
评论(0)