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.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by iotrhdlaskf, Today, 08:47 AM
    0 responses
    2 views
    0 likes
    Last Post iotrhdlaskf  
    Started by traderharley, Today, 08:46 AM
    0 responses
    1 view
    0 likes
    Last Post traderharley  
    Started by NinjaCustomer, Today, 08:22 AM
    0 responses
    5 views
    0 likes
    Last Post NinjaCustomer  
    Started by n8dogg59, Today, 07:58 AM
    2 responses
    9 views
    0 likes
    Last Post n8dogg59  
    Started by CoffeeOutlaw, Yesterday, 07:33 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X