input: StartTime(2400); if getappinfo(airealtimecalc) = 1 then begin if time = StartTime and barstatus(1) = 2 then begin value1 = NTCommand("PLACE","Sim101","Sell",0,"limit",close + 1,0,"Day","","Sell"+numtostr(barnumber,0),"",""); value1 = NTCommand("PLACE","Sim101","Buy",10,"limit",close - 1,0,"Day","","Buy"+numtostr(barnumber,0),"",""); end; end;
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NtDirect Order Fail
Collapse
X
-
NtDirect Order Fail
In the situation where you have consecutive orders and the first one has zero or negative quantity, it seems to nullify the second order. See code below. This does not seem like it should be the appropriate action.
Code:Tags: None
-
Hello,
Thanks for the forum post.
NT by itself does not support order QTY of 0. This could cause issues down the line if NT was to ever come across this.
We do not allow this in our order interfaces, I recommend that you do not allow this in your DLL interface as well.
Thanks for taking the time to report.
-Brett
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Johndc, Today, 04:39 AM
|
0 responses
2 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
Comment