BrokerCustomUI
Properties
showCancelOrderDialog
OptionalShows a confirmation dialog and executes handler if YES/OK is pressed.
Type
(order: Order) => Promise<boolean>
Type declaration
Shows a confirmation dialog and executes handler if YES/OK is pressed.
Signature
(order: Order) => Promise<boolean>
Parameters
| Name | Type | Description |
|---|---|---|
| order | Order | order to be cancelled |
Returns
Promise<boolean>
showClosePositionDialog
OptionalShows the Close Position Dialog.
Type
(position: Position) => Promise<boolean>
Type declaration
Shows the Close Position Dialog.
Signature
(position: Position) => Promise<boolean>
Parameters
| Name | Type | Description |
|---|---|---|
| position | Position | position to be closed |
Returns
Promise<boolean>
showOrderDialog
OptionalShows standard Order Ticket to create or modify an order and executes handler if Buy/Sell/Modify is pressed.
Type
(order: OrderTemplate | Order, focus?: OrderTicketFocusControl) => Promise<boolean>
Type declaration
Shows standard Order Ticket to create or modify an order and executes handler if Buy/Sell/Modify is pressed.
Signature
(order: OrderTemplate | Order, focus?: OrderTicketFocusControl) => 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
OptionalShows the Position Dialog
Type
(position: Position | Trade, brackets: Brackets, focus?: OrderTicketFocusControl) => Promise<boolean>
Type declaration
Shows the Position Dialog
Signature
(position: Position | Trade, brackets: Brackets, focus?: OrderTicketFocusControl) => Promise<boolean>
Parameters
| Name | Type | Description |
|---|---|---|
| position | Position | Trade | 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>