if time>091500 and time<150000 then
begin
if cross(h,r6) then
begin
buy(holding=0,tn,limitr,r6);
此句 : if cross(h,r6) then
CROSS 函数在逐K线模式下不能直接在IF控制语句之内引用。为什么 下面写法有可以?
if cross(h,r6) then
begin
buy(holding=0,tn,limitr,r6);
end
if cross(r7,l) then
begin
buyshort(holding=0,tn,limitr,r7);
你对“CROSS 函数在逐K线模式下不能直接在IF控制语句之内引用。”理解不对
if cross(a,b) then .......;
这个是可行的
if xxx then begin
if cross(a,b) then .......;
end
这个是不可行的
cross外面还嵌套了一个if是不行的
[此贴子已经被作者于2015/5/8 10:19:16编辑过]