Stop entry orders with OCO (One cancels the other)?
Hello
Please could somebody tell me if it is possible to program an EA with Stop entry orders with OCO (One cancels the other)?
For example, when trading Donchian channels, the EA would place Stop entry orders slightly beyond the upper and lower part of the channel and when one order is placed, the other is cancelled.
Thanks
Please could somebody tell me if it is possible to program an EA with Stop entry orders with OCO (One cancels the other)?
For example, when trading Donchian channels, the EA would place Stop entry orders slightly beyond the upper and lower part of the channel and when one order is placed, the other is cancelled.
Hello Ant469,
OCO orders are not natively present in MT5. However, you can easily do that programmatically.
Basically you have to send 2 stop entry orders. After identifying the execution of one order, you need to delete the other pending order.
As said, all that programmatically. But it's perfectly possible to be done.
Regards,
Malacarne
Ah I see. Great, thanks for your help.
Hello Ant469,
OCO orders are not natively present in MT5. However, you can easily do that programmatically.
Basically you have to send 2 stop entry orders. After identifying the execution of one order, you need to delete the other pending order.
As said, all that programmatically. But it's perfectly possible to be done.
Regards,
Malacarne
Hello
Please could somebody tell me if it is possible to program an EA with Stop entry orders with OCO (One cancels the other)?
For example, when trading Donchian channels, the EA would place Stop entry orders slightly beyond the upper and lower part of the channel and when one order is placed, the other is cancelled.
Thanks