需要超赢行情支持
本公式将超赢实时监控,超赢分类统计合二为一,外加主力资金线(即S.V大资金流向),实现三合一日K线,但能分时观察行情动态.
合二为一后,可将综合3天,或综合5天复制到模板中一起观察.
由于不能发图和模板.有劳大家了,谢谢!!!
使用方法:复制公式,在TOP模板上点"设",出现提示栏后,点"新建指标",粘贴公式,把"沪市综合1"复制到公式名称中,
把"●当天沪市综合(超赢分类统计)●"复制到公式描述中,最后查一下,公式底下有没有复制时带的 "........."这些语句,有,一定要删除到最前面.
完成后按确认.(公式会在"其它"中,但不会显示,因有TOP涵数自动定向.请备份公式.).
{沪市综合1}
{公式描述:●当天沪市综合(超赢分类统计)●}
DRAWTEXTABS(160,0,'当天分类增减(%)净额(万元)');
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(成交,1);
散户净额:=if(TYPE=0 and date<1090101,0,散);
中户净额:=if(TYPE=0 and date<1090101,0,中);
大户净额:=if(TYPE=0 and date<1090101,0,大);
超大净额:=if(TYPE=0 and date<1090101,0,超);
主力净额:=if(TYPE=0 and date<1090101,0,超+大);
散户:percentbar(T1,REF(T1,1)),COLOR00FF00;
中户:percentbar(T2,REF(T2,1)),COLORFF8800;
大户:percentbar(T3,REF(T3,1)),COLOR009999;
超大:percentbar(T4,REF(T4,1)),COLORFF00FF;
主力:percentbar(T5,REF(T5,1)),COLOR0033FF;
资金线:percentbar(主力资金线,REF(主力资金线,1)),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;
{沪市综合3}
{公式描述:●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;
{沪市综合5}
{公式描述:●5天沪市综合(超赢分类统计)●}
DRAWTEXTABS(160,0,'5天分类增减(%)净额(万元)');
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(成交,5);
散户净额:=Sum(if(TYPE=0 and date<1090101,0,散),5);
中户净额:=Sum(if(TYPE=0 and date<1090101,0,中),5);
大户净额:=Sum(if(TYPE=0 and date<1090101,0,大),5);
超大净额:=Sum(if(TYPE=0 and date<1090101,0,超),5);
主力净额:=Sum(if(TYPE=0 and date<1090101,0,超+大),5);
散户:percentbar(T1,REF(T1,5)),COLOR00FF00;
中户:percentbar(T2,REF(T2,5)),COLORFF8800;
大户:percentbar(T3,REF(T3,5)),COLOR009999;
超大:percentbar(T4,REF(T4,5)),COLORFF00FF;
主力:percentbar(T5,REF(T5,5)),COLOR0033FF;
资金线:percentbar(主力资金线,REF(主力资金线,5)),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; |