Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
EnterShortStopLimit() Order not submitted
Collapse
X
-
Hi Joydeep
Thank you for answering my query via e-mail, much appreciated.
Kind regards
-
That is in the nature of StopLimit sell orders. When your stop is triggered, even by a gap, an order to sell at the limit, that you specified, is entered. The price is well below that limit, so the order will not be filled.Originally posted by csrvermaak View PostHi
I am using EnterShortStopLimit() orders, to submit orders with a given Stop and Limit. The example I am working on at the moment, takes the SMA crossover as the signal, and then takes the High/Low on the CrossOver bar as the Stop and Limit price for the order.
This works brilliantly, as per pic 1 and 2 below:
[ATTACH]24014[/ATTACH]
[ATTACH]24015[/ATTACH]
However, when the market gaps down, through the Stop and Limit prices, my order does not get filled - I was not expecting this. Please see third pic below:
[ATTACH]24016[/ATTACH]
Am I misunderstanding something?
My order is submitted as:
EnterShortStopLimit(1, MACrossHIGH(Close, 3, 30)[0],MACrossHIGH(Close, 3, 30)[0], "ShortEntry");
where MACrossHIGH(Close, 3, 30)[0] is the Red Line indicator, from the H/L of the CrossOver day.
Please advise?
Kind regards
Leave a comment:
-
Hello csrvermaak,
To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com
Also please do let me the exact steps to replicate the scenario.
Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.
I look forward to assisting you further.
*The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
Leave a comment:
-
Hi Joydeep
Thank you for your reply. I inserted the code, but not getting any Cancel/Reject messages.
I find it interesting that it works for all the orders before, but only this specific instance, where the market gaps, it fails.
Any ideas?
Kind regards
Leave a comment:
-
Hello csrvermaak,
Thanks for your note.
If you add the below code in the initialize section of the strategy then are you getting any order rejection/cancellation messages in the Output Window (Tools>Output Window).
Code:TraceOrders = true;
Leave a comment:
-
EnterShortStopLimit() Order not submitted
Hi
I am using EnterShortStopLimit() orders, to submit orders with a given Stop and Limit. The example I am working on at the moment, takes the SMA crossover as the signal, and then takes the High/Low on the CrossOver bar as the Stop and Limit price for the order.
This works brilliantly, as per pic 1 and 2 below:
However, when the market gaps down, through the Stop and Limit prices, my order does not get filled - I was not expecting this. Please see third pic below:
Am I misunderstanding something?
My order is submitted as:
EnterShortStopLimit(1, MACrossHIGH(Close, 3, 30)[0],MACrossHIGH(Close, 3, 30)[0], "ShortEntry");
where MACrossHIGH(Close, 3, 30)[0] is the Red Line indicator, from the H/L of the CrossOver day.
Please advise?
Kind regardsTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
14 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
119 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
172 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
88 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
131 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Leave a comment: