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 jaybedreamin, Today, 05:56 PM
      0 responses
      3 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Working...
      X