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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      173 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      91 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      129 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      208 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      186 views
      0 likes
      Last Post CarlTrading  
      Working...
      X