Announcement

Collapse
No announcement yet.

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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    123 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    104 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    82 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    102 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    83 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X