Interface: BrokerCustomUI
Charting Library.BrokerCustomUI
Properties
showCancelOrderDialog
• Optional
showCancelOrderDialog: (order
: Order
) => Promise
<boolean
>
Shows a confirmation dialog and executes handler if YES/OK is pressed.
Type declaration
▸ (order
): Promise
<boolean
>
Parameters
Name | Type | Description |
---|---|---|
order | Order | order to be cancelled |
Returns
Promise
<boolean
>
showClosePositionDialog
• Optional
showClosePositionDialog: (position
: Position
) => Promise
<boolean
>
Shows the Close Position Dialog.
Type declaration
▸ (position
): Promise
<boolean
>
Parameters
Name | Type | Description |
---|---|---|
position | Position | position to be closed |
Returns
Promise
<boolean
>
showOrderDialog
• Optional
showOrderDialog: (order
: OrderTemplate
| Order
, focus?
: OrderTicketFocusControl
) => Promise
<boolean
>
Shows standard Order Ticket to create or modify an order and executes handler if Buy/Sell/Modify is pressed.
Type declaration
▸ (order
, focus?
): Promise
<boolean
>
Parameters
Name | Type | Description |
---|---|---|
order | OrderTemplate | Order | order to be placed or modified |
focus? | OrderTicketFocusControl | Control to focus on when dialog is opened |
Returns
Promise
<boolean
>
showPositionDialog
• Optional
showPositionDialog: (position
: Position
| IndividualPosition
, brackets
: Brackets
, focus?
: OrderTicketFocusControl
) => Promise
<boolean
>
Shows the Position Dialog
Type declaration
▸ (position
, brackets
, focus?
): Promise
<boolean
>
Parameters
Name | Type | Description |
---|---|---|
position | Position | IndividualPosition | position to be placed or modified |
brackets | Brackets | brackets for the position |
focus? | OrderTicketFocusControl | Control to focus on when dialog is opened |
Returns
Promise
<boolean
>