READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

How to Automatically Place OCO Orders with Limit Orders in MT5?

2 replies

Gustavo Ruffato

Subscriber, bbp_participant, sq-ultimate, customer, community, 3 replies.

Visit profile

1 year ago #289503

Usually, when I mine a strategy via SQX, I leave limit orders enabled. When I generate the strategy and load it into MT5, I see that the limit order is plotted, but only after the price reaches the order are the stop loss and take profit plotted. Is there any way to have it already configured so that when the limit order is plotted, the OCO order for take profit and stop loss is sent simultaneously?

I think about this as a way to protect the trade in case the code presents any error. This way, the stops and take profit will already be pre-configured.

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #289506

Hi,

bracket orders are being sent to broker / exchange upon parent order fill only. It is a common practice used across many platforms and brokers

0

Gustavo Ruffato

Subscriber, bbp_participant, sq-ultimate, customer, community, 3 replies.

Visit profile

1 year ago #289530

Tomas, thank you for your response.
I understand that bracket orders are being sent to broker upon parent order fill only.
What I need is a way to have better control over the trades and to send, along with the limit order, an order containing stoploss and takeprofit, because in case the code has any issue, I have an extra layer of protection to avoid blowing the account.
I’m not always in front of the computer to monitor the market in real-time.
Is there any way to adjust the strategy code to allow for such order submission?

0

Viewing 2 replies - 1 through 2 (of 2 total)