StrategiesStatisticsPanel
StockSharp.Xaml
The visual panel to display parameters IStatisticParameter of several strategies.
Inherits: UserControl
Implements: IComponentConnector
Constructors
StrategiesStatisticsPanel
public StrategiesStatisticsPanel()
strategiesStatisticsPanel = StrategiesStatisticsPanel()
Initializes a new instance of the StrategiesStatisticsPanel.
Properties
MaxCountPnLChart
public int MaxCountPnLChart { get; set; }
value = strategiesStatisticsPanel.MaxCountPnLChart
strategiesStatisticsPanel.MaxCountPnLChart = value
Max possible items.
SelectedStrategies
public IEnumerable<Strategy> SelectedStrategies { get; }
value = strategiesStatisticsPanel.SelectedStrategies
Selected strategies.
SelectedStrategy
public Strategy SelectedStrategy { get; }
value = strategiesStatisticsPanel.SelectedStrategy
Selected strategy.
ShowPnLChart
public bool ShowPnLChart { get; set; }
value = strategiesStatisticsPanel.ShowPnLChart
strategiesStatisticsPanel.ShowPnLChart = value
To show the P&L chart column.
ShowProgress
public bool ShowProgress { get; set; }
value = strategiesStatisticsPanel.ShowProgress
strategiesStatisticsPanel.ShowProgress = value
To show the Test Progress column.
ShowSecurity
public bool ShowSecurity { get; set; }
value = strategiesStatisticsPanel.ShowSecurity
strategiesStatisticsPanel.ShowSecurity = value
To show the Security column.
ShowStrategyName
public bool ShowStrategyName { get; set; }
value = strategiesStatisticsPanel.ShowStrategyName
strategiesStatisticsPanel.ShowStrategyName = value
To show the Name Strategy column.
UnderlyingGrid
public BaseGridControl UnderlyingGrid { get; }
value = strategiesStatisticsPanel.UnderlyingGrid
The grid control.
Methods
AddStrategy
public void AddStrategy(Strategy strategy)
strategiesStatisticsPanel.AddStrategy(strategy)
To add strategy to the table.
- strategy
- Strategy.
CreateColumns
public void CreateColumns(Strategy strategy)
strategiesStatisticsPanel.CreateColumns(strategy)
Create columns.
- strategy
- Strategy.
InitializeComponent
public void InitializeComponent()
strategiesStatisticsPanel.InitializeComponent()
InitializeComponent
SetColumnVisibility
public void SetColumnVisibility(string parameterId, Visibility visibility)
strategiesStatisticsPanel.SetColumnVisibility(parameterId, visibility)
To set the visibility for a column of the table.
- parameterId
- Id.
- visibility
- The visibility.
UpdateProgress
public void UpdateProgress(Strategy strategy, int progress)
strategiesStatisticsPanel.UpdateProgress(strategy, progress)
To update the progress for the strategy.
- strategy
- Strategy.
- progress
- Progress.
Events
SelectionChanged
public event Action SelectionChanged
strategiesStatisticsPanel.SelectionChanged += handler
The selected strategies change event.
StrategyDoubleClick
public event Action<Strategy> StrategyDoubleClick
strategiesStatisticsPanel.StrategyDoubleClick += handler
The strategy double click event.