以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  提示不能再逐k下运行if 语句里的hhv  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=146229)

--  作者:qjj30801044
--  发布时间:2017/1/9 14:21:23
--  提示不能再逐k下运行if 语句里的hhv
if countband=0 then 
begin
UpBand:=HHV(high,20)
DownBand:=LLV(low,20);
end;

--  作者:jinzhe
--  发布时间:2017/1/9 14:31:34
--  
hh:=hhv(h,20);
ll:=llv(l,20);
if countband=0 then 
begin
UpBand:=hh;
DownBand:=ll;
end;

--  作者:qjj30801044
--  发布时间:2017/1/9 14:36:53
--  
这样影响速度每次都要运算一遍
--  作者:jinzhe
--  发布时间:2017/1/9 14:42:12
--  

首先这样的计算不算复杂不太影响速度

其次没有其他解决的办法