コード例 #1
0
 public Backtest(DataFrameFile dfFile, float openBuy = float.NaN, float openSell = float.NaN, float closeBuy = float.NaN, float closeSell = float.NaN)
 {
     m_dfFile    = dfFile;
     m_openBuy   = openBuy;
     m_openSell  = openSell;
     m_closeBuy  = closeBuy;
     m_closeSell = closeSell;
 }
コード例 #2
0
        private void Reload()
        {
            ClearSelectedColumns();                                 // Clear the selected columns when we reload....may want to do this or may not?
            var v1 = m_dateRangeV1;
            var v2 = m_dateRangeV2;

            m_dfFile = new DataFrameFile(m_dfFile.Pathname);
            LoadDataFrameFile(m_dfFile, v1, v2);
        }
コード例 #3
0
 public void LoadDataFrameFile(DataFrameFile dfFile, int v1, int v2)
 {
     m_dfFile = dfFile;
     m_dataframeGrid.InitializeColumns(m_dfFile.Columns, DEFAULT_BACKGROUND_COLOR);
     LoadDateRange(v1, v2);
     UpdateRowCount();
     m_dataframeGrid.ScrollToTop();
     //m_grid.ScrollToBottom();
     this.Text = m_dfFile.Filename;
 }
コード例 #4
0
        private void DataFrameFileSelected(string filename)
        {
            status("Reading DataFrame: " + filename + " ...");
            StartStatusTimer();

            string dataFolder = m_dataFrameFilesPanel.SelectedPath;

            m_dfFile = new DataFrameFile(Path.Combine(dataFolder, filename));

            lblFirstDate.Text = m_dfFile.FirstIndexString;
            lblLastDate.Text  = m_dfFile.LastIndexString;

            ResetTrackBars(true);

            dataFrameForm.ShowInFront();
            dataFrameForm.LoadDataFrameFile(m_dfFile, trackBarDate1.Value, trackBarDate2.Value);

            StopStatusTimer();
            status("Reading DataFrame: " + filename + " ... Done.");
        }