Q2) I'm considering using System.Threading to launch a thread that wakes up after N seconds, and if the IOrder.State != Filled, then it sends a Cancel order, and then a market order. Are these order calls multi-threads safe?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
convert limit order to market after N seconds
Collapse
X
-
convert limit order to market after N seconds
Q1) Any suggestions on how to implement a strategy that converts a limit order to a market order if it was not filled within N seconds?
Q2) I'm considering using System.Threading to launch a thread that wakes up after N seconds, and if the IOrder.State != Filled, then it sends a Cancel order, and then a market order. Are these order calls multi-threads safe?Tags: None
-
1) Check out the TriggerCustomEvent() - http://www.ninjatrader-support.com/H...stomEvent.html, I suggest NOT cancelling the limit and issuing a market but instead, modify limit price away from market so that you are filled. Its much quicker.RayNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, Yesterday, 04:31 AM
|
0 responses
39 views
0 likes
|
Last Post
by sjsj2732
Yesterday, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
289 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
289 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
135 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
96 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment