How does "Unfilled Strategy Order Replacement" work?

Questions about MultiCharts and user contributed studies.
scotthkao
Posts: 31
Joined: 19 Feb 2014
Has thanked: 14 times

How does "Unfilled Strategy Order Replacement" work?

Postby scotthkao » 29 Aug 2015

I want to connect MultiCharts to an exchange where the stop order is not supported
so I'm wondering the mechanism of the "Unfilled Strategy Order Replacement" behind the scenes.
Is it the way it works as follows?

1. When a stop order is sent, the chart sends it to the broker via the broker plugin.
2. When the price of the stop order is crossed, the chart starts a timer to check whether the order is filled or not.
3. If the order is filled, just leave it as is and stop the timer.
4. If the order is not filled and (the timer is expired or the bar is closed),
the chart cancels the stop order via the broker plugin and then sends a market order immediately.

Am I right on the order flow?

Thanks a lot!

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: How does "Unfilled Strategy Order Replacement" work?

Postby TJ » 29 Aug 2015

I want to connect MultiCharts to an exchange where the stop order is not supported
so I'm wondering the mechanism of the "Unfilled Strategy Order Replacement" behind the scenes.
Is it the way it works as follows?

1. When a stop order is sent, the chart sends it to the broker via the broker plugin.
2. When the price of the stop order is crossed, the chart starts a timer to check whether the order is filled or not.
3. If the order is filled, just leave it as is and stop the timer.
4. If the order is not filled and (the timer is expired or the bar is closed),
the chart cancels the stop order via the broker plugin and then sends a market order immediately.

Am I right on the order flow?

Thanks a lot!

This might give you an overview:

Order Types
https://www.multicharts.com/trading-sof ... rder_Types

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: How does "Unfilled Strategy Order Replacement" work?

Postby TJ » 30 Aug 2015

Getting Started with AutoTrading
https://www.multicharts.com/trading-sof ... utoTrading

Auto Trading
Unfilled Strategy Order Replacement
https://www.multicharts.com/trading-sof ... eplacement

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: How does "Unfilled Strategy Order Replacement" work?

Postby TJ » 30 Aug 2015

previous discussion:

viewtopic.php?f=1&t=45551

scotthkao
Posts: 31
Joined: 19 Feb 2014
Has thanked: 14 times

Re: How does "Unfilled Strategy Order Replacement" work?

Postby scotthkao » 30 Aug 2015

Thanks, TJ!

I'll give those links a check.


Return to “MultiCharts”