OnAccountItemUpdate()
OnAccountItemUpdate()
Definition
An event driven method used for strategies which is called for each AccountItem update for the account on which the strategy is running.
OnAccountItemUpdate() will be called continually in real-time if a position exists on the account on which the strategy is running. This is to provide updates on the current Unrealized Profit and Loss and associated risk values.
Method Return Value
This method does not return a value.
Syntax
You must override the method in your strategy with the following syntax:
protected override void OnAccountItemUpdate(Account account, AccountItem accountItem, double value)

