Exit Order Keyword Interaction

Questions about MultiCharts and user contributed studies.
User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Exit Order Keyword Interaction

Postby MC_Prog » 02 Feb 2015

Hi,

If 'Optimize Order Flow' is ON, will the activation of a trailing stop (via SetDollarTrailing or SetPercentTrailing) result in modification (e.g. ModifyOrder in the IB TWS audit trail) of an already-in-the-market stop loss order?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Exit Order Keyword Interaction

Postby Henry MultiСharts » 05 Feb 2015

Hello MC_Prog,

Please study the Optimize Order Flow description in the wiki.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Re: Exit Order Keyword Interaction

Postby MC_Prog » 06 Feb 2015

Yes, I have read and studied that. Frankly, I find it a bit confusing, and I can't even tell for sure if what is being described there has anything to do with my question or not.

As I'm thinking of it, there are potentially 3 interacting components that might be relevant to my question: 1) the PowerLanguage keyword behavior, 2) default order engine processing 3) the exact differences between having Optimize Order Flow On or Off.

Perhaps I am not thinking of it correctly, but that is why I'm asking. If I could get a direct, authoritative answer to my exact question I would really appreciate that.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Re: Exit Order Keyword Interaction

Postby MC_Prog » 12 Feb 2015

Hi. Is my question clear? If not, I can try to restate it.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Exit Order Keyword Interaction

Postby Henry MultiСharts » 13 Feb 2015

Hello MC_Prog,

I apologize for the delay in responding. With "Optimize Order Flow" = ON: If TrailingStop has the price that is more likely to be filled depending on the current market price then the StopLoss will be cancelled and the TrailingStop will be placed. There will be no order modification.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Re: Exit Order Keyword Interaction

Postby MC_Prog » 13 Feb 2015

Thanks Henry. No order modification, got it. (And that's important to know)

So would the sequence on that be:

1. Request cancel of existing order
2. Wait for cancel to be acknowledged
3. Place the new order

Also, can you explain about "most likely to be filled" in this case. I ask because the newly desired trailing stop order is always closer to the current market and will always thus be triggered and fillable before the original, farther away, stop loss order.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Exit Order Keyword Interaction

Postby Henry MultiСharts » 13 Feb 2015

MC_Prog,

The sequence should be the following:
1. Request cancel of existing order
2. Place the new order
3. Wait for cancel to be acknowledged - this event comes asynchronously, so it can be before or after #2.

Yes, "most likely to be filled" = "closer to the current market and fillable before the original".

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Re: Exit Order Keyword Interaction

Postby MC_Prog » 14 Feb 2015

Thanks Henry.


Return to “MultiCharts”