软件名称:[B]历史仓位[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2009-09-29 13:30:25
软件简介:
公式有引用公式: 千钧引用.ALG
公式源码:
源码:
zz:=(hhv(h,3)+llv(l,3))/2;a:=if(c>zz,vol,0);b:=if(c<zz,vol,0);bb:=a-b;
总0:bb;昨:ref(bb,1);
副图源码
input:W(9,1,12),N(2008,1990,2050), M(2009,1990,2050);
P:=SYSPARAM(1);GG:="千钧引用.总0#MONTH";SJ:=YEAR>n and YEAR<=m;
yf:=MONTH;KK:=YEAR=n and yf=12;Zjj:=(hhv(h,5)+llv(l,5))/2;Yjj:=(hhv(h,23)+llv(l,23))/2;Njj:=(hhv(h,244)+llv(l,244))/2;
Zjl:=SUM(v,5);Yjl:=GG;Njl:=SUM(GG,12);周成本:=(zjj*zjl*每手股数)/zjl/100;月成本:=(yjj*yjl*每手股数)/yjl/100;年成本:=(njj*njl*每手股数)/njl/100;
一月:=REF(GG,BARSLAST(SJ and yf=1));二月:=REF(GG,BARSLAST(SJ and yf>1 and yf=2));
三月:=REF(GG,BARSLAST(SJ and yf>2 and yf=3));四月:=REF(GG,BARSLAST(SJ and yf>3 and yf=4));
五月:=REF(GG,BARSLAST(SJ and yf>4 and yf=5));六月:=REF(GG,BARSLAST(SJ and yf>5 and yf=6));
七月:=REF(GG,BARSLAST(SJ and yf>6 and yf=7));八月:=REF(GG,BARSLAST(SJ and yf>7 and yf=8));
九月:=REF(GG,BARSLAST(SJ and yf>8 and yf=9));十月:=REF(GG,BARSLAST(SJ and yf>9 and yf=10));
十一:=REF(GG,BARSLAST(SJ and yf>10 and yf=11));十二:=REF(GG,BARSLAST(SJ and yf>11 and yf=12));
Z:=IF(yf=1,1,IF(yf=2,2,IF(yf=3,3,IF(yf=4,4,IF(yf=5,5,IF(yf=6,6,IF(yf=7,7,IF(yf=8,8,IF(yf=9,9,IF(yf=10,10,IF(yf=11,11,IF(yf=12,12,0))))))))))));
上周:="千钧引用.昨#WEEK";
本月:REF(gg,BARSLAST(MONTH=w)),PRECISION0,LINETHICK,ColorFFFFFF;
上月:REF(GG,BARSLAST(MONTH>(w-2) and MONTH<=w-1)),Color00FFFF,PRECISION0,LINETHICK;
年累计:=SUM(GG,z);上年:=ref("千钧引用.总0#YEAR",BARSLAST(YEAR=n));
DRAWGBK(年累计>上年,COLORRGB(200,50,0), COLORRGB(250,250,0),0);
DRAWGBK(年累计<上年,COLORRGB(0,100,10), COLORRGB(250,250,0),0);
月趋势:=COUNT(本月>上月,3);年趋势:=年累计>上年;
STICKLINE(BARPOS=SYSPARAM(2)+4 and 上年[P]>0,0,上年[P]/2,60,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+4 and 上年[P]<0,0,-(上年[P])/2,60,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+12 and 年累计[P]>0,0,年累计[P]/2,60,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+12 and 年累计[P]<0,0,-(年累计[P])/2,60,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+38 and 一月[P]>0,0,一月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+38 and 一月[P]<0,0,-(一月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+46 and 二月[P]>0,0,二月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+46 and 二月[P]<0,0,-(二月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+54 and 三月[P]>0,0,三月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+54 and 三月[P]<0,0,-(三月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+62 and 四月[P]>0,0,四月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+62 and 四月[P]<0,0,-(四月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+70 and 五月[P]>0,0,五月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+70 and 五月[P]<0,0,-(五月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+78 and 六月[P]>0,0,六月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+78 and 六月[P]<0,0,-(六月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+86 and 七月[P]>0,0,七月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+86 and 七月[P]<0,0,-(七月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+94 and 八月[P]>0,0,八月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+94 and 八月[P]<0,0,-(八月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+102 and 九月[P]>0,0,九月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+102 and 九月[P]<0,0,-(九月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+110 and 十月[P]>0,0,十月[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+110 and 十月[P]<0,0,-(十月[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+118 and 十一>0,0,十一[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+118 and 十一<0,0,-(十一[P]),50,0),COLORFF5500;
STICKLINE(BARPOS=SYSPARAM(2)+126 and 十二>0,0,十二[P],50,0),COLOR0000FF;
STICKLINE(BARPOS=SYSPARAM(2)+126 and 十二<0,0,-(十二[P]),50,0),COLORFF5500;
{显示}
DRAWTEXT(BARPOS=SYSPARAM(2),0,'上年'),PXUP18,ALIGN5,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+8,0,' 本年'),PXUP18,ALIGN5,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+34,0,' 1 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+42,0,' 2 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+50,0,' 3 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+58,0,' 4 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+66,0,' 5 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+74,0,' 6 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+82,0,' 7 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+90,0,' 8 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+98,0,' 9 月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+106,0,' 10月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+114,0,' 11月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXT(BARPOS=SYSPARAM(2)+122,0,' 12月'),ALIGN5,PXUP18,COLORFFFFFF;
DRAWTEXTEX(c,1,5,0,STKLABEL+' '+STKNAME+''),ColorFFFF00;
DRAWTEXTEX(C,1,800,300,'周成本:'+NUMTOSTR(周成本,2)+IF(CAPITAL=0,'点',' 元')),ColorAE088A;
DRAWTEXTEX(C,1,800,450,'月成本:'+NUMTOSTR(月成本,2)+IF(CAPITAL=0,'点',' 元')),ColorAE088A;
DRAWTEXTEX(C,1,800,600,'年成本:'+NUMTOSTR(年成本,2)+IF(CAPITAL=0,'点',' 元')),ColorAE088A;
DRAWTEXTEX(C and 月趋势>=2,1,0,450,'月仓位趋势:'+' ↑'),Color00EEFF;
DRAWTEXTEX(C and 月趋势>=1 and 月趋势<2,1,0,450,'月仓位趋势:==='),ColorFF00FF;
DRAWTEXTEX(C and 月趋势<1,1,0,450,'月仓位趋势:'+' ↓'),Color00FF00;
DRAWTEXTEX(C and 年趋势=1,1,0,600,'年仓位趋势:'+' ↑'),Color00EEFF;
DRAWTEXTEX(C and 年趋势<1,1,0,600,'年仓位趋势:'+' ↓'),Color00FF00;
//
[url=http://www.70822.com/soft/sort013/sort02/down-13048.html]历史仓位[/url]