/// <summary> /// Sets the chart parameters /// </summary> public void InitSlot() { int chartHeight = ClientSize.Height - 2*(Border + Space) + 1; var cahartWidth = (int) (1.5*chartHeight); var microChart = new MicroBalanceChartImage(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; }
/// <summary> /// Sets the chart parameters /// </summary> public void InitSlot() { int chartHeight = ClientSize.Height - 2 * (Border + Space) + 1; var cahartWidth = (int)(1.5 * chartHeight); var microChart = new MicroBalanceChartImage(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; }