{【卫东 - 超赢盘中趋势】}
昨天的超大:= 卫东.散户持仓#day
昨天的大户:= 卫东.大户持仓#day
昨天的中户:= 卫东.中户持仓#day
昨天的散户:= 卫东.散户持仓#day
当日超大1:=(ordervol(1,3)-ordervol(2,3))/capital*100;
当日大户1:=((ordervol(1,2)-ordervol(2,2))-(ordervol(1,3)-ordervol(2,3)))/capital*100;
当日中户1:=((ordervol(1,1)-ordervol(2,1))-(ordervol(1,2)-ordervol(2,2)))/capital*100;
当日散户1:=0-当日中户1-当日大户1-当日超大1;
当日散户:=sum(当日散户1,0);
当日中户:=sum(当日中户1,0);
当日大户:=sum(当日大户1,0);
当日超大:=sum(当日超大1,0);
最新超大:=昨天的超大+当日超大;
最新大户:=昨天的大户+当日大户;
最新中户:=昨天的中户+当日中户;
最新散户:=昨天的散户+当日散户;
回归后散户仓位:=1/(exp(50)/100*exp(-(50+(最新散户-50)/20))+0.01);
回归后中户仓位:=1/(exp(50)/100*exp(-(50+(最新中户-50)/20))+0.01);
回归后大户仓位:=1/(exp(50)/100*exp(-(50+(最新大户-50)/20))+0.01);
回归后超大仓位:=1/(exp(50)/100*exp(-(50+(最新超大-50)/20))+0.01);
归百:=100/(回归后散户仓位+回归后中户仓位+回归后大户仓位+回归后超大仓位);
超大:=回归后超大仓位*归百;
大户:=回归后大户仓位*归百;
中户:=回归后中户仓位*归百;
散户:=回归后散户仓位*归百;
盘中变化:(大户+超大)-(ref(大户,1)+ref(超大,1)),colorstICK,LINETHICK2;
超赢趋势:sum(盘中变化,0);
{相关引用公式中的部分}
{卫东}
TODAY:= ddx.ddx =0;{判断是否有正版数据}
{比例}
主单买:IF(TODAY, DDEDATA@BIGORDER (1,2),bigorder(1,2));
主单卖:IF(TODAY, DDEDATA@BIGORDER (2,2),bigorder(2,2));
特单买:IF(TODAY, DDEDATA@BIGORDER (1,3),bigorder(1,3));
特单卖:IF(TODAY, DDEDATA@BIGORDER (2,3),bigorder(2,3));
大单买:IF(TODAY,( DDEDATA@BIGORDER (1,2)- DDEDATA@BIGORDER (1,3)),(bigorder(1,2)-bigorder(1,3)));
大单卖:IF(TODAY,( DDEDATA@BIGORDER (2,2)- DDEDATA@BIGORDER (2,3)),(bigorder(2,2)-bigorder(2,3)));
中单买:IF(TODAY,( DDEDATA@BIGORDER (1,1)- DDEDATA@BIGORDER (1,2)),(bigorder(1,1)-bigorder(1,2)));
中单卖:IF(TODAY,( DDEDATA@BIGORDER (2,1)- DDEDATA@BIGORDER (2,2)),(bigorder(2,1)-bigorder(2,2)));
散单买:IF(TODAY,1-( DDEDATA@BIGORDER (1,1)),1-(bigorder(1,1)));
散单卖:IF(TODAY,1-( DDEDATA@BIGORDER (2,1)),1-(bigorder(2,1)));
{成交量}
量比:=VOL/CAPITAL;{%}
{仓位}
主力持仓:50+Sum(量比*100*(主单买-主单卖),0);
超大持仓:25+Sum(量比*100*(特单买-特单卖),0);
大户持仓:25+Sum(量比*100*(大单买-大单卖),0);
中户持仓:25+Sum(量比*100*(中单买-中单卖),0);
散户持仓:25+Sum(量比*100*(散单买-散单卖),0);
制作方法图解: