Announcement

Collapse
No announcement yet.

Prev Close inaccuracies

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

  • Prev Close inaccuracies

    After a lot of examination between the eSig10 pivot point results and those of Qcharts, Interactive Brokers and TradeStation, I finally noticed that the consistence variance in eSig was due to the exact determination of the Previous day's Close. Apparently, the Prev Close is not taken from the last tick of the last bar of the 16:14 minute in the e-mini contracts. If it was, the Prev Close formula indicator would reflect that exact tick Close each day. Attached in an image from today's discrepancy in the AB Z7 E-mini Russell, which reflects a more dramatic difference than usual. What EFS language should be used to do an exact look back to the previous day's closing tick, and how could this look-back be substitued for the Close in the PivotPoint formula ? thxs............Wm
    Attached Files

  • #2
    Hi,

    Your chart doesn't look like mine...what time template and what interval are you using?

    Regards,

    Garth
    Garth

    Comment


    • #3
      scheier
      Actually the value returned by Prev Close.efs is not inaccurate even if it does not match what you are expecting.
      If you look at that script you will see that it references the daily bar that in eSignal always includes the Settlement (which btw is the "true" Close of the day). As to the difference being larger than usual on October 31st that is due to the end of month settlement.
      If you want to retrieve the last traded price then set the Time Template to the desired Start/End times and in your script create a condition that looks for a change in date using the day() function eg
      if(getBarState()==BARSTATE_NEWBAR&&day(0)!=day(-1))
      When this condition evaluates to true [which will happen once only on the first tick of a new day] siimply assign the Close of the prior bar to a global variable eg
      myPrevClose = close(-1);
      The variable myPrevClose will be the last traded price of the prior day
      If you search the forums you will find several other examples and methods to accomplish this task as this topic has already been discussed at length
      Alex


      Originally posted by scheier
      After a lot of examination between the eSig10 pivot point results and those of Qcharts, Interactive Brokers and TradeStation, I finally noticed that the consistence variance in eSig was due to the exact determination of the Previous day's Close. Apparently, the Prev Close is not taken from the last tick of the last bar of the 16:14 minute in the e-mini contracts. If it was, the Prev Close formula indicator would reflect that exact tick Close each day. Attached in an image from today's discrepancy in the AB Z7 E-mini Russell, which reflects a more dramatic difference than usual. What EFS language should be used to do an exact look back to the previous day's closing tick, and how could this look-back be substitued for the Close in the PivotPoint formula ? thxs............Wm

      Comment

      Working...
      X