资源描述:
《【股票指标公式下载】-【大智慧】多空红绿(机构户量、大户量、散户量、乖离率).doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【大智慧】多空红绿(机构户量.大户量.散户量.乖离率)-指标公式源码{多空红绿}VV:=IF(CAPITAL<1,INDEXV,VOL);VVC:=IF(CAPITAL<1,SUM(IXDEXV,71),CAPITAL);换手:二vv/vvc;机构意图:二MA(换手,21)*100;大户意图:二MA(换手,13)^100;中户意图:二MA(换手,8)*100;散户意图:二MA(换手,5)*100;均量:二(机构意图+大户意图+屮户意图+散户意图)/4;机构0:二机构意图-均量;大户0:二大户意图-均量;中户0:二中户意图-均量;
2、散户0:二散户意图-均量;VIRVOL:=ABS(机构0)+ABS(大户O)+ABS(中户0)+ABS(散户0);机构:二机构O/VIRVOL^VV;大户:二大户O/VIRVOL*VV;中户:二中户O/VIRVOL*VV;散户:二散户O/VIRVOL^VV;机构1日:机构,LINETHICKO,ColorOOOOFF,PRECIS1;大户1日:大户,LINETHICKO,ColorFFOOFF,PRECIS1;中户1日冲户,LINETHICKO,ColorOOSOFF,PRECIS1;散户1口:散户,IJNETHTCKO,Col
3、orOOFFFF,PRECTS1;{机构户量}KC4:=ABS(机构)+ABS(大户)+ABS(中户)+ABS(散户);K04:=ABS(大户)+ABS(中户)+ABS(散户);STICKLINE(机构>0,KC4,K04,5,0),ColorOOOOAA;STTCKIJNE(机构>0,KC4,K04,3,0),ColorOOOOFF;STICKLINE(机构U0,KC4,K04,5,0),Color009300;STICKLINE(机构<=0,KC4,K04,3,0),ColorOOFFOO;{大户量}KC3:=ABS(大户)
4、+ABS(中户)+ABS(散户);K03:=ABS(中户)+ABS(散户);STTCKLTNE(大户>0,KC3,K03,5,0),ColorA600A6;STICKLINE(大户>0,KC3,K03,3,0),ColorFFOOFF;STICKLINE(大户<=0,KC3,K03,5,0),Color999900;STICKLINE(大户<=0,KC3,K03,3,0),ColorFFFFOO;{小户量}KC2:=ABS(中户)+ABS(散户);K02:=ABS(散户);STICKLINE('
5、•户>0,KC2,K02,5,0
6、),Color0053A6;STICKLINE(中户>0,KC2,K02,3,0),ColorOOSOFF;STICKLINE(H)户<=0,KC2,K02,5,0),Color9F0000;STICKLINE(中户U0,KC2,K02,3,0),ColorC5753A;{散户量}KC1:=ABS(散户);K01:=0;STICKLINE(散户>0,KC1,K01,5,0),Color009999;STTCKLTNE(散户>0,KC1,KOI,3,0),ColorOOFFFF;STICKLINE(散户<=0,KC1,KOI,5,
7、0),Color7C7C7C;STICKLINE(散户<=0,KC1,KOI,3,0),ColorElElEl;DRAWTEXTABS(0,0,'■机红多'),ColorOOOOFF;DRAWTEXTABS(50,0,'■机绿空,),ColorOOFFOO;DRAWTEXTABS(100,0,'■大紫多,),ColorFFOOFF;DRAWTEXTABS(150,0,,■大青空,),ColorFFFFOO;DRAWTEXTABS(200,0,'■中橙多'),Color0080FF;DRAWTEXTABS(250,0/■>p兰空'
8、),ColorC5753A;DRAWTEXTABS(300,0,'■散黄多,),ColorOOFFFF;DRAWTEXTABS(350,0,'■散灰空,),ColorElElEl;STICKLINE(c>=ref(c,1),0,V,7,l),Colorred,layer7;STICKLINE(c<ref(c,1),0,V,7,1),Colorgreen,layer7;{乖离率}11:=6;{61300}12:二12;{121300}13:=24;{241300}BIAS6:(CLOSE-MA(CLOSE,LI))/MA(CLOS
9、E,LI)*100,LINETHICKO,PRECIS1;BIAS12:(CLOSE-MA(CLOSE,L2))/MA(CLOSE,L2)^100,LINETHICKO,PRECIS1;BIAS24:(CLOSE-MA(CLOSE,L3))/MA(CLOSE,L