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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X