I've noticed my strategy has been hit or miss on the orders (currently in replay mode because the markets are closed). So I decided to check the logs... and sure enough... it's throwing an error... and at the end of the error, it instructs me to search on the term "internal order handling."

So.... I did... and the information I found in the help guide really didn't... well... help.
I've done a google search as well of the NinjaTrader site and its forum, but I've not come across anyone who has actually explained what is going on here... just a lot of recommendations to go look in the help guide.
Either you guys have a different help guide than me, or I am just one of the thickest headed people on the planet.

Here's my setup... I would love a bit more detail about this if you have the time.
I'm using the strategy wizard. I've got a stoploss set at 6 ticks. Standard stoploss. Calculation mode "Ticks"
Condition set 1:
If cross one line above another
Draw a dot
EnterLong(DefaultQuantity, "")
Set 2 is the short sell version of the above.
Now... when I change the order type to "enter long position by limit order," that's when I get the error and the strategy doesn't place any orders. Here's what the code looks like:
EnterLongLimit(DefaultQuantity, Close[0] + 1 * TickSize, "");
That's the only thing that changes. When it is set to simple market order, it works fine, but as soon as I set a limit, I get the errors. I would love to be able to buy and sell with limit orders.
Any idea what's going on? I know a lot of other people have had this issue. Maybe we could discuss it here and really break it down. What do you think?
Thank you for having this forum. It's a wonderful resource.

-V

Comment