软件名称:[B]优化区间成本公式[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2013-05-11 00:07:44
软件简介:
最高:=CONST(HHVBARS(HIGH,N))+1;
最低:=CONST(LLVBARS(L,N))+1;
起点:=IF(最高>最低,最高,最低);
终点:=IF(最高<最低,最高,最低);
CYC:=IF(C=INDEXC,(SUM(C,起点)-SUM(C,终点))/(起点-终点),(SUM(AMOUNT,起点)-SUM(AMOUNT,终点))/(SUM(VOL,起点)-SUM(VOL,终点))/100);
区间成本:CONST(CYC),NODRAW;
区间换手:(SUM(VOL,起点)-SUM(VOL,终点))/CAPITAL*100,NODRAW;
计算周期:起点-终点,NODRAW;
HH:=REFDATE(HHV(H,起点),DATE);
LL:=REFDATE(LLV(L,起点),DATE);
N1:=IF(PERIOD=7,1.05,IF(PERIOD=6,1.02,1.01));
N2:=IF(PERIOD=7,0.95,IF(PERIOD=6,0.98,0.99));
STICKLINE(CURRBARSCOUNT<=终点,区间成本*N1,区间成本*N2,5,0),COLOR808080;
STICKLINE(CURRBARSCOUNT<=终点,区间成本,区间成本,5,0),COLORWHITE;
STICKLINE(CURRBARSCOUNT=起点,HH,LL,0,-1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=终点,HH,LL,0,-1),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=起点,LL,'起点'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=终点,LL,'终点'),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
[url=http://www.70822.com/soft/sort013/sort05/down-57678.html]优化区间成本公式[/url]