input:p1(7),N(10,1,120,1);
T1:=topview(1430);
T2:=topview(1431);
T3:=topview(1432);
T4:=topview(1433);
散户:=(T1-REF(T1,1))*capital/10000*(c/if(TYPE=0,255.5,1));
中户:=(T2-REF(T2,1))*capital/10000*(c/if(TYPE=0,255.5,1));
大户:=(T3-REF(T3,1))*capital/10000*(c/if(TYPE=0,255.5,1));
超大:=(T4-REF(T4,1))*capital/10000*(c/if(TYPE=0,255.5,1));
净额:=if(TYPE=0 and date<1090101,0,大户+超大);
stickline(净额>0,0,净额,3,0),colorred;
stickline(净额<0,0,净额,3,0),COLORGREEN;
stickline(净额=0,0,净额,3,0),colorwhite;净额:=大户+超大;
一日:净额,COLORSTICK;
二日:sum(净额,2),COLORSTICK;
三日:sum(净额,3),COLORSTICK;
四日:sum(净额,4),COLORSTICK;
五日:sum(净额,5),COLORSTICK;
六日:sum(净额,6),COLORSTICK;
七日:sum(净额,7),COLORSTICK;
八日:sum(净额,8),COLORSTICK;
九日:sum(净额,9),COLORSTICK;
十日合计:sum(净额,10),COLORSTICK;