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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      53 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      33 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      5 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      6 views
      0 likes
      Last Post cre8able  
      Working...
      X