Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How to use NTDirect.dll or NinjaTrader.Client in NinjaScript?
It appears that Ninja intended NTDirect.dll and NinjaTrader.Client to be only external interfaces to the NT Trade Engine, and not designed to be used inside NinjaScript.
I have looked through the forums for concrete examples of how to integrate these into my indicator, but it seems that the search is not returning anything on Ninja Forum or futures.io (formerly BMT).
Can anyone point me to indicator code that is able to integrate either of these into a NT indicator?
Thank you.
Can you help answer these questions from other members on NexusFi?
If you are inside NinjaTrader you don't need to use NTDirect.dll and NinjaTrader.Client. You can use undocumented functionality from NinjaTrader.Core to place/change/cancel orders (also ATM)
I found the iObject methods in the standard Ninja documentation, was not aware of them before.
Is this what what you refer to decs0057 about NinjaTrader.Core methods?
But, I do not see a way to submit an ATM though these methods...any ideas?
Worst case I can use OIF files, but I imagine they are a bit slower than calling a dll.
Another option might be for Ninja code to call another new dll whose only function was to pass the command string to NinjaTrader.Client or NTDirect.dll, which appear to have the same capability as the OIF files.
I also found no method to directly place ATM order with NT core method.
Other idea you have to send click event to context menu item "Buy/Sell Limit" of ChartControl
To cancel pending order search for order in Account and cancel it
To close Active Positions send click event to "Close" button of chart trader