Ejemplo n.º 1
0
        /// <summary></summary>
        public PerChartSettings FindChartSettings(string symbol_code)
        {
            // If there aren't any for this symbol, create some
            var chart_settings = Settings.Chart.PerChart.FirstOrDefault(x => x.SymbolCode == symbol_code);

            if (chart_settings == null)
            {
                chart_settings = new PerChartSettings {
                    SymbolCode = symbol_code
                };
                Settings.Chart.PerChart = Settings.Chart.PerChart.Concat(chart_settings).ToArray();
            }
            return(chart_settings);
        }
Ejemplo n.º 2
0
        public ChartSettings()
        {
            Style = new ChartControl.RdrOptions();
            Style.AntiAliasing     = false;
            Style.ChartBkColour    = Color.FromArgb(0x00, 0x00, 0x00);
            Style.XAxis.GridColour = Color.FromArgb(0x20, 0x20, 0x20);
            Style.YAxis.GridColour = Color.FromArgb(0x20, 0x20, 0x20);

            ViewCandleCount  = 100;
            ViewCandlesAhead = 20;
            TimeFrameBtns    = new [] { ETimeFrame.Min1, ETimeFrame.Hour1, ETimeFrame.Day1 };

            TradeProfitColour = Color.FromArgb(0xFF, 0xaf, 0xfe, 0xaf);
            TradeLossColour   = Color.FromArgb(0xFF, 0xfe, 0xb4, 0xb4);

            PerChart = new PerChartSettings[0];
        }