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.
Parameters
| Name | Type | Description |
|---|---|---|
order | Order | order to be cancelled |
Returns
Promise<boolean>
showClosePositionDialog
Optional
showClosePositionDialog: (position: Position | IndividualPosition) => Promise<boolean>
Shows the Close Position Dialog.
Parameters
| Name | Type | Description |
|---|---|---|
position | Position | IndividualPosition | position to be closed |
Returns
Promise<boolean>
showOrderDialog
Optional
showOrderDialog: (order: OrderTemplate | Order, focus?: OrderTicketFocusControl) => Promise<boolean>
Shows Order Ticket to create or modify an order and executes handler if Buy/Sell/Modify is pressed.
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
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>
showReversePositionDialog
Optional
showReversePositionDialog: (position: Position) => Promise<boolean>
Shows the Reverse Position Dialog.
Parameters
| Name | Type | Description |
|---|---|---|
position | Position | position to be reversed |
Returns
Promise<boolean>