×

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

4.7.5.3 Trading Functionality. TradingProfiles

13 bytes added, 13:07, 27 October 2023
no edit summary
* {{color|blue|int[] PlaceOCOOrders(MTPA_OCOGroupType oco_type, params OrderParams[] orders);}} - submission of several orders within OCO group. This returns a list of successfully submitted order identifiers (IDs). The OCO group can be of two types:
# One Cancel Others means that the cancellation or execution of one order cancels all other orders.
# Reduce Size means that when Order#1 is filled for X contracts the amount number of the contracts of the other orders in the group is reduced by X number of contracts.
* {{color|blue|int PlaceOrder(OrderParams order);}} - submission of one order. If submission is successful the identifier (ID) of the order will be returned. Otherwise, an exception like “System.Runtime.InteropServices.COMException.” will be generated.
This structure can be received through the properties of '''Bars.Info.ASymbolInfo2''' for the current symbol.
[[Category:4. Understanding PowerLanguage .NET Programming Giude]]