Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to solve different assemblies after recompile

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

    How to solve different assemblies after recompile

    I have an indicator (MyIndicator), which has an internal class (MyClass).
    My problem is that after a recompile, the assembly changes so this simple check is going to be false:

    if (myObject is MyClass)....

    Why?
    Because after recompile, the assembly changes, so AssemblyQualifiedName is different.

    NinjaTrader.Indicator.MyIndicator+MyClass, 95b2eab7f5ce4ef4a45668b8c386bfdd, Version=7.0.1000.31, Culture=neutral, PublicKeyToken=null

    NinjaTrader.Indicator.MyIndicator+MyClass, 20377f1f822648c8ab1daa5abb59e22b, Version=7.0.1000.31, Culture=neutral, PublicKeyToken=null


    maybe someone can point me to the right direction...

    #2
    Did you Modify your code? The change could be to identify the latest compilation from the previous code

    Comment


      #3
      Hello matthewbartlett,

      Welcome to the forums!

      We suggest using a dynamic type when working with objects that may exist in separate assemblies. This may be applicable for what you need. Please see the NinjaTrader 8 document below for more information.

      https://ninjatrader.com/support/help...assemblies.htm

      If this does not help, could you attach a small example script that sets this up so we could have a look on our end?

      Also, NinjaTrader 7 is on version 40. We suggest updating to the latest version. An instrument reset from the Control Center's Tools > Options > Data window will be necessary to bring in important instrument definition updates after installing.

      Update - https://ninjatrader.com/PlatformDirect

      I look forward to being of further assistance.
      JimNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by llanqui, Today, 03:53 AM
      0 responses
      2 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Working...
      X