Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
TradeStation
Collapse
X
-
ChrisL ask me on Friday to send an email to him with my setup for email orders so he could help with my email set up and I still have not heard back from him, Why does the email setup not work? I was assured it did. now today your changing it up I don't care I just need this to work and work well, email a dll or text file I just need it to get it to work, and the sooner the better. I've been messing with this now for two weeks and it should not be that complicated.
-
bltdavid has pointed you in the right direction. You can set up a set of functions to send the OIF files, much like NT delivered with NT 7 for the NTDIrectt DLL access. I set up a few for my testing needs that I have used from another EasyLanguage platform. They would look something like this:Originally posted by RMin101 View PostTrader guy - I have no clue what you're talking about can you please explain what is OIF file? Tradestation has apps to execute orders through the trader station that places orders in Ninjatrader but it does not work and it crases TradeStation and it's not what I am looking for. I want to be able to place strategy orders from TradeStation directly to NinjaTrader.
Thank You
Ray
Or, if you want to code them each time, something like this:Code:*** Example Function *** //Submit an market entry order. Returns OrderId Inputs: iPath(StringSimple), iFileName(StringSimple), iAccount(StringSimple), iSymbol(StringSimple), iQuantity(StringSimple); Variables: vOrderID(""), vCommand(""), vPathName(""); vOrderID = emsBuildOrderId(iSymbol); vCommand = "PLACE;"+iAccount+";"+iSymbol+";BUY;"+iQuantity+";MARKET;0;0;DAY;;"+vOrderID+";;"; vPathName = text(iPath,iFileName); Print(File(vPathName),vCommand); FileClose(vPathName); emsBuyMar****IF = vOrderID;
These are examples only. You will need to code up what you need and test them in a SIM account. I don't know what the email interface produces; I've not used it.Code:*** Example PLace Market Order *** "PLACE;SIM101;QQQ;BUY;10;MARKET;0;0;DAY;;;;" The text would need to be written to the correct NT folder to be picked up and executed.
- Likes 1
Comment
-
Don't know anything about the email interface, never used it.Originally posted by RMin101 View PostGot it that screenshot helped so is this how the email sending offer works by creating a text file for the order? Can you give me what the TradeStation code would look like to send the order? I'm asking because it looks like these commands are used for closing orders not opening or modifying them.
SellShort ( "Sell" ) NumberOfContracts Contracts this bar on close;
SetStopLoss(StopLoss*NumberOfContracts);
Where do you see 'SellShort' and 'SetStopLoss'?
I don't see those functions listed for the DLL interface.
For the DLL interface, look for the 'Command' method.
'Command' looks like an interface to the OIF, but I suspect
OIF and 'Command' are interfaces into the same underlying
ATI engine.
Use 'Command' to open orders, close, and modify them.
For ex, use 'PLACE' to submit orders.
It seems pretty clear in the docs ...
Comment
-
What you said is not correct. The dll works fine with release 8.0.26.0, and the help guide provides directions on how to use it. If it's not supported, then why is it in the user guide?Originally posted by NinjaTrader_ChrisL View PostHi, the NTDirect.dll is not longer supported in NinjaTrader 8. The TradeStation DLL interface can only be used in NinjaTrader 7.
- Likes 1
Comment
-
The docs say,Originally posted by RMin101 View PostHi should I have a new text file for each open and close?
"You may stack the instruction lines so that each file
contains as many instruction lines as you desire."
So, uh, I can't imagine you would open and close the same trade by
stacking the two commands into the same file, so, sure, yeah, you
need two files -- but, that's your call.
I would definitely recommend numbering each OIF file sequentially,
per the example mentioned in the help guide.
Just my 2˘.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment