Conversion of “Bar Count by GYH9” from the TradingView software

Forums ProRealTime English forum ProBuilder support Conversion of “Bar Count by GYH9” from the TradingView software

Viewing 4 posts - 16 through 19 (of 19 total)
  • #210096

    Thank you for your reply @JS

    I have added your code and tested it.
    Unfortunately, it is still not counting correctly.
    I can best describe it with the screenshot I have attached.

    #210098
    JS

    Hi GadeTrading,

    The indicator works well for me…

    I don’t see anything special on your screenshot either…

    #210099

    @JS
    I apologize for my poor explanation.
    It is because the first bar of every day needs to be bar 1 and then count from there.
    I should have mentioned: In the screenshot, the days are seperated by the alternating color (grey/white). I have added some text in the screenshot to describe the problem.

    #210104

    @JS
    Thank you for your code snippet. I found out changing count = 0 to count = 1 makes the first bar of the day bar 1 every day.
    I appreciate it, as I am not good at coding.

    It works like a charm now, even when are there are less bars in some days.

    1 user thanked author for this post.
    avatar JS
Viewing 4 posts - 16 through 19 (of 19 total)

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