Monitor

StockSharp.Xaml

The component for trading strategies work monitoring.

Inherits: UserControl

Implements: ILogListener, IAsyncPersistable, IDisposable, IComponentConnector

Constructors

Monitor
public Monitor()
monitor = Monitor()

Initializes a new instance of the Monitor.

Properties

LogControl
public LogControl LogControl { get; }
value = monitor.LogControl

The graphical component for logs displaying.

MaxItemsCount
public int MaxItemsCount { get; set; }
value = monitor.MaxItemsCount
monitor.MaxItemsCount = value

The maximum number of entries to display. The -1 value means an unlimited amount of records. By default, the last 10000 records for 64-bit process and 1000 records for 32-bit process are displayed.

ShowStrategies
public bool ShowStrategies { get; set; }
value = monitor.ShowStrategies
monitor.ShowStrategies = value

To show the 'Strategy' node. Enabled by default.

Methods

Clear
public void Clear()
monitor.Clear()

To delete all messages.

InitializeComponent
public void InitializeComponent()
monitor.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

WriteMessages
public void WriteMessages(IEnumerable<LogMessage> messages)
monitor.WriteMessages(messages)

To record messages.

messages
Debug messages.

Events

LayoutChanged
public event Action LayoutChanged
monitor.LayoutChanged += handler

Layout changed event.

Fields

ClearCommand
public static readonly RoutedCommand ClearCommand
value = Monitor.ClearCommand

Command for clear logs.

MaxItemsCountProperty
public static readonly DependencyProperty MaxItemsCountProperty
value = Monitor.MaxItemsCountProperty

DependencyProperty for MaxItemsCount.

ShowStrategiesProperty
public static readonly DependencyProperty ShowStrategiesProperty
value = Monitor.ShowStrategiesProperty

DependencyProperty for ShowStrategies.