×

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

Changes

Jump to navigation Jump to search

PlaceMarketOrder

330 bytes added, 10:17, 23 April 2021
no edit summary
Places a market order at the broker immediately after the script calculation without position changing on the chart.
== Usage ==
== Notes ==
* Works only with auto trading turned on.
* Can be used as a mean of synchronization of strategy market position with a broker.
* Also see the related [[ChangeMarketPosition]] keyword.
== Example ==
<syntaxhighlight>If MarketPosition *CurrentContracts = 2 and MarketPosition_at_Broker = 4 then PlaceMarketOrder(truefalse, truefalse, 2); </syntaxhighlight>
Will place buy generate sell market order for 2 contracts if current MarketPosition = 2to 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.

Navigation menu