Announcement

Collapse
No announcement yet.

Previous Days Close w/EFS2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Previous Days Close w/EFS2

    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)

  • #2
    pflash50
    It should be close(-1,sym("XOM,D"));
    Some of the the examples shown in the pdf file were written very early on and are incorrect. You may want to refer to the Help files compiled by Chris Kryza which should be in the Docs folder of eSignal
    Alex

    Comment


    • #3
      Thank you.

      Comment

      Working...
      X