用到大智慧的level2数据,行家看门道:趋势、成交量、资金、筹码四种条件共振时,定有斩获是大概率!自创源码无私奉献!
HS:=vol/capital;
DD:=BIGORDER(1,2)-BIGORDER(2,2);
DT:=amount*DD/1000000;
超赢主力持仓:=Sum(DT,0);
当日增筹比率:=超赢主力持仓-ref(超赢主力持仓,1);
STICKLINE(DD<=0,超赢主力持仓,超赢主力持仓-当日增筹比率,8,0),COLORFF2200;
STICKLINE(DD<=0,超赢主力持仓,超赢主力持仓-当日增筹比率,5,0),COLORFF6600;
STICKLINE(DD<=0,超赢主力持仓,超赢主力持仓-当日增筹比率,3,0),COLORFF9900;
STICKLINE(DD<=0,超赢主力持仓,超赢主力持仓-当日增筹比率,1.5,0),COLORFFDD00;
STICKLINE(DD>=0,超赢主力持仓,超赢主力持仓-当日增筹比率,8,0),COLOR0022FF;
STICKLINE(DD>=0,超赢主力持仓,超赢主力持仓-当日增筹比率,5,0),COLOR0066FF;
STICKLINE(DD>=0,超赢主力持仓,超赢主力持仓-当日增筹比率,3,0),COLOR0099FF;
STICKLINE(DD>=0,超赢主力持仓,超赢主力持仓-当日增筹比率,1.5,0),COLOR00DDFF;
资金收盘:ma(超赢主力持仓,1),colorwhite,PRECIS1,linethick0;
当日资金:=(超赢主力持仓-ref(超赢主力持仓,1));
金额:=AMOUNT/100000000;
资金比率:=DD * VOL/CAPITAL * 100;
比率:=当日资金/金额;
DT1:=HS*DD*100;
超赢主力持仓1:=(50+Sum(DT1,0));
持仓21:=ref(超赢主力持仓1,21);
持仓差:=超赢主力持仓1-持仓21;
ema5:ema(超赢主力持仓,5),colorwhite,PRECIS0,linethick0;
ma5:ma(超赢主力持仓,5),colorwhite,PRECIS0,linethick1;
ma10:ma(超赢主力持仓,10),colorgreen,PRECIS1,linethick1;
ma21:ma(超赢主力持仓,21),coloryellow,PRECIS1,linethick1;
ma60:ma(超赢主力持仓,60),COLORFF00FF,PRECIS0,linethick2;
drawmovetext(当日增筹比率>0,'当日流入:'+NUMTOSTRN(当日资金,2)+'百万'),colorred;
drawmovetext(当日增筹比率<0,'当日流出:'+NUMTOSTRN(当日资金,2)+'百万'),colorgreen;
M8:=MA(AMOUNT/10000,8);
M89:=MA(AMOUNT/10000,89);
上市天数:=BARSCOUNT(CLOSE);
PARTLINE(ema5 ,上市天数<6,RGB(255,255,255)),LINETHICK1;
强势趋势:=ma(c,25)>ma(c,50) and c>ma(c,250) and ma(c,50)>ma(c,100) and ema(c,17)>ma(c,25) and c>ma(c,25) and count(c>ma(c,250),10)>7 and count(ma(c,250)>ref(ma(c,250),1),10)>8 ;
PARTLINE(ma60 ,强势趋势=1,RGB(255,0,0)),LINETHICK5;
PARTLINE(ma60 ,资金收盘<ma60 or ma60<ref(ma60,1),RGB(0,255,0)),LINETHICK2;
PARTLINE(ma60 ,资金收盘>ma60 and M8<M89,RGB(255,255,255)),LINETHICK2;