A cash value used to calculate order size of strategy entry orders. Order size is dynamically calculated based on this property only when setting the "New Strategy" dialog window during backtest or on a real-time chart "Set order quantity" property to "by account size".
|•||Equities - Order share size is calculated based on AccountSize / Current Close Price |
|•||Futures and Forex - Order contract/lot size is calculated based on AccountSize / Margin Requirement (margin set per instrument in the Instrument Manager) |
Note: This property does not update dynamically for access to updated account size values. It is dynamic for order sizing only. Should you want a dynamically updating account size you will need to track this with your own variables.
An int value representing the account size.
protected override void Initialize()
AccountSize = 10000;