Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
Syntax
| C# |
|---|
void SetAccountState( BrokerAccountState state ) |
| Visual Basic (Declaration) |
|---|
Sub SetAccountState ( _ state As BrokerAccountState _ ) |
| Visual C++ |
|---|
void SetAccountState( BrokerAccountState^ state ) |
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.