ChangeMarketPosition: Difference between revisions
From MultiCharts
→Examples
m (→Notes) |
|||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
<syntaxhighlight>If MarketPosition = | <syntaxhighlight>If MarketPosition = 1 then | ||
ChangeMarketPosition(- | ChangeMarketPosition(-1, 100, "LX");</syntaxhighlight> | ||
Will place close order with the name “LX” and the price 100 if current marketposition = | Will place close order with the name “LX” and the price 100 if current marketposition = 1. | ||
<syntaxhighlight>If MarketPosition = 0 then | <syntaxhighlight>If MarketPosition = 0 then |