- 金币:
-
- 奖励:
-
- 热心:
-
- 注册时间:
- 2003-10-9
|
|

楼主 |
发表于 2005-10-2 12:59
|
显示全部楼层
bollvol新版,解决了,上午一小时停牌导致交易量为0,上下边突然放大的问题。
mid:sum(amount,20)/sum(vol,20)/100;
thestd1:=amount/vol/100;
{很简单,若没有的数据的话用上个周期的,这样保证口子不变就行了}
thestd:=if(thestd1>0,thestd1,if(ref(thestd1,1)>0,ref(thestd1,1),if(ref(thestd1,2)>0,ref(thestd1,2),if(ref(thestd1,3)>0,ref(thestd1,3),ref(thestd1,4)))));
upper:MID+2*std(thestd,20);
lower:mid-2*std(thestd,20);
upper:MID+2*std(thestd,20);
lower:mid-2*std(thestd,20);
[ Last edited by lilxl on 2005-10-2 at 15:06 ] |
|
|