Esempio n. 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public BackTestOrderExecutionProvider(ComponentId sourceId)
        {
            _sourceId = sourceId;
            _sourceId.IdentifiedComponentType = typeof(BackTestOrderExecutionProvider);

            _account = new BackTestAccount(new AccountInfo(Guid.NewGuid(), _runningAccountBalance, 0,
                                                           string.Empty, new Symbol("USD"), _runningAccountBalance, _runningAccountBalance, 100, _runningAccountBalance, "Simulation Account", string.Empty, 0, string.Empty));

            ChangeOperationalState(OperationalStateEnum.Constructed);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public BackTestOrderExecutionProvider(ComponentId sourceId)
        {
            _sourceId = sourceId;
            _sourceId.IdentifiedComponentType = typeof(BackTestOrderExecutionProvider);

            _account = new BackTestAccount(new AccountInfo(Guid.NewGuid(), _runningAccountBalance, 0,
                string.Empty, new Symbol("USD"), _runningAccountBalance, _runningAccountBalance, 100, _runningAccountBalance, "Simulation Account", string.Empty, 0, string.Empty));

            ChangeOperationalState(OperationalStateEnum.Constructed);
        }