FastQuant.SellSideInstrumentStrategy.CreateChildSellSideInstrumentStrategy C# (CSharp) Method

CreateChildSellSideInstrumentStrategy() private method

private CreateChildSellSideInstrumentStrategy ( Instrument instrument, bool bool_4, bool bool_5 ) : SellSideInstrumentStrategy
instrument Instrument
bool_4 bool
bool_5 bool
return SellSideInstrumentStrategy
        private SellSideInstrumentStrategy CreateChildSellSideInstrumentStrategy(Instrument instrument, bool bool_4, bool bool_5)
        {
            var name = $"{Name}({instrument}";
            var strategy = (SellSideInstrumentStrategy)Activator.CreateInstance(GetType(), new object[] { this.framework, name });
            strategy.Instrument = instrument;
            if (bool_4)
                strategy.Instruments.Add(instrument);
            strategy.ClientId = ClientId;
            strategy.SetRawDataProvider(DataProvider);
            strategy.SetRawExecutionProvider(ExecutionProvider);
            strategy.raiseEvents = true;
            strategy.IsInstance = true;
            SetSubStrategyParameters(strategy);
            this.method_9(strategy, instrument);
            if (bool_5)
                strategy.OnSubscribe(instrument);
            AddStrategy(strategy, false);
            strategy.OnStrategyInit();
            return strategy;
        }