Changes

Jump to navigation Jump to search

Auto Trading

10 bytes added, 15:48, 9 October 2020
m
<br>
=== Cancel Expired Market Orders as Obsolete If not Filled Within After X Seconds ===
This option , formerly known as "Cancel Market Orders as Obsolete If not Filled Within X Seconds", sets the timeout to cancel market orders not filled within specified time. If the option is not enabled any market order will be cancelled in 40+ seconds automatically.
<div style="background-color: #E5F6FF;">'''Example''': the feature is not enabled;<br>12:00:00 Strategy Calculation at close of bar # 51 - place market order to buy at open of next bar;<br>12:00:01 Strategy Calculation at open of bar # 52 - market order to buy is placed at broker;<br>12:00:10 Strategy Calculation at close of bar # 52 - no market order to buy at open of next bar should be placed;<br>Default 40 seconds countdown has been started:<br>12:00:50 - market order is cancelled.</div>
<br>
<br>
=== Emulate Stop orders locally Price Order Emulation ===<div style="background-color: #E3FBE5;">'''Note: This feature is available since MultiCharts 10.0 Beta 1.'''</div><div style="background-color: #E3FBE5;">Note: This feature requires realtime data subscription on your broker account.</div>When this option is enabled a stop order is emulated by MultiCharts - once the stop price level is reached by the corresponding ask or bid series, a market order is sent to the broker.In case Stop and/or Stop-Limit order emulation is enabled - the emulated OCO group is used, disregard the broker profile/autotrading plugin settings.
<br> === Emulate Stop-Limit orders locally ===<div style="background-color: #E3FBE5;">Since '''This feature is available since MultiCharts 10.0 Beta 1.12'''</div><div style="backgroundit is possible to switch between native and emulated Stop, Limit and Stop-color: #E3FBE5;">Note: Limit orders in both auto trading and manual trading. This feature requires realtime data subscription on your broker account.<When a Stop/div>Limit order is emulated - once the Stop/Limit price level is reached by the corresponding Ask/Bid or Trade prices, a market/limit order is sent to the broker correspondingly. When this option is enabled a stopStop-limit Limit order is emulated by MultiCharts - once the stop Stop price level is reached by the corresponding ask Ask/Bid or bid seriesTrade prices, a limit Limit order is sent to the broker.In case Stop , Limit and/or Stop-Limit order emulation is enabled - the emulated OCO group is used, disregard the broker profile/autotrading broker plugin settings.
To enable the Stop, Limit or Stop-Limit order emulation for automated trading select '''Emulate locally using Bid/Ask''' or '''Emulate locally using Trade''' from the dropdown list next to the corresponding order type. Leave the settings to '''Use native''' if using price order emulation is undesirable.
In order to apply the changes one needs to disconnect the broker profile and reconnect it.
<br>
With the help of these options one can have unexecuted entry/exit price orders converted into market orders when the specified timeout is exceeded or upon bar close.
The timer is launched depending on the option “Get realtime data from”:
* when set to “Broker”, the timer starts when the '''price at the broker ''' touches the order’s price;* when set to “Chart”, the timer starts when the order price is hit '''on a chart'''.
Operation of these options depends on the [[Signal Settings#Intra-Bar Order Generation|Intra-Bar Order Generation (IOG)]]:
# IOG disabled - if the timer has started but the bar closed faster than timeout exceeded, then the price order is converted into a market order without waiting for the timeout to exceed;
=== Get Real-Time Data from ===
This option affects special orders monitoring and defining the moment to convert price orders into market ones.
<div style="background-color: #E3FBE5;">'''Note''': Special trailing stop order (''SetDollarTralingSetDollarTrailing'') will be calculated based on the distance from the entry price order to the real-time price. The entry price is defined by the broker. In MC this price is the real price of order fill. It doesn't depend on trading mode or the source of real time.<br>''i_OpenEquity'', ''OpenPositionProfit'' keywords are not affected by this option, they are always calculated from chart prices.</div>
<div style="background-color: #E5F6FF;">'''Example''':

Navigation menu