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.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
void SetAccountState(
	BrokerAccountState state
)
Visual Basic
Sub SetAccountState ( 
	state As BrokerAccountState
)
Visual C++
void SetAccountState(
	BrokerAccountState^ state
)
F#
abstract SetAccountState : 
        state : BrokerAccountState -> unit 

Parameters

state
Type: RightEdge.Common..::..BrokerAccountState
The account state when the system last shut down.

Remarks

The broker can override the account state by setting BrokerOverride to true. It can then modify the Positions and PendingOrders lists and RightEdge will use the modified account state.

Note that if the broker sets this option to true, the positions created for your system will not have all of the information that the saved positions would have had. Multiple positions per symbol will be combined into a single position. There will be no profit target or stop loss on the positions (although the orders that were submitted as profit targets or stop losses may still be pending as UserSubmitted orders). The orders and positions will have no timeout / bar count exit value. Also, the open positions will only contain one trade in their history instead of whatever history of fills may have occured.

See Also