Auto Trading: Difference between revisions
From MultiCharts
→Assign the Initial Market Position at the Broker Settings
Line 159: | Line 159: | ||
<br> | <br> | ||
===Assign the Initial Market Position | ===Assign the Initial Market Position to Strategy === | ||
Whenever automated trading is turned on a strategy starts working with a particular market position. Depending on the mode of auto trading the position can vary. In [SA] mode it is always flat on chart when you turn it on, but in [AA] mode it can be short, flat or long, depending on what was generated in backtesting (to learn more see [[#Mode_Selection|Mode Selection]]). This option allows you to control the initial market position for the strategy to start calculation and order generation when you turn on automated trading. | Whenever automated trading is turned on a strategy starts working with a particular market position. Depending on the mode of auto trading the position can vary. In [SA] mode it is always flat on chart when you turn it on, but in [AA] mode it can be short, flat or long, depending on what was generated in backtesting (to learn more see [[#Mode_Selection|Mode Selection]]). This option allows you to control the initial market position for the strategy to start calculation and order generation when you turn on automated trading. | ||
The following options are available: | |||
* | :* '''Flat''' - the initial market position at the broker is assumed to be flat when automation is enabled.<br><div style="background-color: #E3FBE5;">'''Example''': Assume that according to your backtesting the current position is 1 contract long and your real broker position is 1 contract short. With this option you will have +1 on your chart, flat for auto trading engine within the software and -1 short at broker, when the automation is turned on. </div> | ||
:* '''From Chart''' - the initial position will be set corresponding to the one on chart. | |||
:* '''From Broker''' - the initial position will be the same as the actual position at the broker when automation is enabled. | |||
:* '''Always show dialog window''' - this box should be checked to get the Assign the Initial Market Position Dialogue every time the automation is enabled, no matter what the strategy position is at that moment. It is extremely important for [SA] mode, because it is always flat when automation is turned on in [SA].</div> | |||
:* '''Show dialog window only if market position on chart is different from broker''' - with this option enabled the dialogue window will appear when the position on the chart differs from the broker's position. Thus you will have an opportunity to assign the correct position in case there is a difference.</div> | |||
:* ''' | |||
:* ''' | |||
< | |||
===Select Broker Plug-in=== | ===Select Broker Plug-in=== |