以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  编译转换语言问题  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=145912)

--  作者:系统使用者
--  发布时间:2017/1/4 12:55:13
--  编译转换语言问题
fh:=h; fl:=l; up:=0*c; dn:=0*c; t1:=0*c; t2:=0*c;
IF NOT(ISLASTBAR) THEN EXIT;
for i=1 to datacount do begin
  
if i=1 and fh[i]>fh[i-1] 
  then
    
dn[i]:=fl[i]; 
    
up[i]:=fl[i];   

if i>1 then
    
up[i]:=up[i-1]; 
    
dn[i]:=dn[i-1];

序列模式转逐K模式;

VARIABLE: t1=0, t2=0, up:=0; dn:=0; 
if barpos =0 and h>hh then
  dn := l;  up := l;  

if barpos >1 then
  dn := dn[BARPOS-1];  
  up := up[BARPOS-1];    
有差异?,问题在哪?

--  作者:jinzhe
--  发布时间:2017/1/4 13:11:06
--  
代码不全,无法编译,看不到结果
[此贴子已经被作者于2017-1-4 13:11:12编辑过]