{暗盘资金副图2源码如下}
ACB1:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1);
ACB2:=(CLOSE-OPEN)/OPEN;
ACB3:=(HIGH-OPEN)/OPEN;
ACB4:=(CLOSE-HIGH)/HIGH;
ACB5:=(LOW-OPEN)/OPEN;
ACB6:=(CLOSE-LOW)/LOW;
ACB7:=ACB1+ACB2+ACB3+ACB4+ACB5+ACB6;
ACB8:=IF(ACB7>=1,0.8,ACB7);
ACB9:=(0,0);
ACB10:=(1,0);
ACB11:=(2,0);
ACB12:=AMOUNT-ACB11-ACB10-ACB9;
ACB13:=(0,1);
ACB14:=(1,1);
ACB15:=(2,1);
ACB16:=AMOUNT-ACB15-ACB14-ACB13;
ACB17:=IF(ACB8>0,ACB9+ACB11*ACB8,ACB9);
ACB18:=IF(ACB8>0,ACB10+ACB12*ACB8,ACB10);
ACB19:=IF(ACB8>0,ACB11-ACB11*ACB8,ACB11);
ACB20:=IF(ACB8>0,ACB12-ACB12*ACB8,ACB12);
ACB21:=IF(ACB8<=0,ACB13-ACB15*ACB8,ACB13);
ACB22:=IF(ACB8<=0,ACB14-ACB16*ACB8,ACB14);
ACB23:=IF(ACB8<=0,ACB15+ACB15*ACB8,ACB15);
ACB24:=IF(ACB8<=0,ACB16+ACB16*ACB8,ACB16);
ACB25:=ACB17+ACB18;
ACB26:=ACB21+ACB22;
ACB27:=(ACB25-ACB26)/100000000;
(ACB25-ACB26)/100000000,NODRAW;
STICKLINE(ACB27>0,0,ACB27,2.2,0),COLORRED;
STICKLINE(ACB27<0,0,ACB27,2.2,0),COLORLIBLUE;
资金流入:=BARSLASTCOUNT(ACB27>0)=2;
DRAWICON(资金流入,ACB27,9);
{暗盘资金副图1源码如下}
ACB1:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1);
ACB2:=(CLOSE-OPEN)/OPEN;
ACB3:=(HIGH-OPEN)/OPEN;
ACB4:=(CLOSE-HIGH)/HIGH;
ACB5:=(LOW-OPEN)/OPEN;
ACB6:=(CLOSE-LOW)/LOW;
ACB7:=ACB1+ACB2+ACB3+ACB4+ACB5+ACB6;
ACB8:=IF(ACB7>=1,0.8,ACB7);
ACB9:=(0,0);
ACB10:=(1,0);
ACB11:=(2,0);
ACB12:=AMOUNT-ACB11-ACB10-ACB9;
ACB13:=(0,1);
ACB14:=(1,1);
ACB15:=(2,1);
ACB16:=AMOUNT-ACB15-ACB14-ACB13;
ACB17:=IF(ACB8>0,ACB9+ACB11*ACB8,ACB9);
ACB18:=IF(ACB8>0,ACB10+ACB12*ACB8,ACB10);
ACB19:=IF(ACB8>0,ACB11-ACB11*ACB8,ACB11);
ACB20:=IF(ACB8>0,ACB12-ACB12*ACB8,ACB12);
ACB21:=IF(ACB8<=0,ACB13-ACB15*ACB8,ACB13);
ACB22:=IF(ACB8<=0,ACB14-ACB16*ACB8,ACB14);
ACB23:=IF(ACB8<=0,ACB15+ACB15*ACB8,ACB15);
ACB24:=IF(ACB8<=0,ACB16+ACB16*ACB8,ACB16);
主力暗盘1日资金:IF(ACB8>0,(ACB11+ACB12)*ACB8,(ACB15+ACB16)*ACB8)/100000000,NODRAW,COLORRED;
ACB25:=IF(4=2,主力暗盘1日资金,0);
DRAWBAND(ACB25,RGB(255,0,0),0,RGB(0,255,0));
主力暗盘3日资金:REF(主力暗盘1日资金,1)+REF(主力暗盘1日资金,2)+主力暗盘1日资金,NODRAW,COLORYELLOW;
主力暗盘5日资金:REF(主力暗盘1日资金,1)+REF(主力暗盘1日资金,2)+REF(主力暗盘1日资金,3)+REF(主力暗盘1日资金,4)+主力暗盘1日资金,NODRAW,COLORWHITE;
ACB26:=IF(4=4,主力暗盘3日资金,IF(4=6,主力暗盘5日资金,0));
ACB27:=IF(4=3,主力暗盘3日资金,IF(4=5,主力暗盘5日资金,0));
DRAWBAND(ACB26,RGB(255,0,0),0,RGB(0,255,0));
{机构持仓主图源码如下}
ABC1:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
筹码突破:=C>ABC1 AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORRED;
突破:=BARSLASTCOUNT(筹码突破)=1;
STICKLINE(突破,L,H,2,0),COLOR000099;
STICKLINE(突破,L,H,0,0),COLOR0000DD;
STICKLINE(突破,L,H,3,0),COLOR000099;
STICKLINE(突破,L,H,2,0),COLOR0000BB;
STICKLINE(突破,L,H,1,0),COLOR0000DD;
STICKLINE(突破,L,H,0.1,0),COLORYELLOW;
DRAWICON(突破,L,9);
DRAWTEXT(突破,L,' ★强势'),COLORYELLOW;