protected void OnItemChanged(object sender, EventArgs e)
        {
            StatisticalArbitrageStrategy info = (StatisticalArbitrageStrategy)sender;

            info.Calculate();
            if (ItemChanged != null)
            {
                ItemChanged(this, new DependencyArbitrageInfoChangedEventArgs()
                {
                    Arbitrage = info
                });
            }
        }
 public void Remove(StatisticalArbitrageStrategy info)
 {
     Items.Remove(info);
     info.Changed -= OnItemChanged;
 }
Exemple #3
0
 public DependencyArbitrageHistoryItem(StatisticalArbitrageStrategy owner)
 {
     Owner = owner;
 }
 public void Add(StatisticalArbitrageStrategy info)
 {
     Items.Add(info);
     info.Changed += OnItemChanged;
 }
Exemple #5
0
 public override void Assign(StrategyBase from)
 {
     base.Assign(from);
     StatisticalArbitrageStrategy s = (StatisticalArbitrageStrategy)from;
 }