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)
ok, that is a step in the right direction....but I need to submit an ATM
can this method also Close Positions and Cancel Pending Orders?
I started another thread for the NinjaTrader.Client and NTDirect interface. I believe those use the NT documented interface data structure, which allows ATM submittal.
It is delivered as a DLL wrapped in an indicator, which can be imported into NT.
It works very well, but I need my own code so I can integrate the function into my other software. This requires customization that would be beyond the scope of the vender.
It is an external program called' AutoHotKeys' as mentioned in the threads I linked.
I can 100% vouch that it knows what price the cross hairs are at and I then press one key (that I assigned) to place various types of orders at that price. There is no reason why you cannot substitute my press of a key with the press of a mouse button.
As I said AutoHotKey can do anything you can do with typing on a keyboard or mouse controls.
It is an external program so you can write scripts for it to do any function on your computer that you can do with a keyboard and mouse.
I already have an external keyboard macro manager.
But I am going to integrate this click trader with my other indicators. I have developed a system of interdependent indicators that talk to each other via an indexed global array structure.
So, the click trade needs to know the state of a specific indexed item in this array structure inside of compiled C#, in an indicator that is not even on the chart. The array structure is hosted in an indicator executing in a Market Analyzer.
From this variable the click trade will make decisions.
I don't know how an external macro utility would be able to do that.
If you know how, please advise me.
Also, I want to avoid the right mouse click popup that happens when one clicks on the chart.....it distracts me even if it only flashes.
I have received preliminary replies on the new thread.
The interface for C# trade management is in NinjaTrader.Core.dll, but it is undocumented and unsupported (by NT)
NinjaTrader.Client.dll and NTDirect.dll evidently only work from external applications, as far as I can tell there is no way to link them into the Ninja architecture because there are reference conflicts. (?)
Once I am able to find the correct NinjaTrader.Core command syntax I will be able to complete the indicator
If you're able to get the price, the easier is to send the information to a "sleeping" strategy which will take care of it.
You can use a named pipe (this is what I've done myself), but the easier is to use a kind of global variable (see
I have been looking for a way to share data between indicators and charts, i.e. replicating the Global Variable dll on TradeStation. The reason for this is that I would like to avoid having to recalculate stuff and spend CPU when I already have the …
I'm using global variables to pass order/cancel information from an indicator to a strategy in the Strategy Tab of Control Center. It is working really good for my automated trading.
But for this I want to use a different method because it is for manual trading and I don't always have the strategies enabled.
I did find the iObject documentation of data structure and methods for submitting, managing positions, and canceling orders. It is what Ninja calls "unmanaged". (I had not been aware of these methods, though I'm sure many more advanced coders are.)
Unfortunately with these methods I see no way to submit an ATM order.
Could you give me more information on pipes, if you have time?
OIF files will work fine, I think, but I don't really like them. I am thinking of having an external DLL which simply passes a command string to NinjaTrader.Core or NTDirect....not sure if that would work.
If I don't make any progress soon I will use OIF files, though there does seem to be a slight delay to their execution. Then later try the external dll approach.
(That is, unless there is a way to use iObject methods for ATM)