量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 買量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN, 量*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)); 賣量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<OPEN,0- 量*(HIGH-LOW),0-VOL/2)))*-1; 總量:=買量+賣量; 凈量:買量-賣量,LINETHICK0; MAA:=MA( CLOSE ,2); STICKLINE(買量>0,0,買量,3,0),COLOR000099; STICKLINE(凈量>0,0,凈量,0.1,0),COLOR00FFFF; STICKLINE(V>=2*REF(V,1),1,總量,4,1),COLOR0000FF; STICKLINE(C>MAA,總量,1,4,1 ),COLOR00FFFF; DRAWTEXT_FIX(C>O,0.6,0.6,1,'更多指標(biāo)+V:HDWR256'),COLOR0FFFFF; STICKLINE(C<MAA,總量,1,4,1 ),COLORFF00FF; STICKLINE(凈量<0,1,總量,4,1),COLORFFFF00; STICKLINE(C<MAA AND 凈量>0,凈量,1,4,1 ),COLOR0000FF; STICKLINE(V>=2*REF(V,1),1,總量,4,1),COLOR0000FF; STICKLINE(買量>0,0,買量,3,0),COLOR000099; STICKLINE(買量>0,0,買量,2,0),COLOR0000AA; STICKLINE(買量>0,0,買量,1,0),COLOR0000FF; STICKLINE(買量>0,0,買量,0.1,0),COLORCC00FF; STICKLINE(凈量>0,0,凈量,3,0),COLOR0033FF; STICKLINE(凈量>0,0,凈量,2,0),COLOR0077FF; STICKLINE(凈量>0,0,凈量,1,0),COLOR00BBFF; STICKLINE(凈量>0,0,凈量,0.1,0),COLOR00FFFF; STICKLINE(C<MAA AND 凈量>0,凈量,0,3,0 ),COLOR777777; STICKLINE(C<MAA AND 凈量>0,凈量,0,2,0 ),COLOR999999; STICKLINE(C<MAA AND 凈量>0,凈量,0,1,0 ),COLORBBBBBB; STICKLINE(C<MAA AND 凈量>0,凈量,0,0.1,0 ),COLORFFFFFF; MA5:=MA(VOL,5); MA10:=MA(VOL,10); MA20:=MA(VOL,20); 凈買量金色:0,COLORYELLOW; 買量紅色:0,COLORRED; 短買灰色:0,COLORLIGRAY; DRAWTEXT(CROSS(凈量,0),0-0,'買'),COLORFF00FF; DRAWTEXT(CROSS(0,凈量),0-0,'減倉(cāng)'),COLORGREEN; ① 指標(biāo)源碼我有很多,導(dǎo)入就可以使用,,不會(huì)的我教你,,種類很多,監(jiān)測(cè)主力資金進(jìn)場(chǎng)的,,妖股起漲的,,均線粘合的等等,看自己需要,! |
|