PlaceMarketOrder: Difference between revisions
From MultiCharts
no edit summary
Abeloglazova (talk | contribs) No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
== Example == | == Example == | ||
<syntaxhighlight>If MarketPosition = 2 then | <syntaxhighlight>If MarketPosition*CurrentContracts = 2 and MarketPosition_at_Broker = 4 then PlaceMarketOrder (false, false, 2); </syntaxhighlight> | ||
Will | Will generate sell market order for 2 contracts to synchronize market position at broker with the strategy position. | ||
Please refer to [[Trading_from_Multiple_Charts_on_One_Instrument#.21From_Strategy_To_Broker_MP_Synchronizer.21|!From Strategy To Broker MP Synchronizer!]] default signal for more examples. | |||