 | |  |  |
大智慧沪市综合3源码公式:
DRAWTEXTABS(160,0,'3天分类增减(%)净额(万元)');
refline:0,25,50,75;
T1:=topview(1430);
T2:=topview(1431);
T3:=topview(1432);
T4:=topview(1433);
T5:=topview(1436,0,200);
散:=(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));
{主力资金线显示}
eye:=(BIGORDER(1,2)-BIGORDER(2,2))*vol/capital*100;
eyes:=sum(eye,0);
gold:=eyes+50;
主力资金线:=gold;
HS:=vol/capital;
DD:=(BIGORDER(1,2)-BIGORDER(2,2));
ZL:=HS*DD*100;
主力大单:=ZL;
成交:=(ZL* capital) * (amount/(v*100))/10000;
主力资金线净额:=Sum(成交,3);
散户净额:=Sum(if(TYPE=0 and date<1090101,0,散),3);
中户净额:=Sum(if(TYPE=0 and date<1090101,0,中),3);
大户净额:=Sum(if(TYPE=0 and date<1090101,0,大),3);
超大净额:=Sum(if(TYPE=0 and date<1090101,0,超),3);
主力净额:=Sum(if(TYPE=0 and date<1090101,0,超+大),3);
散户:percentbar(T1,REF(T1,3)),COLOR00FF00;
中户:percentbar(T2,REF(T2,3)),COLORFF8800;
大户:percentbar(T3,REF(T3,3)),COLOR009999;
超大:percentbar(T4,REF(T4,3)),COLORFF00FF;
主力:percentbar(T5,REF(T5,3)),COLOR0033FF;
资金线:percentbar(主力资金线,REF(主力资金线,3)),COLOR1199FF;
drawtextrel(0,997,'净 额');{万元}
drawtextrel(0,998,'比 例');{%}
drawtextrel(0,999,'分 类');
drawtextrel(10,997,numtostrn(散户净额,2)),COLOR00FFFF;
drawtextrel(20,997,numtostrn(中户净额,2)),COLOR00FFFF;
drawtextrel(30,997,numtostrn(大户净额,2)),COLOR00FFFF;
drawtextrel(40,997,numtostrn(超大净额,2)),COLOR00FFFF;
drawtextrel(50,997,numtostrn(主力净额,2)),COLOR00FFFF;
drawtextrel(60,997,numtostrn(主力资金线净额,3)),COLOR00FFFF;
drawtextrel(10,998,numtostrn(T1,3)),COLORGREEN;
drawtextrel(20,998,numtostrn(T2,3)),COLORGREEN;
drawtextrel(30,998,numtostrn(T3,3)),COLORGREEN;
drawtextrel(40,998,numtostrn(T4,3)),COLORGREEN;
drawtextrel(50,998,numtostrn(T5,3)),COLORGREEN;
drawtextrel(60,998,numtostrn(主力资金线,3)),COLORGREEN; |
| |  | |  |
|