View Full Version : Two simultaneous limit orders
smodato
09-29-2009, 10:57 AM
Hi,
I'm trying to develop a script that at a certain time sends 2 limit orders together, a buy and a sell.
It seems that it always reads only the first instruction and ignores the second, I tried also to write 2 condition sets but the second part is ignores:
If (Totime(Time[0]) >= ToTime(10,20,0)
&& ToTime(Time[0])< ToTime(13,35,0)
&& Close[0] < Level1Short)
{EnterShortLimit(DefaultQuantity, Level1Short,"SE1");}
If (Totime(Time[0]) >= ToTime(10,20,0)
&& ToTime(Time[0])< ToTime(13,35,0)
&& Close[0] > Level1Long)
{EnterLongLimit(DefaultQuantity, Level1Long,"LE1");}
Doing this it enters short but ignores the long entry instruction that might reverse the position. Could you please help me finding out what's wrong?
Thanks, bye
Smodato
NinjaTrader_Josh
09-29-2009, 11:09 AM
You cannot place simultaneous working orders in the opposite market direction. You can only place one. If the price moves closer to the other, cancel the first and place in the second.
smodato
09-29-2009, 12:35 PM
You cannot place simultaneous working orders in the opposite market direction. You can only place one. If the price moves closer to the other, cancel the first and place in the second.
Thansks for your reply, where is actually the limitation to place simultaneous limit orders in opposite directions, in the order entry system or in the program? It means could I place them manually if I needed?
To cancel and insert the opposite depending on where the price is located has a risk to send many orders and cancellations if the interval between the two levels is pretty small, is there no other workaround for this limitation (if it depends on the script limitations obviously)?
Thanks, bye
Smodato
NinjaTrader_Josh
09-29-2009, 01:05 PM
This is a necessary programming limitation. Manually you can do whatever you want.
http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?Overview36
Bottom of the page.
Frodo
12-15-2010, 12:35 PM
Hi,
in the new version of ninja trader 7 are two simultaneous limit orders possible?
Thanks
NinjaTrader_Josh
12-15-2010, 04:17 PM
Frodo,
Yes, you can place limit orders wherever you see fit. You can have multiple simultaneous working limit orders too.
Frodo
12-16-2010, 05:48 AM
... but is it also possible in the new version of ninja trader to place simultaneous two limit orders in the opposite market direction?
Please have a look on this chat here. This problem was already ask in 2009. Has anything change?
Thanks
NinjaTrader_Josh
12-16-2010, 08:21 AM
Frodo,
It was always possible to place orders in opposite directions. You just have to do so from separate strategies. This is still the case. If you want to use the same strategy you can use the Unmanaged order management approach newly available in NT7 to achieve so as well.
AnotherTrader
01-26-2011, 06:39 AM
... You cannot place simultaneous working orders in the opposite market direction. You can only place one...
I know this is from an old thread, but the quote above is relevant to an issue I currently have:
I understand that you CAN (in NT 6.5) place simultaneous working orders in opposite directions if one of these is an EXIT order for a currently held market position (e.g. an order to exit a long position) and the other is an ENTRY order that would effectively increase the currently held position (an order to increase the long position).
Is this correct?
NinjaTrader_Bertrand
01-26-2011, 06:52 AM
Correct, the internal order handling rules would trigger if you wanted to reverse your position (not adding only to the current one)
http://www.ninjatrader.com/support/helpGuides/nt7/managed_approach.htm