Usage examples:
1) When auto trading is turned off - the strategy position becomes zero.
You need to specify the position
manually for each strategy next time you turn on the auto trading if you have a position at the broker by means of Format-> Strategy properties-> Auto trading-> Assign the initial market position at the broker setting->Show the assign the initial market position at the broker dialogue-> Show always.
When you start the auto trading - a dialogue window will appear where you can set the position for the strategy. This is how you can synchronize it (continue the trading from the position where you have left it).
You can also synchronize your strategy and broker position
automatically with the help of the synchronizer script (!From Broker To Strategy MP Synchronizer!) that comes with the platform as a prebuilt signal. But
position at the broker cannot be divided between multiple strategies automatically by means of the "syncronizer" script. If you are trading with multiple strategies on one instrument - you need to assign the position manually for each strategy.
Please also keep in mind that only the open position information is synchronized (direction, amount of contracts, avg entry price), active price orders placed by auto trading are not synchronized. It means you need to manually cancel the active orders at broker and auto trading will place them on the next calculation (if conditions are met in the code).
2)
Manual Trading and Automated Trading on the Same Instrument at a Time
3)
Trading from Multiple Charts on One Instrument
What it does:
!From Broker To Strategy MP Synchronizer! - Synchronizes the market position inside MultiCharts with the market position at broker by sending a dummy order in charting.
!From Strategy To Broker MP Synchronizer!- Synchronizes the market position at broker with the market position at chart by sending a real order to the broker.
Inputs:
It is important to know the average time of receiving information from the broker about the market position and filled order from the moment the request was sent.
Timeouts should be increased in case of need.
TimeOutMS-the time MultiCharts waits from the moment the unsynchronization was found between broker and script. If the timeout is exceeded and there is still unsynchronization, then the market order will be sent to synchronize the position.
The broker position can be in sync with the strategy, but if the information about it is received later then the specified TimeOutMS (1 second by default), then the market order will be sent to synchronize the position.
LatencyMS-the time MultiCharts waits from the moment of sending the market order for synchronization. This timeout is important for the script not to send the market order every next calculation. If the timeout is exceeded and there is still unsynchronization, then the market order will be sent to synchronize the position.
How to add:
These signals should be used only if the user needs them and understands how to use them.
You do not need to copy the source code of the signal. It is complete and should be added to your strategy as one of the signals. IOG is on by default for these signals.