以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 金字塔软件问题提交 (http://www.weistock.com/bbs/list.asp?boardid=2) ---- 重复定义的问题 (http://www.weistock.com/bbs/dispbbs.asp?boardid=2&id=81808) |
-- 作者:kimberli -- 发布时间:2015/7/29 14:11:51 -- 重复定义的问题 if holding=1 and enterbars>=13 then A:=enterprice+2; if holding=1 and enterbars<13 then A:=B; 问题1: 这样写, 当去掉= 时, 会出现重复定义变量A, 如何解决? 问题2:想用 A, 画一条线, 如何写?以便直观监控 if holding=1 and enterbars>=13 then A:enterprice+2,colorwhite; if holding=1 and enterbars<13 then A:B,colorwhite; 如果无法画出,有什么办法可以在图标界面看到A 的值呢? 问题3:如何用if then else把这句话写在一起, 而不是分两句? |
-- 作者:十世 -- 发布时间:2015/7/29 14:35:17 -- if holding=1 then begin aa:a; [此贴子已经被作者于2015/7/29 14:44:10编辑过]
|
-- 作者:jinzhe -- 发布时间:2015/7/29 14:40:01 -- if holding=1 and enterbars>=13 then A:=enterprice+2;
if holding=1 and enterbars<13 then A:=B;
aa:a;
aa就是所求的不同赋值
[此贴子已经被作者于2015/7/29 14:40:23编辑过]
|
-- 作者:kimberli -- 发布时间:2015/7/29 14:49:12 -- 谢谢同志们! |