コード例 #1
0
        public static IAppHost AddCAlgoRedisAccount(this IAppHost app)
        {
            var brokerAccount = new CAlgoRedisBot();

            brokerAccount.Config = new TCAlgoRedisBot
            {
                AccountMode = AccountMode.Demo,
                AccountId   = "3235730",
                BrokerName  = "IC Markets",
            };
            app.Add(brokerAccount);
            return(app);
        }
コード例 #2
0
 public static IAppHost AddBacktest(this IAppHost app, TBacktestAccount config = null)
 {
     app.Add(new BacktestTask(config ?? DefaultConfig));
     return(app);
 }