/// <summary> /// Sets the chart parameters /// </summary> public void InitSlot() { int chartHeight = ClientSize.Height - 2 * (border + space) + 1; int cahartWidth = (int)(1.5 * chartHeight); Micro_Balance_Chart_Image microChart = new Micro_Balance_Chart_Image(cahartWidth, chartHeight); chart = microChart.Chart; balance = Configs.AccountInMoney ? (int)Math.Round(Backtester.NetMoneyBalance) : Backtester.NetBalance; profitPerDay = Configs.AccountInMoney ? Backtester.MoneyProfitPerDay : Backtester.ProfitPerDay; drawdown = Configs.AccountInMoney ? (int)Math.Round(Backtester.MaxMoneyDrawdown) : Backtester.MaxDrawdown; winLoss = Backtester.WinLossRatio; }