From your "EFS2 Examples":
open(sym("QQQ,D"),-1) -the open value of QQQ on the previous day.
===
from my code:
line 1 - pdcXOM1 = close(sym("XOM,D"));
line 2 - pdcXOM2 = close(sym("XOM,D"), -1);
line 1 compiles and runs fine.
line 2 compiles but fails at run time
msg says parameter 1 (the second parameter) of "close" needs to be a bar index like 0 or -1.
[FYI, your example as written also fails a run time]
===
What am I missing?
(v7.9, build 708)
open(sym("QQQ,D"),-1) -the open value of QQQ on the previous day.
===
from my code:
line 1 - pdcXOM1 = close(sym("XOM,D"));
line 2 - pdcXOM2 = close(sym("XOM,D"), -1);
line 1 compiles and runs fine.
line 2 compiles but fails at run time
msg says parameter 1 (the second parameter) of "close" needs to be a bar index like 0 or -1.
[FYI, your example as written also fails a run time]
===
What am I missing?
(v7.9, build 708)
Comment