TIF Unspecified - Cancel Order at the end of day  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
fede.adv
Posts: 7
Joined: 08 Sep 2017

TIF Unspecified - Cancel Order at the end of day

Postby fede.adv » 23 Jan 2018

Hello,
in order to avoid a lot of crazy IB commission when I cancel or modify an order (specially on DTB exchange), I started using "Emulate Stop Order locally". I noticed that I get a "Time in Force - Unspecified" message from MC.
All of my orders have TIF DAY but, using the Emulate function, the orders remain even if the markets are closed.
Is it possible to cancell the orders at the close of the market?
Thank You in advance.

fede

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: TIF Unspecified - Cancel Order at the end of day  [SOLVED]

Postby Svetlana MultiCharts » 24 Jan 2018

Hello, fede,

When "Emulate Stop orders locally" feature is enabled MultiCharts does not assign any TIF value to emulated orders, that is why you can see the "Time in Force - Unspecified" value.

It is true both for auto and manual trading. All TIF information is processed by the broker, not by MultiCharts. MultiCharts doesn’t cancel the orders based on their TIF.

The orders are valid at broker while they are sent by the strategy. If you want to cancel the order — stop sending it from the code (make the conditions for order generation invalid).

Orders can be cancelled by the broker based on TIF if they reside on the broker end.

fede.adv
Posts: 7
Joined: 08 Sep 2017

Re: TIF Unspecified - Cancel Order at the end of day

Postby fede.adv » 25 Jan 2018

Thank You Sveltana

Regards

Fede


Return to “MultiCharts .NET”