Announcement

Collapse
No announcement yet.

rawtime conversion to correct offset

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

  • rawtime conversion to correct offset

    is there an easy way to get the rawtime of a bar and convert it to current bar offset, or at least month/day/hour/min of bar?

    I thought one could simple do basic math from the start of rawtime (in 1970) but that will not work because Advanced charts do not display **all** bars -- just bars that have data in them. You will get wrong offsets for sure.

    I know you can get a bar and gets it rawtime easilt, but can you easily do the reverse -- know a bar's rawtime and convert it to (correct) offset, etc.

  • #2
    Alex:

    If you look at the dsUtilities library I put together, you will see that there are a bunch of functions that deal with those types of issues. One is dsgetBarIndexAtRawtime().

    Library and User Guide can be found here:


    http://share.esignal.com/groupconten...es&groupid=114

    Chris

    Comment


    • #3
      Thank you. Your routines seems to be quite useful and handy. Nice work!

      Comment

      Working...
      X