OnAccountItemUpdate()
<< Click to Display Table of Contents >> OnAccountItemUpdate() |
An event driven method used for strategies which is called for each AccountItem update for the account on which the strategy is running.
Note: 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. |
This method does not return a value.
account |
The Account updated |
accountItem |
The AccountItem updated |
value |
The value of the AccountItem updated |
protected override void OnAccountItemUpdate(Account account, AccountItem accountItem, double value) |