自用多年的成交量指标源码送给大家

这个是自用多年的成交量指标源码,融合了吸筹、拉升、派发、落(跌)这几个过程,红色柱代表吸筹;黄色柱代表拉升;蓝色柱代表派发;绿色柱代表下跌,这个指标随着成交量的变化,颜色也有变化,比如红色柱连续2-3天出现,准确率较高,如果成交量突破135天均线,就有可能是一波主升浪。

指标只是辅助,帮助我们判断运行在哪个阶段,只有多观察,熟练掌握使用方法,才能对我们的操作上有所帮助,炒股要有执行力,趋势号就坚定持股,趋势不明朗就休息,不要操作,这样盈利才能不断累积,如果不看趋势,天天在里面折腾,很多时候一个月赚的,还不够一两天回吐的。

有朋友私信我说,指标复制出来有错误,建议是先复制到文本文件里,然后对照这里的代码,修改,再复制到通达信的指标管理器里。

还是那句话:祝愿所有的人能在股市里一路长虹!

{成交量指标开始}

{使用说明:深黄外框和白色虚线是量能潮,红色柱是吸,黄色柱是拉,蓝色柱是派,绿柱是落,紫色是拉等于派。倍量是放量台阶。}

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT ;

卖盘:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORGREEN,POINTDOT;

净买:(买盘-卖盘),COLORYELLOW,NODRAW;

换手率:HSL,COLORWHITE,NODRAW;

累计10日换手:SUM(换手率,10),NODRAW;

{引用}

VOLUME:VOL,NODRAW;

VA8:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

OBV18:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA8),0);

OBV28:=EMA(OBV18,3)-MA(OBV18,9);

OBV38:=EMA(IF(OBV28>0,OBV28,0),3);

MAC38:=MA(C,3);

QS:=OBV38>REF(OBV38,1) AND MAC38>REF(MAC38,1);

STICKLINE(QS,0,V,3.5,0),COLORYELLOW;

{量能潮}

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);

OBV2:=EMA(OBV1,3)-MA(OBV1,9);

OBV3:=EMA(IF(OBV2>0,OBV2,0),3);

MAC3:=MA(C,3);

量能潮:OBV3,NODRAW,COLORWHITE;

{135均线}

V5:MA(VOL,5),COLORCYAN,NODRAW;

V35:MA(VOL,35),COLORYELLOW,NODRAW;

V135:MA(VOL,135),COLORE66878,NODRAW;

{吸拉派落}

吸:=XLPL.NOTEXT吸,COLORLIRED,CIRCLEDOT,LINETHICK3,NODRAW;

拉:=XLPL.NOTEXT拉,COLORRED,CIRCLEDOT,LINETHICK3,NODRAW;

派:=XLPL.NOTEXT派,COLORGREEN,CIRCLEDOT,LINETHICK3,NODRAW;

落:=XLPL.NOTEXT落,COLORWHITE,CIRCLEDOT,LINETHICK3,NODRAW;

STICKLINE(吸,0,V,3,2),COLOR000055;

STICKLINE(吸,0,V,2.6,0),COLOR000077;

STICKLINE(吸,0,V,1.9,0),COLOR000099;

STICKLINE(吸,0,V,1.1,0),COLOR0000BB;

STICKLINE(吸,0,V,0.3,0),COLOR0000DD;

STICKLINE(拉,0,V,3,0),COLOR0055AA;

STICKLINE(拉,0,V,2.8,0),COLOR0066BB;

STICKLINE(拉,0,V,2.5,0),COLOR0077CC;

STICKLINE(拉,0,V,2.2,0),COLOR0088DD;

STICKLINE(拉,0,V,1.7,0),COLOR0099EE;

STICKLINE(拉,0,V,1.2,0),COLOR00AAFF;

STICKLINE(拉,0,V,0.5,0),COLOR2299EE;

STICKLINE(拉,0,V,0.2,0),COLOR11AAEF;

STICKLINE(派,0,V,3.2,0),COLORFF2200;{蓝色}

STICKLINE(派,0,V,2.6,0),COLORFF4400;

STICKLINE(派,0,V,1.9,0),COLORFF6600;

STICKLINE(派,0,V,1.1,0),COLORFF8800;

STICKLINE(派,0,V,0.3,0),COLORFFAA00;

STICKLINE(派,0,V,0,1),COLORFF8800;

{绿色}

STICKLINE(落,0,V,3.2,0),COLOR006600;

STICKLINE(落,0,V,2.6,0),COLOR008800;

STICKLINE(落,0,V,1.9,0),COLOR00AA00;

STICKLINE(落,0,V,1.1,0),COLOR00CC00;

STICKLINE(落,0,V,0.3,0),COLOR09D75F;

STICKLINE(落,0,V,0,1),COLORGREEN;

QSLS:=QS AND 拉 AND 拉=派;

{紫色}

STICKLINE(QSLS,0,V,3.2,0),COLOR880088;

STICKLINE(QSLS,0,V,2.6,0),COLORAA00AA;

STICKLINE(QSLS,0,V,1.9,0),COLORCC00CC;

STICKLINE(QSLS,0,V,1.1,0),COLOREE00EE;

STICKLINE(QSLS,0,V,0.3,0),COLORFF44FF;

STICKLINE(QSLS,0,V,0,1),COLORFF55FF;

STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,OBV3,0,-1),COLORWHITE{量能潮};

{135均线}

V05:MA(VOL,5),COLORCYAN;

V035:MA(VOL,35),COLORYELLOW;

V0135:MA(VOL,135),COLORE66878,LINETHICK3;

FL4:=V=HHV(V,250);

FL3:=V=HHV(V,120) AND V=HHV(V,250);

FL2:=V=HHV(V,60) AND V=HHV(V,120) AND V=HHV(V,250);

FL1:=V=HHV(V,30) AND V=HHV(V,60) AND V=HHV(V,120) AND V=HHV(V,250);

DRAWTEXT(FL4,V*1.1,'四倍量'),COLORWHITE;

DRAWTEXT(FL3,V*1.1,'三倍量'),COLORWHITE;

DRAWTEXT(FL2,V*1.1,'二倍量'),COLORWHITE;

DRAWTEXT(FL1,V*1.1,'一倍量'),COLORWHITE;

{成交量指标结束}

(0)

相关推荐