Changes

Jump to navigation Jump to search

Auto Trading

2 bytes added, 15:13, 27 April 2017
no edit summary
With Order Confirmation selected, each time that one or more orders are generated, a '''New Order''' dialog box displaying the orders will appear in the center of the desktop. To confirm order transmission, click '''Transmit Orders''', and to prevent order transmission, click '''Ignore Orders'''.
* When more than one order is displayed in the '''New Order''' dialog box, it is not possible to transmit one order and ignore another; ether either all of the orders are transmitted, or all of the orders are ignored.
* If neither '''Transmit Orders''' or '''Ignore Orders''' is selected before a new Market order or set of Market orders is generated, or before a new bar is started, the previous order or set of orders is ignored and not sent to the execution gateway.
=== Mode Selection ===
* In '''synchronous''' mode '''[SA]''' one can see the same open market position and active orders on the chart as at broker. All orders generated by historical calculation during Backtesting are Backtesting wiped out from the chart when auto execution is turned on. Executed order is displayed only if it has been executed at broker and the final status of the order has been received by MultiCharts. To use synchronous mode for auto trading select '''Entries/Exits are based on the execution confirmation by the broker (Sync)'''<br> <div style="background-color: #E3FBE5;">'''Note''': Chart market position and broker market position are in synch only if no more than one chart is auto trading without any manual orders on a particular symbol connected to a particular broker account, assuming that at the moment the automation was turned the broker market position was flat or, if it was not flat at broker, assigned manually on start of auto trading in MC to match it (see [[#Assign_the_Initial_Market_Position_at_the_Broker_Settings|Assign the Initial Market Position at the Broker Settings]]). If more than 1 chart is auto trading in [SA] mode and/or manual trading is used as the same time on the same symbol at broker, chart can easily get out of synch. To learn more, see [[Trading from Multiple Charts on One Instrument]].</div><br>
* In ''' asynchronous ''' mode ''' [AA] ''' the strategy on the chart starts auto trading based on the historically calculated orders and open position, displaying all generated by the script orders on chart even if an order was not executed at broker. In AA strategy on chart acts separately from broker.<br>To use asynchronous mode for auto trading select '''Entries/Exits are independent of the execution status at the broker (Async)'''
# '''Chart position'''. This is the '''position generated by orders visually executed on chart'''. It has nothing to do with open position horizontal drawing shown when you open [[Chart Trading]] panel.
When you auto trade '''in SA (sync. mode) the 2 and 3 are the same''', what is you see on the chart in is synchronized with auto-trading engine. When '''you use AA (async. mode), you may have to deal with 3 different positions''': what you have on broker, what you see on chart, what MC thinks it is.
====Market Position Checking Keywords====
Two options are available:
* Show the Assign the Initial Market Position at the Broker Dialogue<br>By default it this variant is selected. If market position on the chart is not flat and automation is turned on, than the Assign the Initial Market Position Dialogue window will pop up. There the direction of current market position, number of open contracts and average entry price can be put.<br><div style="background-color: #E3FBE5;">'''Note''': The '''Show Always''' box should be checked to get the Assign the Initial Market Position Dialogue every time the automation is enabled, no matter what is the strategy position by that moment. It is extremely important for [SA] mode, because it is always flat when automation is turned on in [SA].</div>

Navigation menu