Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Text not Updating

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom Text not Updating

    Hello community,

    I am using the code
    Code:
    Draw.TextFixed(this, "tag", int, TextPosition.TopLeft);
    in order to display one of my calculations, however when I run it over live data it doesn't update with the creation of new bars.

    It updated in sync with whatever I had Calculate set to (in this case Calculate.OnPriceChange) on my last installation of NT, just like I wanted it to, but now it displays some initial value then doesn't update at all.

    I tried it with an without added granularity (in the form of an added tick series)

    It's placed in OnBarUpdate

    The calculation is not the problem, it is correct

    Any ideas as to what is going on?

    Same principle as if I were trying to display the system time on the actual rendered chart and it wasn't updating at all. Thanks!

    #2
    Hello, thanks for your post.

    This test works fine for me running the indicator OnBarClose (prints the current bar):

    Code:
    protected override void OnBarUpdate()
    {
        Draw.TextFixed(this, "mytext", CurrentBar.ToString(), TextPosition.BottomRight);
    }
    Could you share further details of your code?

    I look forward to hearing from you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    331 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    550 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X