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

NinjaTrader.Custom and NinjaTrader.Vendor Conflict in Custom dll

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

    NinjaTrader.Custom and NinjaTrader.Vendor Conflict in Custom dll

    Hello,

    I have a separate project where I have created a custom dll with common functions.

    I can reference price data via NinjaScriptBase, but I'm having issues with indicator data.

    In this project, I'm looking to reference both the OrderFlowVWAP and other indicators such as EMA.

    It appears I need to reference the NinjaTrader.Vendor dll for OrderFlowVWAP and the NinjaTrader.Custom for the other indicators - EMA, SMA, etc.

    When both the NinjaTrader.Vendor and NinjaTrader.Custom dlls are referenced, in Visual Studio I receive errors that prevent me from compiling and creating my custom dll such as:

    The type 'EMA' exists in both 'NinjaTrader.Custom, Version=8.0.27.0, Culture=neutral, PublicKeyToken=null' and 'NinjaTrader.Vendor, Version=8.0.26.1, Culture=neutral, PublicKeyToken=null'

    Can you please help me get past this issue?

    Also, if someone could point me to an example of properly referencing indicator data from a custom dll, that would be greatly appreciated.

    Thank you!
    Last edited by neo302; 11-05-2022, 10:44 AM.

    #2
    Hello neo302,

    Thanks for your post,

    We are currently investigating this item and will get back to you about with more information as soon as we have researched this topic.

    Thanks for your patience. I look forward to assisting further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hello neo302,

      Thanks for your patience.

      The NinjaTrader application needs to load up the NinjaTrader.Custom.dll to work. You would need to integrate your code into the existing code base. The Visual Studio Addon solution on the page linked below demonstrates that the NinjaTrader.Core.dll is referenced which you should be able to access IndicatorBase from.

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

      You would need to modify your script to reference the NinjaTrader.Core.dll and NinjaTrader.Gui.dll.

      Please let me know if I may assist further.
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by nandhumca, Yesterday, 03:41 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by The_Sec, Yesterday, 03:37 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by vecnopus, Today, 06:15 AM
      0 responses
      1 view
      0 likes
      Last Post vecnopus  
      Started by Aviram Y, Today, 05:29 AM
      0 responses
      5 views
      0 likes
      Last Post Aviram Y  
      Started by quantismo, 04-17-2024, 05:13 PM
      3 responses
      27 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X