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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      326 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      353 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      180 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X