The ISimBroker type exposes the following members.

Methods

  NameDescription
Public methodAddOrderUpdatedDelegate
Used to subscribe to the OrderUpdatedDelegate.
(Inherited from IBroker.)
Public methodAddPositionAvailableDelegate
Used to subscribe to the PositionAvailableDelegate.
(Inherited from IBroker.)
Public methodCancelAllOrders
Cancels all orders currently submitted.
(Inherited from IBroker.)
Public methodCancelOrder
Cancels an order that is submitted.
(Inherited from IBroker.)
Public methodCustomMessage
Sends a custom message to the broker. This can allow direct integration between a trading system and a broker plugin.
(Inherited from IBroker.)
Public methodDeposit
Deposits the specified amount into the account.
Public methodGetAccountBalance
Retrieves the current cash balance of the account. This will be the same as GetBuyingPower()()()() unless there is an account margin factor.
(Inherited from IBroker.)
Public methodGetBuyingPower
Retrieves the amount of buying power available as reported by the broker.
(Inherited from IBroker.)
Public methodGetOpenOrder
Gets a single open order by unique Id.
(Inherited from IBroker.)
Public methodGetOpenOrders
Retrieves orders that are currently open.
(Inherited from IBroker.)
Public methodGetService
Retrieves the IService instance associated with this broker.
(Inherited from IBroker.)
Public methodGetShares
Gets the number of shares currently held by this broker for the specified symbol.
(Inherited from IBroker.)
Public methodIsLiveBroker
Determines whether or not this is a live broker. Simulated brokers should implement the ISimBroker interface.
(Inherited from IBroker.)
Public methodRemoveOrderUpdatedDelegate
Used to unsubscribe to the OrderUpdatedDelegate.
(Inherited from IBroker.)
Public methodRemovePositionAvailableDelegate
Used to unsubscribe to the PositionAvailableDelegate.
(Inherited from IBroker.)
Public methodSetAccountBalance
Sets the available buying power.
Public methodSetAccountInfo
Sets the IAccountInfo instance.
Public methodSetAccountState
Called before Connect(ServiceConnectOptions) to notify the broker of the list of orders that the system expects are pending, and the positions it expects are open.
(Inherited from IBroker.)
Public methodSimBar
Called by the framework to indicate that a new simulated bar has arrived.
Public methodSimClose
Fills orders based on the close prices of a bar.
Public methodSimTick
Called by the framework to indicate that a new simulated tick has arrived.
Public methodSubmitOrder
Submits an order to the broker.
(Inherited from IBroker.)
Public methodSyncAccountState
Called when the broker plugin should try to sync its orders with the orders at the broker. Called by RightEdge after Connect(ServiceConnectOptions) or after a reconnection.
(Inherited from IBroker.)
Public methodWithdraw
Withdrawals the specified amount into the account.

See Also