Changes
Created page with "Places market order at the broker without position changing on the chart. ==== Usage ==== <syntaxhighlight>PlaceMarketOrder(IsBuy, IsEntry, Contracts)</syntaxhighlight> W..."
Places market order at the broker without position changing on the chart.
==== Usage ====
<syntaxhighlight>PlaceMarketOrder(IsBuy, IsEntry, Contracts)</syntaxhighlight>
Where: [[IsBuy]] - indicates whether order is buy or sell;
[[IsEntry]] - indicates whether order is entry or exit;
[[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.
==== Example ====
<syntaxhighlight>If MarketPosition = 2 then
PlaceMarketOrder (true, true, 2) </syntaxhighlight>
Will place buy market order for 2 contracts if current marketposition =2
[[Category:Strategy Position Synchronization]]
==== Usage ====
<syntaxhighlight>PlaceMarketOrder(IsBuy, IsEntry, Contracts)</syntaxhighlight>
Where: [[IsBuy]] - indicates whether order is buy or sell;
[[IsEntry]] - indicates whether order is entry or exit;
[[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.
==== Example ====
<syntaxhighlight>If MarketPosition = 2 then
PlaceMarketOrder (true, true, 2) </syntaxhighlight>
Will place buy market order for 2 contracts if current marketposition =2
[[Category:Strategy Position Synchronization]]