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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 MSerag, Today, 11:52 PM
|
0 responses
2 views
0 likes
|
Last Post
by MSerag
Today, 11:52 PM
|
||
Started by DynamicTest, Today, 11:18 PM
|
0 responses
3 views
0 likes
|
Last Post
by DynamicTest
Today, 11:18 PM
|
||
Started by dcriador, Today, 01:43 AM
|
3 responses
20 views
0 likes
|
Last Post
by dcriador
Today, 11:17 PM
|
||
Started by smartromain, Today, 10:50 PM
|
0 responses
5 views
0 likes
|
Last Post
by smartromain
Today, 10:50 PM
|
||
Started by popecapllc, 08-09-2023, 07:42 PM
|
10 responses
1,366 views
0 likes
|
Last Post
by BartMan
Today, 10:36 PM
|
Comment