void SetInstrumentDataStatusBar()
{
string swapUnit = "p";
if (Data.InstrProperties.SwapType == Commission_Type.money)
swapUnit = "m";
else if (Data.InstrProperties.SwapType == Commission_Type.percents)
swapUnit = "%";
string commUnit = "p";
if (Data.InstrProperties.CommissionType == Commission_Type.money)
commUnit = "m";
else if (Data.InstrProperties.CommissionType == Commission_Type.percents)
commUnit = "%";
ToolStripStatusLabelInstrument =
Data.Symbol + " " +
Data.PeriodString + " (" +
Data.InstrProperties.Spread + ", " +
Data.InstrProperties.SwapLong.ToString("F2") + swapUnit + ", " +
Data.InstrProperties.SwapShort.ToString("F2") + swapUnit + ", " +
Data.InstrProperties.Commission.ToString("F2") + commUnit + ", " +
Data.InstrProperties.Slippage + ")" +
(Data.DataCut ? " - " + Language.T("Cut") : "") +
(Configs.FillInDataGaps ? " - " + Language.T("No Gaps") : "") +
(Configs.CheckData ? "" : " - " + Language.T("Unchecked"));
return;
}