Placing two limit orders Simultenously

This is my code and it only places sell limit and do not place buy limit
if(Time[0].Hour == 20 && Time[0].Minute == 53)
{
//
EnterShortLimit(0,true,1,(Open[0]+200TickSize),“SellLimit”);
EnterLongLimit(0,true,1,(Open[0]-200
TickSize),“BuyLimit”);
}

What you’re trying to do can only be achieved in Unmanaged mode.

2 Likes

What is the key difference between managed and unmanaged mode

The Unmanaged mode gives you full control over orders, but also the responsibility to handle them correctly, which requires much deeper programming.
Here’s the official documentation on the Unmanaged mode and y Managed mode.
Choosing between the two is up to the developer when designing the system. Some tasks can only be performed in Unmanaged mode — such as the case you mentioned about placing an entry bracket. However, for systems with simple order management, the Managed mode is the ideal choice.

1 Like