{ 通达信分时涨停OBV指标公式源码 }
早盘OBV值保持20,30以上出绿钻有涨停可能,第一市场处于强势每天涨停100只以上打开账户准备好9点25分打60涨幅排行榜看高开的最好5点以下,最好选择上午10点以前10点后的绿钻几乎无意义,第二选择第一次高开突破平台作为目标高开不要太多也可开盘打87键5分钟涨幅排名发现目标。}
背景: DRAWGBK(1,RGB(25,25,112),RGB(0,0,128),0,1,0);
量价:=(vol/CLOSE)/3;
统计主动买量:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
统计主动卖量:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
涨停量:((统计主动买量)/统计主动卖量)*10,NODRAW,COLORRED;
DRAWTEXT_FIX(1,0.04,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.1,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.1,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.1,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.1,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.1,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.2,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.2,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.2,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.2,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.2,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.3,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.3,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.3,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.3,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.3,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.4,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.4,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.4,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.4,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.4,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.5,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.5,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.5,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.5,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.5,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.6,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.6,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.6,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.6,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.6,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.7,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.05,0.7,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.06,0.7,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.7,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.08,0.7,0,'▇'),COLORGRAY;
DRAWTEXT_FIX(1,0.04,0.8,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.05,0.8,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.06,0.8,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,0.8,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.8,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.04,0.9,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.05,0.9,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.06,0.9,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,0.9,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.9,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.04,1,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.05,1,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.06,1,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,1,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,1,0,'▇'),COLORWHITE;
DRAWTEXT_FIX(涨停量>30,0.04,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.05,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.06,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.07,0,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.08,0,0,'▇'),COLORYELLOW;
DRAWNUMBER_FIX(涨停量 AND ISLAstBAR,0.04,0,0,涨停量),LINETHICK8,COLORRED;
DRAWTEXT_FIX(涨停量>30,0.04,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.05,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.06,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.07,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.08,0.1,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.04,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.05,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.06,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.07,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.08,0.2,0,'▇'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.03,0.2,0,'●'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.03,0.1,0,'●'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.03,0,0,'●'),COLORYELLOW;
DRAWTEXT_FIX(涨停量>30,0.08,0,0,' ←早盘obv值保持20,30以上出绿钻有涨停可能'),COLORYELLOW;
涨停量▇:=(统计主动买量/统计主动卖量)*40,LINETHICK2,NODRAW,COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.3,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.4,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.5,0,'▇'),COLORRED;
DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.5,0,'▇'),COLORRED;
OBV:= (expma(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;
主力:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA;
散户:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK5,COLORGREEN;
DRAWICON(crOSS(EXPMA(OBV,120)-0.0004,EXPMA(OBV,200)),EXPMA(OBV,200)*1,27);
标签:30,20,FIX,DRAWTEXT,通达信,源码,COLORGRAY,OBV,COLORYELLOW From: https://www.cnblogs.com/zhibiao/p/18062222