A:=EMA(C,10);
qw:=EMA(C,60);
ax:=ma(c,3);
bbx:=ref(ax,0);
ccx:=ref(ax,1);
换手率:=vol/capital*100;
z1:=(c-ref(c,1))/ref(c,1)*100;
五日涨幅:=(c-ref(c,5))/ref(c,5)*100;
三日涨副:=(c-ref(c,3))/ref(c,3)*100;
十日涨副:=(c-ref(c,10))/ref(c,10)*100;
二十日涨副:=(c-ref(c,20))/ref(c,20)*100;
小单差:=(1-BIGORDER(1,1)-(1-BIGORDER(2,1)))*100;
特大差:=(BIGORDER(1,3)-BIGORDER(2,3))*100;
大单差:=((BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3)))*100;
大户买:=(BIGORDER(1,2)-BIGORDER(1,3))*AMOUNT/1000000;
大户卖:=(BIGORDER(2,2)-BIGORDER(2,3))*AMOUNT/1000000;
大户:=(大户买-大户卖)*100;
特大买:=BIGORDER(1,3)*AMOUNT/1000000;
特大卖:=BIGORDER(2,3)*AMOUNT/1000000;
特大:=(特大买-特大卖)*100;
买入单数:= order(1);
卖出单数:= order(2);
单数比:=卖出单数/买入单数;
大单买入:=(BIGORDER(1,2)-BIGORDER(1,3))*VOL/CAPITAL*100;
大单卖出:=(BIGORDER(2,2)-BIGORDER(2,3))*VOL/CAPITAL*100;
DDXn:=大单买入-大单卖出;
十日飘红天数:=count(DDXn>0,10);
连红天数:=last(DDXn>0);
外盘:=extdata(2);
内盘:=extdata(1);
主动率:=(DYNAINFO(23)-DYNAINFO(22))/(DYNAINFO(22)+DYNAINFO(23))*100;
买入:=BIGORDER(1,2)*AMOUNT;
卖出:=BIGORDER(2,2)*AMOUNT;
净额:=买入-卖出;
通吃率:=净额/amount*100;
DDX三日:=sum("ddx.ddx",3);
DDY三日:=sum("ddy.ddy",3);
主动率3日:=SUM((外盘-内盘),3)/SUM((内盘+外盘),3)*100;
主动率5日:=SUM((外盘-内盘),5)/SUM((内盘+外盘),5)*100;
十日主动率:=SUM((外盘-内盘),10)/SUM((内盘+外盘),10)*100;
通吃率3日:=SUM(净额,3)/SUM(amount,3)*100;
五日通吃率:=SUM(净额,5)/SUM(amount,5)*100;
十日通吃率:=SUM(净额,10)/SUM(amount,10)*100;
b:="ddx.ddx";
d:="ddy.ddy";
z:="ddz.ddz";
DDX五日:=sum("ddx.ddx",5);
DDX十日:=sum("ddx.ddx",10);
DDY五日:=sum("ddy.ddy",5);
DDY十日:=sum("ddy.ddy",10);
流通市制:=DYNAINFO(57);
没騒乾坤手:=1200*(WINNER(C)-WINNER(O));
k:=EMA(C,5);
sp:=ref(c,0)-ref(c,1);
sb:=sp/ref(c,1);
买1:z1<3 and z1>1 and 三日涨副<5 and 五日涨幅<10 and 二十日涨副<10 and 主动率>0 and 通吃率>0 and 通吃率3日>0 and DDX三日>0 and DDY五日>0 and 换手率<5 and 小单差<-5 and 大单差>0 and 单数比>0 and bbx>0;