以下是大智慧自创成交量指标源码和截图

大智慧自创成交量指标源码:

   V1:=Dma((((HIGH+LOW)+(CLOSE*2))/4),0.9);

   HY1:=REF(EMA(V1,3),1);

   多空趋势:=(MA((CLOSE-HY1)*10,2))*0.1;

   操盘4:stICKLINE(多空趋势>=0AND多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;

   减仓4:STICKLINE(多空趋势>=0AND多空趋势<REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;

   反弹4:STICKLINE(多空趋势<0AND多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;

   寻底4:STICKLINE(多空趋势<0AND多空趋势<REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;

   DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),’多空’),COLORWHITE;

   换手:=V*100/CAPITAL;

   主力:=MA(换手,4);

   大户:=MA(换手,9);

   中户:=MA(换手,17);

   散户:=MA(换手,34);

   均量:=(主力+大户+中户+散户)/4;

   成交量:V,COLORWHITE,NODRAW;

   主力能量:(主力-均量)COLORMAGENTA,NODRAW;

   大户能量:(大户-均量)COLORYELLOW,NODRAW;

   中户能量:(中户-均量)COLORLIBLUE,NODRAW;

   散户能量:(散户-均量)COLORBLUE,NODRAW;

   操盘:STICKLINE(主力能量>=0AND主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;

   减仓:STICKLINE(主力能量>=0AND主力能量<REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;

   反弹:STICKLINE(主力能量<0AND主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;

   寻底:STICKLINE(主力能量<0AND主力能量<REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;

   DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),’机构‘),COLORMAGENTA;

   操盘1:STICKLINE(大户能量>=0AND大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;

   减仓1:STICKLINE(大户能量>=0AND大户能量<REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;

   反弹1:STICKLINE(大户能量<0AND大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;

   寻底1:STICKLINE(大户能量<0AND大户能量<REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;

   DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),’大户’),COLORYELLOW;

   操盘2:STICKLINE(中户能量>=0AND中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;

   减仓2:STICKLINE(中户能量>=0AND中户能量<REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;

   反弹2:STICKLINE(中户能量<0AND中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;

   寻底2:STICKLINE(中户能量<0AND中户能量<REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;

   DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),’中户’),COLORLIBLUE;

   操盘3:STICKLINE(散户能量>=0AND散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;

   减仓3:STICKLINE(散户能量>=0AND散户能量<REF(散户能量,1),0,散户能量,1.5,0),COLORRED;

   反弹3:STICKLINE(散户能量<0AND散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;

   寻底3:STICKLINE(散户能量<0AND散户能量<REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;

   DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),’散户’),COLORBLUE;

   JZ:=V/(Abs(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));

   ZLCJ:=JZ*ABS(主力能量);

   DHCJ:=JZ*ABS(大户能量);

   ZHCJ:=JZ*ABS(中户能量);

   SHCJ:=JZ*ABS(散户能量);

   机构量:ZLCJ,COLORMAGENTA,NODRAW;

   大户量:DHCJ,COLORYELLOW,NODRAW;

   中户量:ZHCJ,COLORLIBLUE,NODRAW;

   散户量:SHCJ,COLORBLUE,NODRAW;

   MA5:=MA(VOL,5);

   MA80:=MA(VOL,80);

   中间价:=(H+L)/2;

   C大于中间价:=C>=中间价;

   C小于中间价:=C<中间价;

   0.56,COLOR8C7853,DOTLINE;

   0.50,COLOR8C7853,DOTLINE;

   0.44,COLOR8C7853,DOTLINE;

   红VOL均数:COUNT(C大于中间价,统计周期)/统计周期,COLOR000ABC,LINETHICK2;

   蓝VOL均数:COUNT(C小于中间价,统计周期)/统计周期,COLORCYAN,LINETHICK2;

   万手:VOL/10000,LINETHICK0;

   AA:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);

   预测:AA/10000;

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

   主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

   主买:主动买/10000,COLORRED;

   主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));

   主卖:-主动卖/10000,COLORGREEN;

   差额:(主动买+主动卖)/10000;

   STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;

   STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;

   STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,3.5,0),COLORYELLOW;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,3.2,0),COLOR0088FF;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,2.7,0),COLOR00AAFF;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,2.1,0),COLOR00CCFF;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,1.5,0),COLOR22FFFF;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,0.9,0),COLOR66FFFF;

   STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,0.3,0),COLOR99FFFF;

   STICKLINE(主动买>0,0,主动买,3.2,0),COLOR000033;

   STICKLINE(主动买>0,0,主动买,2.7,0),COLOR000066;

   STICKLINE(主动买>0,0,主动买,2.1,0),COLOR000099;

   STICKLINE(主动买>0,0,主动买,1.5,0),COLOR0000CC;

   STICKLINE(主动买>0,0,主动买,0.9,0),COLOR0000FF;

   STICKLINE(主动买>0,0,主动买,0.3,0),COLORCC66FF;

   STICKLINE(主动卖<0,VOL,主动买,3.2,0),COLOR990000;

   STICKLINE(主动卖<0,VOL,主动买,2.7,0),COLORCC0000;

   STICKLINE(主动卖<0,VOL,主动买,2.1,0),COLORFF4400;

   STICKLINE(主动卖<0,VOL,主动买,1.5,0),COLORFF8800;

   STICKLINE(主动卖<0,VOL,主动买,0.9,0),COLORFFCC00;

   STICKLINE(主动卖<0,VOL,主动买,0.3,0),COLORCYAN;

   持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN;

   持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLOR000099;

   五日:MA(V,5)COLORWHITE;

   十日:MA(V,10)COLORYELLOW;

大智慧自创成交量指标截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。