×

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

From Broker To Strategy MP Synchronizer

329 bytes removed, 14:43, 14 September 2021
no edit summary
<br>
On each strategy calculation, the signal compares chart position with broker position. If the difference between these two positions is detected, TimeOutMS timer starts counting down. If by the end of the specified period the positions don’t get equal, then [[ChangeMarketPosition ]] order will be sent in auto trqading trading system. This event will activate the next timer specified in LatencyMS input. LatencyMS determines how much time to wait before the next synchronization. If during the period specified for LatencyMS the [[ChangeMarketPosition]] order is not filled, the synchronizing signal sends another synchronizing order which will send the second notification on the chart.
How to choose timeouts:
The TimeOutMS value shouldn’t be less than the difference between the value from Order and Position Tracker -> Orders tab -> Filled/Cancelled column and the last market position change printed out to the Output for MarketPosition_at_Broker. At the same time, this parameter shouldn’t be bigger than the interval between sending orders to the broker (otherwise, the Synchronizer can go into the resonance).
The LatencyMS value shouldn’t be less than the difference between the time of generating ChangeMarketPosition order and its execution. However, this time value shouldn’t be too big, because it corresponds to the period when the Synchronizer stays inactive after sending the CMP.If you use the Synchronizer in SA mode only, you can modify your script for comparing marketposition_at_broker_for_the_strategy with marketposition_at_broker. In the script you can refer to marketposition_at_broker_for_the_strategy (not marketposition), by that excluding the time of ChangeMarketPostion synchronizing order path from AT system to the chart.