Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

update old values of Plot

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

    update old values of Plot

    Good morning,

    In the OnBarUpdate() i do the following:

    for(int i=0;i<xVar.count;i++)
    Plot0.Set(xVar[i].barsAgo,xVar[i].price);

    It doesn't update when a new OnBarUpdate() is entered for new xVar.
    It only works when the indicator is loaded.

    Regards

    JF

    #2
    Actualy, when there is an update, the needle shows up but then disappears but then the values aren't connected to the old ones(it's just blank)

    Comment


      #3
      Hello,

      Thanks for the note.

      Have you added prints to this for loop and then check the value you are assigning for what is on the chart.

      Do they match or do not match? Does the print run?

      I look forward to assisting you further.
      BrettNinjaTrader Product Management

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X