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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    27 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X