Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:重复定义的问题

1楼
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把这句话写在一起, 而不是分两句?

2楼
十世 发表于:2015/7/29 14:35:17

if holding=1   then begin
 if enterbars>=13 then 
  A:=enterprice+2,colorwhite;
 else
  A:=B,colorwhite;
end

aa:a;

[此贴子已经被作者于2015/7/29 14:44:10编辑过]
3楼
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编辑过]
4楼
kimberli 发表于:2015/7/29 14:49:12
谢谢同志们!
共4 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 2 queries.