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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X