Hello
In the order duration setup, what is "IOC"
How do I code or setup for: My order to be close at the beginning of the next bar if not activate.
Martin
Orders durations and order setup
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: Orders durations and order setup
IOC - Immediate Or Cancel
An order requiring that all or part of the order be executed immediately after it has been brought to the market. Any portions not executed immediately are automatically cancelled.
If you want your order to be closed at the beginning of the next bar, then don't send it again. Implement a flag and only send the order once. Don't send it again if it was sent already.
An order requiring that all or part of the order be executed immediately after it has been brought to the market. Any portions not executed immediately are automatically cancelled.
If you want your order to be closed at the beginning of the next bar, then don't send it again. Implement a flag and only send the order once. Don't send it again if it was sent already.