ChartPanelOrderSettings

StockSharp.Xaml.Charting

Cross-platform defaults used to create orders from a chart.

Inherits: NotifiableObject

Implements: IAsyncPersistable

Properties

Portfolio
public Portfolio Portfolio { get; set; }
value = chartPanelOrderSettings.Portfolio
chartPanelOrderSettings.Portfolio = value

The default portfolio.

Security
public Security Security { get; set; }
value = chartPanelOrderSettings.Security
chartPanelOrderSettings.Security = value

The security used when the selected chart area does not identify one.

Volume
public decimal Volume { get; set; }
value = chartPanelOrderSettings.Volume
chartPanelOrderSettings.Volume = value

The default order volume.

Methods

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartPanelOrderSettings.LoadAsync(storage, cancellationToken)

Asynchronously loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
cancellationToken
A token to monitor for cancellation requests.

Returns: A task that represents the asynchronous load operation.

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartPanelOrderSettings.SaveAsync(storage, cancellationToken)

Asynchronously saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
cancellationToken
A token to monitor for cancellation requests.

Returns: A task that represents the asynchronous save operation.