Exemple #1
0
        //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);
        }