I have seen all post about rules placing opposite Stop Order together, OCO and limitations but I do not understand something please...
I have test in manual trade and is possible to place two stop-order above and below price
...when enter one the other will be the stop.
I'm working in a automatic Strategy and I'm trying to do the same but I cannot do it due "Internal Order Handling Rules"
The strategy place only the first.
This is the code to place 2 orders:
EnterLongStop(DefaultQuantity, Close[0] + bBracket * TickSize, "Buy Trade"); EnterShortStop(DefaultQuantity, Close[0] - bBracket * TickSize, "Sell Trade");
I have seen the rules:
Methods that generate orders to enter a position will be ignored if:
The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
My questions:
1. Why in manual trade I can do it?
2. How can i do it with automatic strategy? Can you tell me please the code to do it?
Many thanks!
Comment