Orders durations and order setup

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Orders durations and order setup

Postby arjfca » 18 Aug 2011

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

User avatar
Stan Bokov
Posts: 963
Joined: 18 Dec 2009
Has thanked: 367 times
Been thanked: 302 times

Re: Orders durations and order setup

Postby Stan Bokov » 24 Aug 2011

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.


Return to “MultiCharts”