Beispiel #1
0
        public void RegisterAll(List <string> instruments, IStrategyRepositoryHelper srep)
        {
            MarketWatch.Register(instruments, IndicatorRepository);
            StrategyRepository.Register(MarketWatch, srep);

            GeneticEnvironment.Register(this);
            PortfolioManager.Register(this);
            MarketMeter.Register(this);
            PositionLogic.Register(this);
            DefaultAccount.Register(MarketWatch);
        }
Beispiel #2
0
        public void Register(CommonContext commonContext, int index)
        {
            tsvrLogic        = new TSVRLogic();
            positionLogic    = new PositionLogic();
            performanceLogic = new PerformanceLogic();
            account          = new Account();
            portfolioManager = new PortfolioManager();

            logicIndex = index;

            tsvrLogic.Register(commonContext, this);
            positionLogic.Register(commonContext, this);
            performanceLogic.Register(commonContext, this);
            portfolioManager.Register(commonContext, this);
        }