Example #1
0
 /// <summary>
 ///     Generate the Market Statistics
 /// </summary>
 public static void GenerateMarketStats()
 {
     MarketStatsValue[0]  = Symbol;
     MarketStatsValue[1]  = DataPeriodToString(Period);
     MarketStatsValue[2]  = Bars.ToString(CultureInfo.InvariantCulture);
     MarketStatsValue[3]  = Update.ToString(Df);
     MarketStatsValue[4]  = Update.ToString("HH:mm");
     MarketStatsValue[5]  = Time[0].ToString(Df);
     MarketStatsValue[6]  = Time[0].ToString("HH:mm");
     MarketStatsValue[7]  = MinPrice.ToString(CultureInfo.InvariantCulture);
     MarketStatsValue[8]  = MaxPrice.ToString(CultureInfo.InvariantCulture);
     MarketStatsValue[9]  = AverageGap + " " + Language.T("points");
     MarketStatsValue[10] = MaxGap + " " + Language.T("points");
     MarketStatsValue[11] = AverageHighLow + " " + Language.T("points");
     MarketStatsValue[12] = MaxHighLow + " " + Language.T("points");
     MarketStatsValue[13] = AverageCloseOpen + " " + Language.T("points");
     MarketStatsValue[14] = MaxCloseOpen + " " + Language.T("points");
     MarketStatsValue[15] = DaysOff.ToString(CultureInfo.InvariantCulture);
     MarketStatsValue[16] = Configs.MaxBars.ToString(CultureInfo.InvariantCulture);
     MarketStatsValue[17] = Configs.UseStartTime
                                ? Configs.DataStartTime.ToShortDateString()
                                : Language.T("No limits");
     MarketStatsValue[18] = Configs.UseEndTime
                                ? Configs.DataEndTime.ToShortDateString()
                                : Language.T("No limits");
     MarketStatsValue[19] = Configs.FillInDataGaps ? Language.T("Accomplished") : Language.T("Switched off");
     MarketStatsValue[20] = Configs.CutBadData ? Language.T("Accomplished") : Language.T("Switched off");
 }