Announcement

Collapse
No announcement yet.

Find Corresponding BarIndex

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

  • Find Corresponding BarIndex

    Hello All,

    If I am running an EFS in a 3 minute Chart, say at BarIndex of -70, how can I find the corresponding bar index of an external time frame, say 5 minute?

    Specifically, say I am calling an efsExternal from a 3 minute chart, and the external time frame in which the efsExternal will be running is 5 minute, and I pass the current bar index (during backtesting) of the 3 minute chart as a parameter to the efsExternal, how can I utilize that information within the external efs to find what corresponding bar in 5 minute time frame?

    Thank you,

    ziggy

  • #2
    my suggestion.

    instead of passing barindex, pass "rawtime" from the 3 minute chart, then use a comparison (> or < or =) on the 5 minute chart. You should be able to find the same bar pretty easily.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      rawtime()! ... of course, u da genius, Brad!
      Thanks,
      ziggy

      Comment

      Working...
      X