×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

Trading from Multiple Charts on One Instrument

9 bytes added, 16:00, 12 September 2022
no edit summary
==General Understanding of the Situation==
When a customer uses 2 or more separate charts and auto trade from these charts on the same instrument on the same account of the same broker, then the strategies that are used on the charts are not connected in anyway any way (if global variables are not used in their scripts to pass values between them). Even if MarketPosition_at_broker is used, it simply can get the real position from broker, but the actual position on chart may differ in this case. The following example can demonstrate a simple possible scenario of trading from 2 charts on the same instrument:<br>
<div style="background-color: #E5F6FF;">'''Example''': Market position at broker = 0. Market position on each chart = 0. If your strategy on chart A generates a long entry, then the strategy on chart B doesn't know about it. If the strategy on Chart B goes short, then chart A also doesn't know about it. So the strategies continue trading individually on their charts, preserving their chart positions. However, since the instrument at broker is the same, the market position at broker on the instrument is the net position of the orders sent from both charts. In this example the position will be flat after 1 order from each chart. <br>
Depending on the direction of synchronization, the strategy works in 2 different ways:
===![[From Broker To Strategy MP Synchronizer]]!===
The strategy checks the market position at broker and then checks chart market position. If the positions are different, then the signal generates an emulated order with the number of contracts and average entry price as on broker end to match the broker position. The order is not sent to broker, so it affects only market position on chart for the strategy. It is displayed on the chart, but it is not shown in Order and Position Tracker window.
===![[From Strategy To Broker MP Synchronizer]]!===
The strategy checks the market position at broker and then checks chart market position. If the positions are different, then the signal generates a market order with the number of contracts to match the chart position. The order is sent to broker, but the strategy itself is not aware of market position change, so it affects only broker position.