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
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!
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
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 traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
46 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by arvidvanstaey, Today, 02:19 PM
|
1 response
6 views
0 likes
|
Last Post Today, 02:33 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM | ||
Started by f.saeidi, Today, 01:32 PM
|
2 responses
9 views
0 likes
|
Last Post
by f.saeidi
Today, 02:10 PM
|
Comment