because i was trying to do it with just EnterLong/shortLimit but sometimes it gives me this error. But it was just a enterlonglimit so how is that possible?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Enter limit market
Collapse
X
-
Enter limit market
Hi, i want to put an limit order that when touched by the price generates a market order . FOr example: price is 1400 i put a limit buy at 1390. when the prices reaches 1390 it generates a market porder, is it possible?
because i was trying to do it with just EnterLong/shortLimit but sometimes it gives me this error. But it was just a enterlonglimit so how is that possible?Last edited by AlessioCianini12; 02-01-2022, 01:36 PM.Tags: None
-
Hello AlessioCianini12,
Thank you for your post.
You could simply submit a market order when the current price reaches your specified entry point rather than using a limit or stop limit order.
This looks like a problem with a stop or target being submitted to the wrong side of the market when an entry is made, however. You can try to mitigate this by moving your stops further from the entry price to try to avoid situations in which the price moves quickly as the entry fills, but there's always the possibility that this could still occur. You can also consider changing your RealTimeErrorHandling to RealtimeErrorHandling.StopCancelCloseIgnoreRejects and monitoring for a rejection in OnOrderUpdate(). You can then program in your own handling for when a stop is rejected, possibly resubmitting the stop at a different level or just submitting a market order to close the position in question.
Please let us know if we may be of further assistance to you.
-
ok but when something happen i put a limit entry buy order 3 tiks under the current price. how can i do in order to use a market order?
Comment
-
Hello AlessioCianini12,
Thank you for your reply.
You would simply want to save the Close[0] price at the time your condition would normally place the limit order to a variable, then check if the current Close price is less than or equal to that variable's value. If it is, the limit order would have been hit, so you can then submit a market order.
Please let us know if we may be of further assistance to you.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
53 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment