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 timmbbo, Today, 08:59 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by KennyK, 05-29-2017, 02:02 AM
    2 responses
    1,280 views
    0 likes
    Last Post marcus2300  
    Started by fernandobr, Today, 09:11 AM
    0 responses
    2 views
    0 likes
    Last Post fernandobr  
    Started by itrader46, Today, 09:04 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by bmartz, 03-12-2024, 06:12 AM
    5 responses
    33 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X