how to get an index of any YYYYMMDDHHMMSS with DateToBarindex similar instructio

Forums ProRealTime English forum ProOrder support how to get an index of any YYYYMMDDHHMMSS with DateToBarindex similar instructio

Viewing 2 posts - 1 through 2 (of 2 total)
  • #236992

    Hello,
    can the DateToBarindex instruction work in a code but not only with a graphical purpose?

    Let’s say, if I define:

          mySessionStartBarIndex=DateToBarindex(YYYYMMDDHHMMSS)

    with YYYYMMDDHHMMSS matching the date and hour of a market opening time, then would this return a corresponding index?

    As it seems not then what would be the solution to get a workeable index ?

    Thanks

    #236997

    Yes, it cannot assign values to variables, only the other way round is possible:

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login