Esempio n. 1
0
        private void populateSymbols()
        {
            //????????????????????? 225
            //tableLayoutPanel1.RowStyles.RemoveAt(0);

            addSymbolLabelRow(creatSymbolLabel("Majors", Color.White, Color.Red));
            createSymbolRows(symbolsManager.GetForexPairs(ForexTypes.major));
            addSymbolLabelRow(creatSymbolLabel("Minors", Color.White, Color.Red));
            createSymbolRows(symbolsManager.GetForexPairs(ForexTypes.minor));
        }
Esempio n. 2
0
        public NewChartDialog()
        {
            InitializeComponent();

            comboBox_timeFrame.Items.AddRange(Enum.GetNames(typeof(TimeFrame)));
            comboBox_timeFrame.SelectedIndex = 5;

            var sm = new InstrumentsManager();

            comboBox_symbols.Items.Add("Major Pairs");
            comboBox_symbols.Items.AddRange(sm.GetForexPairs(ForexTypes.major).ToArray());
            comboBox_symbols.Items.Add("Minor Pairs");
            comboBox_symbols.Items.AddRange(sm.GetForexPairs(ForexTypes.minor).ToArray());
            comboBox_symbols.SelectedIndex = 1;

            dateTimePicker_from.Value = dateTimePicker_to.Value.Date.AddDays(-4);
        }
Esempio n. 3
0
        public void GetForexPairs__get_major_pairs()
        {
            InstrumentsManager im = new InstrumentsManager();

            IEnumerable <string> majorList = im.GetForexPairs(ForexTypes.major);

            Assert.AreEqual(7, majorList.Count());
        }