Omit sunday candle

Forums ProRealTime English forum ProOrder support Omit sunday candle

Viewing 4 posts - 1 through 4 (of 4 total)
  • #51066

    Is there a way to really omit the sunday candle so it doesn’t increase the barindex? I would want friday to be say bar index 1000 and then monday shall be 1001 and not 1002 because of the sunday candle.

    #51069

    Make your own barindex counting only if we are not on Sunday:

     

    1 user thanked author for this post.
    #51081

    This was a good idea Nicolas but will not work for addressing a special bar. If I for example need the close 25 of my bars (without sundays) back

    will give wrong results. One would also have to count how many sundays where omitted and then add this number when addressing a bar because PRT internally still counts the sundays. :-S

    Another question, do you have a good idea how to check if the underlying in question has a sunday bar? I’m working on an indicator that counts bars but it shall not count sundays. It works nice on assets that have no sunday bar but if there is a sunday bar it becomes wrong.

    #51084

    Just test if your security has a opendayofweek=0, if not, there is no Sunday.

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

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