Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Change order
Collapse
X
-
Does this also apply to 1min bars for example? I thought this only applies to daily bars when TIF is set to GTD.Originally posted by NinjaTrader_Ben View PostA working order is cancelled automatically on the completion of a bar. You must resubmit the order each new bar to maintain its working status.
GTC orders should never be cancelled, right?
So if I use, let's say, EnterLong() twice, each time without specifying a signal name, then the second call will change the first order instead of placing a second one? And if I do want two orders then I'd need to specify two different signal names?Originally posted by NinjaTrader_Ben View PostBut yes, you can change an order by calling the order method again with the same signal name.
Do I understand correctly: If I have, for example, a stop loss and a take profit sell order then I need to give each one a different signal name, otherwise placing the take profit order would change the stop loss order (and thus effectively cancel it) instead of having two orders in the system?
Comment
-
Hello,
In NinjaScript it is a little different. Gtc will only keep your open positions good. The working orders will need to be resubmitted.
If you use EnterLong() twice it will enter another order whether you use a signal name or note. The singal name feature only matters for limit, stop, and stop-limit orders as well as SetStopLoss() and SetProfitTarget().
If you submit a profit target or stop loss with a signal name it will be applied to the order that has that same signal name. Set() methods are attached to each unique entry order if no signal name is given. If signal names are given then they will only be attached to order of that name.DenNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
550 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment