//get signal when new Deal is added to server public override void OnDealAdd(CIMTDeal ServerDeal) { var actDeal = new clsDealInfo(); actDeal.Profit = ServerDeal.Profit(); actDeal.Volume = ServerDeal.Volume(); actDeal.Symbol = ServerDeal.Symbol(); actDeal.UserLogin = ServerDeal.Login(); actDeal.PositionID = ServerDeal.PositionID(); actDeal.uOpenTime = ServerDeal.Time(); this.ExternalReport(actDeal); }
//call outside function to proced new Deal public void TellOutsideBalance(clsDealInfo SmallDeal) { this.ExternalReport(SmallDeal); }