Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error on calling "OnBarUpdate"

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

    error on calling "OnBarUpdate"

    I cant find where is the problem in my code.
    I can´t solve the error:
    Error on calling "OnBarUpdate" method on bar 200: Object reference not set to an instance of an object.
    Attached Files

    #2
    You never set f3 equal to anything, so you can't index into it. You did set f2 twice though - perhaps there be dragons.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello, infinite thanks!!!!
      error found and obvious, I didn´t see that reviewing the code. Now I see f2 set twice and then f3 equal to nothing.
      My headache disapeared suddenly...
      Infinite thanks again!!!
      Jaime from Barcelona.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      172 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      88 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
      185 views
      0 likes
      Last Post CarlTrading  
      Working...
      X