• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 jleira, Today, 10:26 PM
    0 responses
    1 view
    0 likes
    Last Post jleira
    by jleira
     
    Started by wuileng, Today, 10:14 PM
    0 responses
    3 views
    0 likes
    Last Post wuileng
    by wuileng
     
    Started by mntemel, Today, 09:07 PM
    1 response
    10 views
    0 likes
    Last Post MojoJojo  
    Started by martyn73, Today, 08:22 PM
    0 responses
    9 views
    0 likes
    Last Post martyn73  
    Started by RobertoPaez, Today, 08:13 PM
    0 responses
    4 views
    0 likes
    Last Post RobertoPaez  
    Working...
    X