Bar Counter Display Current Day Only

Forums ProRealTime English forum ProBuilder support Bar Counter Display Current Day Only

Viewing 11 posts - 1 through 11 (of 11 total)
  • #220372

    Hello,

    Kindly asking for some help to tweak an indicator:
    Can someone make this bar counter display only on the current day? So it doesn’t display on any prior day than today.

    Thank you,
    Andreas

     

     

    #220377

    top of code

    #220380

    Appreciate the reply, but this only shows it for the last bar. I want it to show on the entire current day on any time frame. So the 5 min chart may currently have say 32 bars or 79 bars on the current day, and I want it to show only on these bars.

    #220381

    remove xeven

    #220382

    No, this is not what I am trying to change. I still only want it to display odd numbers. I simply want it to display what’s its already doing but only on the current day, whatever length the current day may already have.

    #220388

    Hello,

     

     

    1 user thanked author for this post.
    #220396

    @JC_Bywan
    Thank you sir. This only displays on the current day like requested.
    But this code counts the first bar as bar 0, is it possible to change this so the first bar of the day is bar 1?
    And I misspoke (sorry) in my last reply, I want it to display the even numbers only. Is this possible to fix?
    I want it to display like in the screenshot:

    #220402

    This version should change to first bar count = 1, and display even numbers.

    Also included, a choice to select the most appropriate IF line, depending if the need is to display even numbers AND 1 as in screenshot, or only even numbers as in text. The unwanted IF line needs to be commented out thanks to // at beginning of line.

     

     

    #220413

    @JC_Bywan
    This functions well! However, it seems to attempt to load on all the data in the chart which takes a lot of time for it to complete.
    So switching between symbols now makes my CPU fan turn on. The original version (the one in my original post) did not do this even though it displayed bar numbers on a lot of data.
    Is this possible to fix?

    #220418

    If pc struggles, using islastbarupdate makes it possible to achieve same result with added bonus of skipping all unneeded earlier calculations to give CPU fan some rest when switching often:

     

     

    1 user thanked author for this post.
    #220458

    Working great. You’re the best, thank you!

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

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