×

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

47 bytes added, 09:36, 9 February 2012
no edit summary
Places market order at the broker without position changing on the chart.
==== Usage ====
<syntaxhighlight>PlaceMarketOrder(IsBuy, IsEntry, Contracts)</syntaxhighlight>
:'''Contracts''' - indicates the number of contracts/shares of the order.
==== Notes ==== * Works with auto trading turned off. * 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 = 2 then
PlaceMarketOrder (true, true, 2); </syntaxhighlight>
Will place buy market order for 2 contracts if current MarketPosition = 2.

Navigation menu