Announcement

Collapse
No announcement yet.

inv historical data limitation

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

  • inv historical data limitation

    I have a simple EFS routine that looks at the first and last 30min bar of a day and plots the difference of the change in those two thirty-minute bars. I plot this as a LINE plot on a DAILY chart.

    I do this calculation using the statement:

    vMyVar = close(0,inv(30)) - close(-1,inv(30)) - ( close(-12, inv(30)) - close(-13, inv(30)) )

    When I plot my results on the DAILY chart, it appears that the inv() function is only getting data for the last 30 days. That is, my indicator works fine, as long as I don't want to look back further than 30 days.

    Is this a limitation of the inv() function? Or is there a way to tell the EFS to go back more?

    JOHN

  • #2
    John
    That will depend on the settings in the Time Template for that interval. Set up a User Defined 30 minute Interval in the Time Template and increase the #Days to whatever you may want (up to the current maximum of 120 Days)
    Alternatively add a setIntervalsBackfill() statement in preMain (it is set to false by default).
    Alex

    Comment


    • #3
      Thanks, Alex.

      setIntervalsBackfill did it.

      JOHN

      Comment

      Working...
      X