DaveN
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Limit Order Exits not working
Collapse
X
-
Limit Order Exits not working
I'm attaching some screen shots to further explain my question. I have a very simple scalping strategy that I am testing. I use a short moving avg of the bar highs and a separate short ma of the bar lows. Depending on any trend in the market, I am trying to enter a limit order sell at the high avg, and exit that trade with a limit buy at the low avg. Vice versa for the opposite situation. My problem is the system gets me into a trade, but never exits unless my separate stop is hit. Even when the price drops below the low avg on the chart, the limit order is never issued. I looked on the log and did see an error message, (included in the screen shots) but I'm not sure what it means, and I was trying to exit an order not enter one so I'm not even sure if it applies to this situation. Any advice on correcting my problem will be greatly appreciated.
DaveNTags: None
-
If you are backtesting you can only enter positions at the end of the signal bar which coincides with the opening of the next bar. If you are in realtime please make sure you are running in CalculateOnBarClose = false if you want your things to execute within the bar.
Your ExitShortLimit() order is likely hitting the Internal Order Handling Rules. Please see the Help Guide article for Internal Order Handling Rules because according to your last screenshot you are running into them.Josh P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
144 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
71 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
125 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
79 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment