Announcement

Collapse
No announcement yet.

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.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    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.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      41 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      28 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      45 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      37 views
      0 likes
      Last Post CarlTrading  
      Working...
      X