private TradingBotBase[] GetTradingBots() { var tradingBotInvestor = new TradingBotInvestor(InitMoney, BrokerFee); var tradingBotSimple = new TradingBotSimple(InitMoney, BrokerFee); // var tradingBotClassic = new TradingBotClassic(InitMoney, BrokerFee); var tradingBots = new TradingBotBase[] { tradingBotInvestor, tradingBotSimple }; // , tradingBotClassic }; return(tradingBots); }
private void ShowResult(TradingBotBase tradingBot) { Console.WriteLine(); Console.WriteLine($"TradingBot {tradingBot.GetBotName()}"); Console.WriteLine($"Init money {tradingBot.InitMoney}, money {tradingBot.Money}"); Console.WriteLine($"Balance {tradingBot.Balance}, Total stonks {tradingBot.TotalStonks}, Total {tradingBot.Total}"); Console.WriteLine(tradingBot.Info); //Console.WriteLine($"All buy {tradingBot.InfoBuy}"); //Console.WriteLine($"All sell {tradingBot.InfoSell}"); Console.WriteLine(); foreach (var i in tradingBot.AdditinalInfo) { Console.WriteLine(i); } }