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把这句话写在一起, 而不是分两句?
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编辑过]
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编辑过]