Changes

Jump to navigation Jump to search

Auto Trading

1,324 bytes added, 11:08, 21 March 2014
=== Mode Selection ===
Automated execution from chart can be turned on in one of two available modes: synchronous and asynchronous:* 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 are 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 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)'''
====Understanding Strategy Calculation in Different Modes====
 
There are 3 separate market positions when strategy is auto-trading in MultiCharts:
# '''Broker position'''. This is '''net position for a traded security at your broker account''' that takes into consideration all trades. It can be seen on [[Order and Position Tracker#Open Positions Tab| Open Positions tab of Order and Position Tracker]].
# '''Auto-trading engine position'''. This is '''inner position of the strategy on a specific chart''' calculated by the software. It can be seen on [[Order and Position Tracker#Strategy Positions tab| Strategy Positions tab of Order and Position Tracker]].
# '''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 chart in 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====
# [[MarketPosition_at_Broker]]. Returns '''broker position'''.
# [[MarketPosition_at_Broker_for_The_Strategy]]. Returns MC '''auto-trading engine position'''.
# [[MarketPosition]]. Returns '''chart position''' (only direction).
<br>

Navigation menu