指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:定点换手日周月年表公式 飞狐换手定点指标 源码
定点换手日周月年表
{定点换手}
{确定周期参数}
bz:=weekday;zb:=bz<ref(bz,1);z1:=sumbars(zb,1);zz0:=sumbars(zb,2);//周
by:=month;yb:=by-ref(by,1)<>0;y1:=sumbars(yb,1);y0:=sumbars(yb,2);//月
年:=year;fn:=年-ref(年,1)<>0;fn1:=sumbars(fn,1);fn0:=sumbars(fn,2);//年
qb:=sumbars(vol,capital);xx:=backset(barpos=sysparam(1),qb)*40;qw:=xx>ref(xx,1);
换手:=vol/capital*100;
当日换:=换手,stick;
当周换:=sum(vol,z1)/capital*100;
当月换:=sum(vol,y1)/capital*100;
当季换:=sum(vol,j1)/capital*100;
半年换:=sum(vol,n1)/capital*100;
当年换:=sum(vol,fn1)/capital*100;
{16行显示换手↑↓用}
dja:=当日换[sysparam(1)];dja1:=当日换[(sysparam(1)-1)];dj1:=if((dja>dja1),'↑','↓');
djb:=当周换[sysparam(1)];djb1:=当周换[(sysparam(1)-1)];dj2:=if((djb>djb1),'↑','↓');
djc:=当月换[sysparam(1)];djc1:=当月换[(sysparam(1)-1)];dj3:=if((djc>djc1),'↑','↓');
djd:=当年换[sysparam(1)];djd1:=当年换[(sysparam(1)-1)];dj4:=if((djd>djd1),'↑','↓');
{21行图表部份}
p:=sysparam(1);
drawtext(c>0 and barstatus=2,-10,''),colorffff00,linethick1,align2; {表框下限}{48行}
drawtext(c>0 and barstatus=2, 60,'┏━━━┱─────┬─────┬─────┬─────┐'),color00aaaa,shift3,align2;
drawtext(c>0 and barstatus=2, 50,'┃ ┃ │ │ │ │'),color00aaaa,shift3,align2;
drawtext(c>0 and barstatus=2, 40,'┠───╂─────┼─────┼─────┼─────┤'),color00aaaa,shift3,align2;
drawtext(c>0 and barstatus=2, 30,'┃ ┃ │ │ │ │'),color00aaaa,shift3,align2;
drawtext(c>0 and barstatus=2, 20,'┗━━━┹─────┴─────┴─────┴─────┘'),color00aaaa,shift3,align2;
{第29行}
drawtext(c>0 and barstatus=2,50,'周期:当日换手率: 当周换手率: 当月换手率: 当年换手率: '),colordedede,shift3,align2;
drawtext(c>0 and barstatus=2,30,'值: '),colordedede,shift3,align2;
{32行}
drawtext(c>0 and barstatus=2,30,numtostr(当日换[p],2)+dj1+' '),colorwhite,shift3,align2;
drawtext(c>0 and barstatus=2,30,numtostr(当周换[p],2)+dj2+' '),colorwhite,shift3,align2;
drawtext(c>0 and barstatus=2,30,numtostr(当月换[p],2)+dj3+' '),colorwhite,shift3,align2;
drawtext(c>0 and barstatus=2,30,numtostr(当年换[p],2)+dj4+' '),colorwhite,shift3,align2;
{37行}
>>>使用本站搜索工具可以找到更多“定点换手日周月年表公式 飞狐换手定点指标 源码”