SetAccountState is used to synchronize RightEdge with the broker where the AccountValue, margin, cash, buying power, etc are values you provide to RightEdge. Are you saying that your broker does not give you this information? If that's the case, the only thing I can think of is making it a broker setting and having the user input that information. Not really a great a solution, but I'm not sure how else to handle it if the broker doesn't provide via their API.
Two questions wrapping up a custom broker interface and since it the first one I've completed I'm stumbling on two issues.
1. Account details such as account value, equity, etc aren't being set from brokerage even though I'm implementing the following methods.
GetShortedCash() GetBuyingPower() GetMargin() and SetAccountState() with brokeroverride set to true... after values are set I'm still getting the RE configuration for the account value from the system data (SystemData.AccountValue). Obviously I'm missing something here but not sure where.