以下是通达信假龙虎主图源码
DRAWTEXT_FIX(ISLASTBAR,0,0,0,’说明:日涨7黄色,日跌7绿色,日换手20白色,3日涨20 3阳,3日跌20 3阴,日振15洋红’),COLORGRAY;
涨幅偏离:=(((C-REF(C,1))/REF(C,1))-((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)))*100>=0.07;{必须做收盘数据下载}
STICKLINE(涨幅偏离,C,(O+C)/2,2,0),COLORYELLOW;
跌幅偏离:=(((C-REF(C,1))/REF(C,1))-((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)))<=-0.07;
STICKLINE(跌幅偏离,C,(O+C)/2,2,0),COLORGREEN;
振幅偏离:=(H-L)/L>=0.15;{振幅大于15个点}
STICKLINE(振幅偏离,O,C,1,0),COLORMAGENTA;
DRAWTEXT( 振幅偏离,H*1.1,’振’),COLORMAGENTA;
换手偏离:=DYNAINFO(37)>=0.20;
STICKLINE(换手偏离,O,(O+C)/2,2,0),COLORWHITE;
三天涨幅:=(SUM((C-REF(C,1))/REF(C,1)*100,3))>=20;
STICKLINE(三天涨幅,C,(O+C)/2,2,0),COLORYELLOW;
DRAWTEXT( 三天涨幅,L*0.98,’3阳’),COLORYELLOW;
三天跌幅:=(SUM((C-REF(C,1))/REF(C,1)*100,3))<=-20;
STICKLINE(三天跌幅,C,(O+C)/2,2,0),COLORGREEN;
DRAWTEXT( 三天跌幅,L*0.98,’3阴’),COLORGREEN;
A1:(MA(C,10)*30+MA(C,30)*10+MA(C,60)*5+MA(C,120)*3)/48,COLOR00FFFF;
A2:MA(A1,10),COLOR0000FF;
评论(0)