Example #1
0
 public LivePosition(PriceChange pc_, double weight_, double priceConvention_)
 {
   m_wt = weight_;
   m_pc = pc_;
   m_priceConvention = priceConvention_;
   m_pc.PropertyChanged += delegate { calcPnl(); };
   calcPnl();
 }
 public void Dispose()
 {
   subscribeToWrapped(false);
   m_pc = null;
 }
 public PriceChangeOverrideWrapper(PriceChange pc_)
 {
   m_pc = pc_;
   subscribeToWrapped(true);
 }