private string GetPositionProfitString(int bar) { Transaction trans = StatsBuffer.SummaryTrans(bar); if (trans == Transaction.Close || trans == Transaction.Reduce || trans == Transaction.Reverse) { return(Configs.AccountInMoney ? StatsBuffer.MoneyProfitLoss(bar).ToString("F2") : StatsBuffer.ProfitLoss(bar).ToString(CultureInfo.InvariantCulture)); } return("-"); }