以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  很简单的两句程序怎么调不通?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=80042)

--  作者:tittat
--  发布时间:2015/6/23 16:18:41
--  很简单的两句程序怎么调不通?
t1:=0;
if ref(h,1)>ref(h,2) and ref(l,1)>ref(l,2) then t1=10;
if (ref(h,1)<ref(h,2) and ref(l,1)<ref(l,2)) then t1=-10;
tt1:t1;

结果tt1总是显示为0,实际应该有10,-10,0三种数字的

--  作者:jinzhe
--  发布时间:2015/6/23 16:20:03
--  

then t1:=10;

then t1:=-10;

赋值是冒号等号


--  作者:tittat
--  发布时间:2015/6/23 16:28:25
--  
图片点击可在新窗口打开查看