PIVOT lines drawn into the future (v11 only)

Forums ProRealTime English forum ProBuilder support PIVOT lines drawn into the future (v11 only)

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

    Recently PRT introduced, along with version 11, new options to use graphic drawing tools to plot into future bars, a long awaited feature.

    The easiest way is to simply add an offset to BarIndex, such as BarIndex + 5.

    There are time, though, when you don’t know the correct value of that BarIndex number. Here comes in handy the new keyword DateToBarIndex(MyDate), to be used with graphic drawing instructions. PRT’s engine will calculate the correct BarIndex number to be used. It’s very useful if you need to draw segments from, say, the beginning of the day through the end of the day. Some instruments trade 24 hours, other less. You don’t have to care about this, the new keyword will!

    More at https://www.prorealcode.com/documentation/datetobarindex/.

    This is an example on how to use it. It plots Pivot lines at the beginning of each day, through the end of the day:

     

    1 user thanked author for this post.
    #123934

    Example to pack single data into a YYYYMMDDHHMMSS date:

     

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