Пример #1
0
        void EnterTrade()
        {
            if (TradeInstrument != null)
            {
                if (BuySell == zBuySell.Buy)
                {
                    execution.Buy(TradeInstrument, RealQuantity, this.Name);
                }
                else
                {
                    execution.Sell(TradeInstrument, RealQuantity, this.Name);
                }
            }

            if (Metrics != null)
            {
                UpdateTradeCycle(TradeCycleUpdateType.TRADE_ENTERED);
            }

            Notify(NotificationType.ENTER_TRADE, "Entered trade.");
        }