Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is there any way to communicate with Ninjatrader application from another C# app?
Collapse
X
-
Does NinjaTrader do anything to disallow a script or assembly (developed by whatever means) from setting up its own remote communication?
Comment
-
I'm not clear on whether this means NinjaTrader actively does something "to disallow a script or assembly (developed by whatever means) from setting up its own remote communication", whether it means NinjaTrader does not support blocking a "a script or assembly (developed by whatever means) from setting up its own remote communication", or whether it simply means its technically possible, but not officially supported.Originally posted by NinjaTrader_Dierk View PostUnfortunately this is not supported.
If its the later that's not an issue as I'm more then willing to implement it myself. Its just a question of whether NinjaTrader has configured the CLR's Code Access Security to prevent scripts and assemblies, which implement indicators and strategies, from accessing sockets, files, pipes, shared memory, etc.
I asked a similar question regarding two assemblies loaded by NinjaTrader talking to each other through non-NinjaTrader APIs (i.e. names pipes, shared memory, etc.) on this thread and the response there was that NinjaTrader did not block this so it seems like that the later is meant, but I'd like to get clarification before I start working on an implementation that potentially isn't technically possible.Last edited by Josh Heitzman; 05-29-2008, 10:56 PM.
Comment
-
-
Do you mean that you're planning to develop a component that makes NinjaTrader's market data and other API features available to external applications? That would be really useful.Originally posted by Josh Heitzman View PostI I'd like to get clarification before I start working on an implementation that potentially isn't technically possible.
Comment
-
At present I'm still evaluating NinjaTrader, so I'd wouldn't say I'm planning it at this point. If I decide to go with NinjaTrader I will likely provide myself a means to implement indicators and strategies in external processes created using a combination of Python and C++ (standard, not C++/CLI) as I strongly prefer those languages. Based on the information I've gathered thus far, it appears there would still need to be a proxy assembly loaded into NinjaTrader for each indicator or strategy (even if your external app wasn't really an indicator or strategy, as I have not yet observed another way of plugging into NinjaTrader, but I've only been looking at the API for less the 24 hours at present).Originally posted by AgeKay View PostDo you mean that you're planning to develop a component that makes NinjaTrader's market data and other API features available to external applications? That would be really useful.
Comment
-
When you code your external application in C++/python, you can include the NinjaTrader.Client.Dll.
As your external application makes a decision to trade something, you call the NinjaTrader.Client.Dll's API to submit an order.
Very simple.
If your external application requires a data feed then that's another story.
Which brings up another question... why not code your strategy in NinjaScript? If you've already master C++ and python, then C# is easy enough.
Think about it... You would be coding your strategy that is 100% .NET Framework.
Comment
-
Its the additional language features of C++ and Python, which make them harder to master then C#, that also allow for higher productivity once mastered. While the .Net Framework may have more features then the standard libraries of either C++ or Python, both C++ and Python have a wealth of freely available libraries that provide for everything the .Net Framework provides in lighter weight and more extensible frameworks.Originally posted by mgbloomfield View PostWhich brings up another question... why not code your strategy in NinjaScript? If you've already master C++ and python, then C# is easy enough.
Think about it... You would be coding your strategy that is 100% .NET Framework.
Or to put it more succinctly...personal preference.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment