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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Referencing NinjaTrader from Visual Studio
Collapse
X
-
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? -
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.htmAustinNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment