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

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 benmarkal, Yesterday, 12:52 PM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    18 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X