BarIndex not an integer for Day[N]

Forums ProRealTime English forum ProBuilder support BarIndex not an integer for Day[N]

  • This topic has 2 replies, 2 voices, and was last updated 6 years ago by avatarAVT.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #41844
    AVT

    BarIndex should return an integer, I mean I could not imagine what else.

    Day[N] needs an integer for N. But if I use the value of BarIndex for D, I get a complaint that an integer value is needed.  Code:

    Any ideas what that is?

    Thanks a lot.

     

    #41865

    You need at least 1 bar elapsed to get an integer value with barindex[1]

    1 user thanked author for this post.
    avatar AVT
    #41924
    AVT

    Thanks for your answer Nicolas. I really don’t understand it, but I think at the moment you are too busy with other stuff to get this cleared. For the task behind that (get something which is special for today and compare that to previous days within an If-IntradayBarindex) I found a solution – hopefully, tests next week will show. So maybe somewhen later I might come back with that matter, if it’s ok for you.

    Thanks for all your great work and have a nice weekend.

Viewing 3 posts - 1 through 3 (of 3 total)

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