• 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

Only one single instance of AddOn?

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

    Only one single instance of AddOn?

    Hi,

    I have created a custom AddOn and would like to forbid more than one instance of the thing. Is there a setting I can use or what is the best way to achieve that?

    Thank you,
    Stefan.

    #2
    Hello Stefan,

    This might require a static variable that holds that window object instance. This would only be set when null.

    https://msdn.microsoft.com/en-us/library/ff650316.aspx

    While static variables and classes are not supported by NinjaTrader support, they are possible to use.

    See an example I made.
    http://ninjatrader.com/support/forum...980#post442980
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      thank you for your sample code, I understand the method. Clean solution, great!

      Kind regards,
      Stefan.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by U0000999, Today, 11:23 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Jonathan.Lee, Today, 11:29 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by James Wallace, Today, 10:38 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by mtamaku, Today, 10:22 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by mtamaku, Today, 10:16 AM
      4 responses
      13 views
      0 likes
      Last Post mtamaku
      by mtamaku
       
      Working...
      X