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 traderqz, Today, 12:06 AM
|
3 responses
6 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM | ||
Started by f.saeidi, Today, 08:13 AM
|
1 response
8 views
0 likes
|
Last Post Today, 08:47 AM | ||
Started by DavidHP, Today, 07:56 AM
|
1 response
7 views
0 likes
|
Last Post Today, 08:16 AM | ||
Started by kujista, Today, 06:23 AM
|
3 responses
11 views
0 likes
|
Last Post
by kujista
Today, 08:15 AM
|
Comment