The first order is a swing trade of 12 points. Again, this is working perfectly. I'd like to add an additional order 8 points above my first order. I'm simply wanting to scale in on the winners.
sudo code is:
if ( conditions are true)
{
EnterLong(convert.ToInt32(NumOfContracts), "ID1"); // this works!
EnterLongLimit(GetCurrentBid(). "ID2"); // this does not fire off even though I have pulled this bit of code from a post on this forum.
}
On the Strategies panel, I have set the Order handling / Entries per direction to 10.
A limit order seems to be the only order that accepts a price argument so I'm trying to use EnterLongLimit.
I totally get that EnterLongLimit(GetCurrentBid(). "ID2") will not place the buy 8 points above, it should set it at the current market but I'll figure that out later. For now, I literally can't get two orders to fire off at the same time. One should enter the market right away and the second-order should sit, perched 8 points above my new order, waiting to fire off if the price catches up to it.
https://ninjatrader.com/support/help...er_methods.htm (EnterLongLimit())
I have read and reread these docs but they're not helping me figure out this issue. Also, the examples only show one version of the method while 5 are listed up top. I've tried a few example bits of code that I've searched for in this forum but again no luck.
What am I doing wrong?
Thanks!
Comment