BrokerCustomUI
Interface
Types Module: Broker
Properties
showCancelOrderDialog
OptionalShows a confirmation dialog and executes handler if YES/OK is pressed.
Type
(order: Order) => Promise<boolean>
Type declaration
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
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
Signature
(order: OrderTemplate | Order, focus?: OrderTicketFocusControl) => Promise<boolean>
Parameters
Name | Type | Description |
---|---|---|
order | OrderTemplate | Order | order to be placed or modified |
focus? | OrderTicketFocusControl | - |
Returns
Promise<boolean>
showPositionDialog
OptionalShows the Position Dialog
Type
(position: Position | Trade, brackets: Brackets, focus?: OrderTicketFocusControl) => Promise<boolean>
Type declaration
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 | - |
Returns
Promise<boolean>