예제 #1
0
 void its_ProfitLossChanged(object sender, ProfitLossChangedEventArgs e)
 {
     if (e.TradeSubscription.Tag != null)
     {
         TTInstrument tti = e.TradeSubscription.Tag as TTInstrument;
         tti.Profit = e.TradeSubscription.ProfitLoss.AsPrimaryCurrency;
     }
     //Message("PROFIT: " + string.Format("{0}", e.TradeSubscription.ProfitLoss));
 }
예제 #2
0
 void ts_ProfitLossChanged(object sender, ProfitLossChangedEventArgs e)
 {
     ProfitLossValue openPL     = e.TradeSubscription.OpenProfitLoss;
     ProfitLossValue realizedPL = e.TradeSubscription.RealizedProfitLoss;
     ProfitLossValue PL         = e.TradeSubscription.ProfitLoss;
     //ProfitLossStatistics ProfitLossStatistics = e.TradeSubscription.ProfitLossStatistics;
     // NOTE: Only use ProfitLossStatistics for a tradesubscription that deals with one
     // instrument (i.e. InstrumentTradeSubscription or one TradeSubscriptionInstrumentFilter)
 }
예제 #3
0
 /// <summary>
 /// Fired when there is a change in the P&L
 /// </summary>
 void instrumentTradeSubscription_ProfitLossChanged(object sender, ProfitLossChangedEventArgs e)
 {
     PublishProfitLossStatistics();
 }
예제 #4
0
 void its_ProfitLossChanged(object sender, ProfitLossChangedEventArgs e)
 {
     Message("PROFIT: " + string.Format("{0}", e.TradeSubscription.ProfitLoss));
 }
 /// <summary>
 /// Fired when there is a change in the P&L
 /// </summary>
 void instrumentTradeSubscription_ProfitLossChanged(object sender, ProfitLossChangedEventArgs e)
 {
     PublishProfitLossStatistics();
 }