Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referencing NinjaTrader from Visual Studio

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

    Referencing NinjaTrader from Visual Studio

    Hello, I'm completely new to NinjaTrader, and i want to program a strategy in C# - not NinjaScript (i know it's basically c# using different namespaces and code editor, but anyways) - i want to develop it in Visual Studio as a .dll, which will (somehow) control the NinjaTrader - so i wanted to see which file specifically i need to reference from VS to get access to the NT api - the documentation said there's a example strategy in bin/AutoTrade, but in my installation, there isn't any...

    So, which file do i need to reference in VS? And is there a way to code the strategy so I don't have to write another code in NinjaScript to call its functions?

    #2
    sh code, welcome to the forums!

    It is not possible to write a strategy without using any NinjaScript at all. You can write a .dll that is referenced in your strategy to generate trade signals and such, but you will still need to do some NinjaScript code to place trades (EnterLong(), EnterShort(), etc), at the very minimum.

    If you are familiar with C#, NinjaScript is basically just an extension of the C# language, with some trading features built in.

    If you are looking to send trades via the API, the file is called NtDirect.dll, but its features and functions are limited - http://www.ninjatrader.com/support/h...terface_at.htm
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X