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)); }
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) }
/// <summary> /// Fired when there is a change in the P&L /// </summary> void instrumentTradeSubscription_ProfitLossChanged(object sender, ProfitLossChangedEventArgs e) { PublishProfitLossStatistics(); }
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(); }