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 ErikY, Today, 02:14 PM
    0 responses
    4 views
    0 likes
    Last Post ErikY
    by ErikY
     
    Started by redart1021, Today, 01:14 PM
    2 responses
    10 views
    0 likes
    Last Post redart1021  
    Started by auto112112, Today, 12:36 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by UltraNIX, Today, 11:03 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Lopat, Today, 10:56 AM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X