Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

when does initialize get called

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

    when does initialize get called

    i coded an indicator where the initialize method creates some db objects. when i added the indicator, it worked,
    later i made some chagnse to the indicator and removed and added it again to market analyser, i started getting errors.
    does the initialze get called again when i remove and add the same indicator.

    #2
    Yes and it might even get called multiple times, if you add it fresh it's called once you select your custom indicator from the indicators enum to add to the column.

    I would suggest you move your DB object creation logic to the first OnBarUpdate() call and retry.
    Last edited by NinjaTrader_Bertrand; 01-27-2010, 07:17 AM.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cre8able, 02-11-2023, 05:43 PM
    3 responses
    235 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    113 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    45 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by traderqz, Today, 09:44 AM
    2 responses
    10 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X