Places an arrow on the order with set name chart and price changes the market position of the STRATEGY when automated trading is turned on. It does not send any orders to broker. It is used for synching the marketposition on the chart. It can be used in conjunction with [[PlaceMarketOrder]] command.
== Usage ==
<syntaxhighlight>ChangeMarketPosition(Delta, Price, Name)</syntaxhighlight>
<syntaxhighlight>If MarketPosition = 1 then
ChangeMarketPosition(-1, 100, "LX");</syntaxhighlight>
Will place close an order arrow on the chart with the name “LX” and the price 100 if current marketposition = 1.
<syntaxhighlight>If MarketPosition = 0 then
ChangeMarketPosition(-2, 100, "SE");</syntaxhighlight>
Will place open an order arrow on the chart with the name “SE” and the price 100 if current marketposition = 0.
[[Category:Strategy Position Synchronization]]