×

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

3 bytes removed, 15:34, 14 September 2021
no edit summary
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 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. The price of the synchronizing order is equal to [[AvgEntryPrice_at_Broker]].
=== How to choose set timeouts ===
1) Use [[Print]] statement in your script to output computer time in ms and three market positions:
([[MarketPosition]], [[MarketPosition_at_Broker]], [[MarketPosition_at_Broker_for_The_Strategy]]);<br>