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

Reflection of indicators properties problem

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

    Reflection of indicators properties problem

    We have customers that have an old installation of our software. When we replace the DLLs via an external installer, and:
    1. delete related reflection cache files in the NinjaTrader/cache directory
    2. delete temporary DLLs in the custom/Tmp directory
    3. programmatically force a recompile on the next open
    4. manually recompile on the next open

    We still get NT trying to load properties of the older indicator, properties that use classes that no longer exist. Is there a cache somewhere we can wipe, that NT/windows system is keeping of the reflection property information for an indicator?

    Oddly enough performing a uninstall, reboot, reinstall consistently fixes the issue.
    ==== Exception Details ====

    System.TypeLoadException: Could not load type 'SharkIndicators.Indicators.Utils.IndicatorPriceUn it' from assembly 'SharkIndicators.Common, Version=1.103.4910.38006, Culture=neutral, PublicKeyToken=null'.
    at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
    at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
    at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
    at System.Reflection.RuntimeMethodInfo.get_Signature( )
    at System.Reflection.RuntimeMethodInfo.FetchNonReturn Parameters()
    at System.Reflection.RuntimeMethodInfo.GetParameters( )
    at NinjaTrader.Indicator.IndicatorBase.EnsureLifeTime Status(LifeTimeStatus status)
    at NinjaTrader.Indicator.IndicatorBase.Update(Int32 index)
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    There may be an indicator template which the user had set as default from the indicator parameters menu.

    If this is the case, this information is saved in Documents\NinjaTrader 7\templates\indicators

    You should find an xml file with the indicator name which contains these old parameters that are no longer part of your assembly. You may delete this file and that should remove from the system.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by lorem, Today, 09:18 AM
    1 response
    4 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by bmartz, Today, 09:30 AM
    0 responses
    1 view
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by GussJ, 03-04-2020, 03:11 PM
    14 responses
    3,244 views
    0 likes
    Last Post GussJ
    by GussJ
     
    Started by ArkansasClint, Today, 09:28 AM
    0 responses
    0 views
    0 likes
    Last Post ArkansasClint  
    Started by hazylizard, Today, 08:38 AM
    4 responses
    12 views
    0 likes
    Last Post hazylizard  
    Working...
    X