Is this correct?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Sim Account Case NtDirect.dll
Collapse
X
-
Hello Atomic,
Thank you for your post.
You'd want to use "Sim101" not SIM101. I've tested and the following would submit a limit order at the specified price on the Sim101 account:
Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "LIMIT", 4512.00, 4513.00, "DAY", "", "MyOrder", "", "");
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_Kate View PostHello Atomic,
Thank you for your post.
You'd want to use "Sim101" not SIM101. I've tested and the following would submit a limit order at the specified price on the Sim101 account:
Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "LIMIT", 4512.00, 4513.00, "DAY", "", "MyOrder", "", "");
Please let us know if we may be of further assistance to you.
First I submitted TestOrder7873 using account name SIM101, and the order was immediately processed.
Then I submitted TestOrder4506 using account name Sim101 and there was never an execution. Everything else is the same except the account name. The actual account name in the NT Platform is Sim101 (lower case).
Last edited by Atomic; 03-25-2022, 10:17 AM.
Comment
-
Hello Atomic,
Thank you for your reply.
Looks like you are using OIF files, not the DLL interface to place orders. Is that correct? My answer above is for the DLL interface.
Here's an example of an OIF command for a market order, for that you would use SIM101:
PLACE;SIM101;ES 03-22;BUY;1;MARKET;0;0;DAY;;;;
Please let us know if we may be of further assistance to you.
Kate W.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Atomic,
Thank you for your reply.
Looks like you are using OIF files, not the DLL interface to place orders. Is that correct? My answer above is for the DLL interface.
Here's an example of an OIF command for a market order, for that you would use SIM101:
PLACE;SIM101;ES 03-22;BUY;1;MARKET;0;0;DAY;;;;
Please let us know if we may be of further assistance to you.
Comment
-
Hello Atomic,
Thank you for your reply.
I've put this line in the Ninja7Api example here so it submits it from one of the button presses, and I'm seeing this work with NinjaTrader 7:
Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "MARKET", 0, 0, "DAY", "", "MyOrder", "", "");
When capitalized, it looks like it tries to place the order but never actually submits.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Atomic,
Thank you for your reply.
I've put this line in the Ninja7Api example here so it submits it from one of the button presses, and I'm seeing this work with NinjaTrader 7:
Command("PLACE", "Sim101", "ES 06-22", "BUY", 1, "MARKET", 0, 0, "DAY", "", "MyOrder", "", "");
When capitalized, it looks like it tries to place the order but never actually submits.
Please let us know if we may be of further assistance to you.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Jonker, Today, 01:19 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jonker
Today, 01:19 PM
|
||
Started by futtrader, Today, 01:16 PM
|
0 responses
5 views
0 likes
|
Last Post
by futtrader
Today, 01:16 PM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
14 responses
1,789 views
0 likes
|
Last Post
by aligator
Today, 11:47 AM
|
||
Started by Jimmyk, 01-26-2018, 05:19 AM
|
6 responses
838 views
0 likes
|
Last Post
by emuns
Today, 11:27 AM
|
||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,294 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
Comment