×

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

ChangeMarketPosition

21 bytes added, 12:57, 27 January 2012
m
no edit summary
<syntaxhighlight>ChangeMarketPosition (Delta, Price, Name)</syntaxhighlight>
Where: [[ :'''Delta]] ''' - number of contracts by which current market position should be changed;
[[:'''Price]] ''' - order filling price;
[[:'''Name]] ''' - name of the order that changes the position.
==== Notes ====
==== Example ====
<syntaxhighlight>If MarketPosition = 2 then
ChangeMarketPosition (-2,100,"LX");</syntaxhighlight>
Will place close order with the name “LX” and the price 100 if current marketposition =2 .
<syntaxhighlight>If MarketPosition = 0 then
ChangeMarketPosition (-2,100,"SE");</syntaxhighlight>
Will place open order with the name “SE” and the price 100 if current marketposition =0 .
[[Category:Strategy Position Synchronization]]

Navigation menu