以下是通达信分时图转变形为主图(无源码的请下载附件导入)
量价:=(DVOL/C)/2,NODRAW;
统计主动大买量:=SUM(IF(量价>100 AND CLOSE>REF(CLOSE,1),量价,0),0);
统计主动大卖量:=SUM(IF(量价>100 AND CLOSE<REF(CLOSE,1),量价,0),0);
小买:=SUM(IF(量价<100 AND CLOSE>REF(CLOSE,1),量价,0),0);
小卖:=SUM(IF(量价<100 AND CLOSE<REF(CLOSE,1),量价,0),0);
合力度:=统计主动大买量+统计主动大卖量+小买+小卖;
主动大买量比:=(统计主动大买量/合力度)*100;
主动大卖量比:=(统计主动大卖量/合力度)*100;
涨停能量:= 主动大买量比-主动大卖量比;
涨停能量▇ :主动大买量比-主动大卖量比 ,NODRAW,COLORRED;
DRAWTEXT_FIX(涨停能量▇ >80,0.04,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.05,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.06,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.07,0,0,'▇'),COLORYELLOW;
DRAWNUMBER_FIX(涨停能量 AND ISLASTBAR,0.04,0,0,涨停能量),LINETHICK8,COLORRED;
DRAWTEXT_FIX(涨停能量▇ >80,0.04,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.05,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.06,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.07,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.04,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.05,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.06,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.07,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.03,0.2,0,'●'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.03,0.1,0,'●'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.03,0,0,'●'),COLORYELLOW;
DRAWTEXT_FIX(涨停能量▇ >80,0.08,0,0,' ←买入值75~80以上'),COLORYELLOW;
DRAWTEXT_FIX(1,0.25,0,0,'江南制作'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.04,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.05,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.06,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.07,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.04,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.05,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.06,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.07,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.04,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.05,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.06,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(70<涨停能量▇ <80,0.07,0.5,0,'▇'),COLORRED;
63544443.jpg
|