×

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

ChangeMarketPosition

295 bytes added, 16:41, 23 January 2014
no edit summary
Places an arrow on the order with set name chart and price on changes the market position of the chart. Though STRATEGY when auto automated trading is off the order will turned on. It does not be sent send any orders to a 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>
Where:
:'''Name''' - name of the order that changes the position.
==== Notes ==== * Can be used as a mean of synchronization of strategy market position with a broker. * When auto trading is off the order will '''not''' be sent to a broker.==== Example ==== <syntaxhighlight>If MarketPosition = 2 then ChangeMarketPosition (-2,100,"LX");</syntaxhighlight> * Also see the related [[PlaceMarketOrder]] keyword.
== Examples ==<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 = 21.
<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]]