N:=20;
涨幅:=5;
换手:=5;
M3:=20;
M4:=60;
量比:V/REF(MA(V,1),1)NODRAW;
N日涨幅:((C-REF(C,涨幅))/REF(C,涨幅)*100)NODRAW;
N日换手:(SUM(VOL,换手)*100/CAPITAL)NODRAW;
JGV:=(L2_VOL(0,0) - L2_VOL(0,1))*VOL/1000;
DHV:=(L2_VOL(1,0) - L2_VOL(1,1))*VOL/1000;
ZHV:=(L2_VOL(2,0) - L2_VOL(2,1))*VOL/1000;
SHV:=(L2_VOL(3,0) - L2_VOL(3,1))*VOL/1000;
超B:=L2_AMO(0,2)/100000000.0;
大B:=L2_AMO(1,2)/100000000.0;
中B:=L2_AMO(2,2)/100000000.0;
小B:=L2_AMO(3,2)/100000000.0;
超S:=-L2_AMO(0,3)/100000000.0;
大S:=-L2_AMO(1,3)/100000000.0;
中S:=-L2_AMO(2,3)/100000000.0;
小S:=-L2_AMO(3,3)/100000000.0;
净流入:(超B+大B+中B+小B)+(超S+大S+中S+小S),NODRAW;
机构资金:=EMA(JGV,60)*60/CAPITAL;
游资资金:=EMA(DHV,60)*60/CAPITAL;
中户资金:=EMA(ZHV,60)*60/CAPITAL;
散户资金:=EMA(SHV,60)*60/CAPITAL;
主力金叉:CROSS(机构资金,散户资金);
大单动向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;
DX:=MA(大单动向,5)*5;
DDX1:=SMA(DX,3,1),COLORFFFFFF;
DDX2:=SMA(DDX1,3,1),COLOR00FFFF;
大单趋势1:=DDX1>DDX2;
大单趋势:BARSLASTCOUNT(大单趋势1)NODRAW;
N天内红:COUNT(DDX>0,N),NODRAW;
N天连红:BARSLASTCOUNT(DDX>0)NODRAW;
{机构趋势}
累计:=EMA(JGV,60)*60;
均值:=MA(累计,5);
持续向上:=均值<累计;
机构趋势:BARSLASTCOUNT(持续向上)NODRAW;
{游资趋势}
累计2:=EMA(DHV,60)*60,COLOR3399FF;
均值2:MA(累计2,5);
持续向上2:=均值2<累计2;
游资趋势:BARSLASTCOUNT(持续向上2),COLOR3399FF,NODRAW;
VAR2222:=REF(LOW,1);
VAR3333:=(SMA(ABS(LOW-VAR2222),3,1))/(SMA(MAX(LOW-VAR2222,0),3,1))*100;
VAR4444:=EMA(IF(CLOSE*1.3,VAR3333*10,VAR3333/10),3);
VAR5555:=LLV(LOW,30);
VAR6666:=HHV(VAR4444,30);
VAR7777:=IF(MA(CLOSE,58),1,0);
主力吸筹:=(EMA(IF(LOW<=VAR5555,(VAR4444+VAR6666*2)/2,0),3))/(618)*VAR7777;
连续吸筹:BARSLASTCOUNT(主力吸筹>1);
筹码:=(COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5;
筹码获利:WINNER(C)*100,COLORWHITE,NODRAW;