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)
I have a basic set of "rules" that I like to trade but there is an element of discretion.
For instance if the potential profit is not enough I might pass on the trade altogether.
Secondly I can assess the trade with 2 or at most 3 mouse clicks - what I would like to do ( a la PositionSizer) is then be able to take those values and just pop in a buy/sell order with a target and a stop all on oco.
I can do it at the moment via a second set of charts ( strategies only) but that seems a bit lame - if NT provided a full and proper reference documentation it might be a whole lot easier!
The point of this thread is that up until I had seen position sizer - I didn't think it was possible AT ALL to get an order off from within an indicator. I have come from Tradestation ( 5 years ) and I must say "discovering" what NT can do and how to do it is very uneasy in comparison. I guess that is why this forum partly exists?
Plus I am wholly new to C# so sometimes it is all a little mysterious to me
toulouse - sorry what is an oif file - I have not heard of that.
here you go, straight from the horses mouth ..... errr just copied from the help pages ...
File Interface The file interface uses standard text files as input. These files are called order instruction files (OIF) and have specific format requirements. NinjaTrader processes the OIF the instant the file is written to the hard drive and subsequently deletes the file once the processing operation is complete.
there´s much more detail on the help pages about the syntax.
If you know how to open and write to a file from within an indicator you can create orders.
Right ... so looking a little deeper into this I see that Tradestation users a dll called ntdirect.dll.
But you can only use this from an external application - not from within NT?
I tried the following for instance and get a using reference error
it wants using System.NinjaTrader.Client but that doesn't work.