Getting Started with AutoTrading: Difference between revisions
From MultiCharts
Getting Started with AutoTrading (view source)
Revision as of 14:11, 11 October 2021
, 11 October 2021no edit summary
No edit summary |
No edit summary |
||
(25 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
== Setting Up | == Setting Up Auto Trading in MultiCharts == | ||
# Determine the symbol to plot on a chart. In QuoteManager, verify that that the '''Price Scale''', '''Min Movement''', and '''Big Point Value''' settings for the symbol are correct. MultiCharts will have the correct settings for most of the symbols, but it is not possible to cover every symbol. If these settings are not correct, then the chart will not plot properly and orders may be rejected by the execution gateway. To learn more, see [[Setting Properties]]. | # Determine the symbol to plot on a chart. In QuoteManager, verify that that the '''Price Scale''', '''Min Movement''', and '''Big Point Value''' settings for the symbol are correct. MultiCharts will have the correct settings for most of the symbols, but it is not possible to cover every symbol. If these settings are not correct, then the chart will not plot properly and orders may be rejected by the execution gateway. To learn more, see [[Setting Properties]]. | ||
Line 14: | Line 14: | ||
# Select the '''Show order execution status''' check box to have a status message displayed every time an order is sent, canceled, filled, or rejected, or any other informational message is received from the gateway application. | # Select the '''Show order execution status''' check box to have a status message displayed every time an order is sent, canceled, filled, or rejected, or any other informational message is received from the gateway application. | ||
# Select the '''Audio Alert''' check box and choose a sound file to activate an audio alert every time a notification window appears. | # Select the '''Audio Alert''' check box and choose a sound file to activate an audio alert every time a notification window appears. | ||
#: Selecting an Alert Sound File: | #: Selecting an Alert Sound File: | ||
## Enter the path and name of the wave (.wav) sound file to be used into the '''File''' text box, or click the '''...''' http://www.multicharts.com/img/wiki/portfolio/ellipse.gif button on the right side of the text box for '''Open''' dialog box, navigate to and select a sound file, and click the '''Open''' button. | ## Enter the path and name of the wave (.wav) sound file to be used into the '''File''' text box, or click the '''...''' http://www.multicharts.com/img/wiki/portfolio/ellipse.gif button on the right side of the text box for '''Open''' dialog box, navigate to and select a sound file, and click the '''Open''' button. | ||
Line 27: | Line 26: | ||
#:* Select '''Convert unexecuted limit or stop exit orders to market orders''' check box to convert unexecuted limit or stop exit orders to market after a specified number of seconds. Enter the number of seconds in the list box.<br><div style="background-color: #E3FBE5;">Note: The waiting period for converting unfilled limit or stop orders to market orders must be less than the duration of a single bar. </div><br><div style="background-color: #E3FBE5;">Note: As long as the order is completely unfilled, MultiCharts will always convert the order as described in this step regardless of any settings under '''Replace to Market Partially Filled Orders'''. If there is a partially filled order and '''Replace to Market Partially Filled Orders''' was turned on, then MultiCharts will convert the order according to the settings in '''Replace to Market Partially Filled Orders'''.</div><br><br> | #:* Select '''Convert unexecuted limit or stop exit orders to market orders''' check box to convert unexecuted limit or stop exit orders to market after a specified number of seconds. Enter the number of seconds in the list box.<br><div style="background-color: #E3FBE5;">Note: The waiting period for converting unfilled limit or stop orders to market orders must be less than the duration of a single bar. </div><br><div style="background-color: #E3FBE5;">Note: As long as the order is completely unfilled, MultiCharts will always convert the order as described in this step regardless of any settings under '''Replace to Market Partially Filled Orders'''. If there is a partially filled order and '''Replace to Market Partially Filled Orders''' was turned on, then MultiCharts will convert the order according to the settings in '''Replace to Market Partially Filled Orders'''.</div><br><br> | ||
#:'''''Assign the Initial Market Position at the Broker Settings''''' | #:'''''Assign the Initial Market Position at the Broker Settings''''' | ||
#:To learn more, see [[ | #:To learn more, see [[Auto_Trading#Assign the Initial Market Position at the Broker Settings|Synchronization of Market Position in Auto Trading Mode]]. | ||
#:* Select ''' | #:* Select '''Flat''' to set the initial position to 0. | ||
#:* Select ''' | #:* Select '''From Chart''' to set the initial position to the position that's on the chart. | ||
# | #:* Select '''From Broker''' to set the initial position the same as actual position at the broker. | ||
# | #:* Select '''Always show dialogue window''' to display a dialog box to input the initial position and average entry price. This dialog box will appear when auto trading is turned on in the chart (see last step). | ||
#: | #:* Select '''Show dialogue window only if market position on chart is different from broker''' to display a dialog box to input the initial position only when there is a difference between chart position and broker position. | ||
# Choose the broker/gateway from the list box in the '''Select Broker Plug-in''' section. | # Choose the broker/gateway from the list box in the ''''''[[Auto Trading#Select Broker Plug-in|Broker Plug-ins]]'''''' section. | ||
# Click '''Settings'''. | # Click '''Settings'''. | ||
# Input the settings for the appropriate broker/gateway. | # Input the settings for the appropriate broker/gateway. | ||
<categorytree mode=pages showcount="on" depth=2>Broker Plug-ins</categorytree> | <categorytree mode=pages showcount="on" depth=2>Broker Plug-ins</categorytree> | ||
# | == Turning on Auto Trading in MultiCharts == | ||
# | #Turning on auto trading on the chart | ||
# | #* SA Mode | ||
#**# Read the disclaimer and click '''Yes'''. | #*# Select the [[Auto_Trading#Distinguished Features of Auto Trading|Auto Trading Status Switch]] and select '''Automate Order Execution'''. | ||
# | #*# Make sure that the proper Broker Plug-in is selected. You can click on the name to access it's properties. If the wrong Broker Plug-in is selected, then please click '''No''', and select the correct one in Auto Trading settings. | ||
# | #*# Read the disclaimer and click '''Yes'''. | ||
# | #*# The button will turn green which means auto trading is on. | ||
#**# Read the disclaimer and click '''Yes'''. | #* AA Mode | ||
# | #*# Select the [[Auto_Trading#Distinguished Features of Auto Trading|Auto Trading Status Switch]] and select '''Automate Order Execution'''. | ||
# | #*# Make sure that the proper Broker Plug-in is selected. You can click on the name to access it's properties. If the wrong Broker Plug-in is selected, then please click '''No''', and select the correct one in Auto Trading settings. | ||
# | #*# Read the disclaimer and click '''Yes'''. | ||
# | #*# If '''Show the Assign the Initial Market Position at the Broker dialogue''' was selected earlier, then a dialog box will appear.<br>Enter the initial market position and average entry price. Then select '''Yes'''. | ||
# | #*# The button will turn green which means auto trading is on. | ||
# | #Turning on auto trading from main menu | ||
# | #* SA Mode | ||
#**# Read the disclaimer and click '''Yes'''. | #*# Select '''Format''' from the main menu. | ||
# | #*# Select '''Automate Order Execution'''. | ||
# | #*# Click on the switch and select '''Automate Order Execution'''. | ||
# | #*# Make sure that the proper Broker Plug-in is selected. You can click on the name to access it's properties. If the wrong Broker Plug-in is selected, then please click '''No''', and select the correct one in Auto Trading settings. | ||
# | #*# Read the disclaimer and click '''Yes'''. | ||
# | #*# The button will turn green which means auto trading is on. | ||
#**# Read the disclaimer and click '''Yes'''. | #* AA Mode | ||
# | #*# Select '''Format''' from the main menu. | ||
# | #*# Select '''Automate Order Execution'''. | ||
#*# Click on the switch and select '''Automate Order Execution'''. | |||
# | #*# Make sure that the proper Broker Plug-in is selected. You can click on the name to access it's properties. If the wrong Broker Plug-in is selected, then please click '''No''', and select the correct one in Auto Trading settings. | ||
#*# Select the [[ | #*# Read the disclaimer and click '''Yes'''. | ||
#*# If '''Show the Assign the Initial Market Position at the Broker dialog''' was selected earlier, then the dialog box will appear. Input the initial market position and average entry price. Then select '''Yes'''. | |||
#*# The button will turn green which means auto trading is on. | |||
== Turning off Auto Trading in MultiCharts == | |||
#Turning off auto trading from the chart | |||
#*# Select the [[Auto_Trading#Distinguished Features of Auto Trading|Auto Trading Status Switch]] and deselect '''Automate Order Execution'''. | |||
#*# If there are orders pending, a dialog box will appear to ask if pending orders should be cancelled. Select '''Cancel Orders''' or '''Do Not Cancel Orders''' to proceed. | #*# If there are orders pending, a dialog box will appear to ask if pending orders should be cancelled. Select '''Cancel Orders''' or '''Do Not Cancel Orders''' to proceed. | ||
#*# If there are open positions, a dialog box will appear to ask if open positions should be closed. Select '''Close Positions''' or '''Do Not Close Positions''' to proceed. | #*# If there are open positions, a dialog box will appear to ask if open positions should be closed. Select '''Close Positions''' or '''Do Not Close Positions''' to proceed. | ||
#*# The Auto Trading Status Switch will turn gray which means auto trading is turned off. | #*# The Auto Trading Status Switch will turn gray which means auto trading is turned off. | ||
# | #Turning off auto trading from the main menu | ||
#*# Select '''Format''' and deselect '''Automate Order Execution'''. | #*# Select '''Format''' and deselect '''Automate Order Execution'''. | ||
#*# If there are orders pending, a dialog box will appear to ask if pending orders should be cancelled. Select '''Cancel Orders''' or '''Do Not Cancel Orders''' to proceed. | #*# If there are orders pending, a dialog box will appear to ask if pending orders should be cancelled. Select '''Cancel Orders''' or '''Do Not Cancel Orders''' to proceed. | ||
#*# If there are open positions, a dialog box will appear to ask if open positions should be closed. Select '''Close Positions''' or '''Do Not Close Positions''' to proceed. | #*# If there are open positions, a dialog box will appear to ask if open positions should be closed. Select '''Close Positions''' or '''Do Not Close Positions''' to proceed. | ||
#*# The Auto Trading Status Switch will turn gray which means auto trading is turned off. | #*# The Auto Trading Status Switch will turn gray which means auto trading is turned off. | ||
== Enabling and Disabling Auto Trading on Multiple Charts == | |||
Since MultiCharts 14 it is possible to enable automated trading on all charts from all of the currently open MultiCharts desktops.<br> | |||
To ''turn on'' auto trading on several charts: | |||
# Select '''Format''' from the main menu. | |||
# Click '''Enable Automated Order Execution for Multiple Charts'''. | |||
Or | |||
# From the '''Main''' toolbar select the '''Enable Automated Order Execution for Multiple Charts option'''. | |||
In the opened up window put the checkmark next to the strategies/workspaces/desktops that you would like to enable. | |||
The window displays the essential information about the signals applied to each chart, the selected mode of trading (SA or AA), the selected broker plugin and the [[Auto_Trading#Assign_the_Initial_Market_Position_at_the_Broker_Settings|Assign the Initial Position]] option.<br> | |||
To ''turn off'' auto trading on several charts: | |||
# Select '''Format''' from the main menu. | |||
# Click '''Disable Automated Order Execution for Multiple Charts'''. | |||
Or | |||
# From the '''Main''' toolbar select the '''Disable Automated Order Execution for Multiple Charts''' option. | |||
== Managing Active Orders and Open Positions == | |||
If you do not want to see the pending orders dialog box when disabling auto trading select '''File''' in the main menu, click '''Preferences''', select the '''Trading''' tab and check the '''Do not show cancel active orders confirmation dialog when disabling auto trading''' check box. | |||
There are two options available: | |||
*Cancel active orders sent by the strategy; | |||
*Do not cancel active orders sent by the strategy. | |||
If you do not want to see the open position dialog box when disabling auto trading select '''File''' in the main menu, click '''Preferences''', select the '''Trading''' tab and check the '''Do not show close open position confirmation dialog when disabling auto trading''' check box. | |||
There are two options available: | |||
*Close the open position opened by the strategy; | |||
*Do not close the open position opened by the strategy. | |||
<div style="background-color: #E3FBE5;">Note: If the workspace (or MultiCharts) was closed while auto trading mode was enabled on one or several charts, a dialogue asking you if you want to enable auto trading on these charts on restart. Click '''Yes''' to enable auto trading or '''No''' to open charts with auto trading disabled.</div> | |||
[[Category:AutoTrading]] | [[Category:AutoTrading]] |