Exemple #1
0
        /*****************************************************************************
        *  FUNCTION:       ReadHistoricalData
        *  Description:
        *  Parameters:
        *          pPath -
        *****************************************************************************/
        public Boolean ReadHistoricalData(String pPath)
        {
            Boolean success = true;

            success = Helpers.ValidatePath(pPath);
            if (success)
            {
                HistoricalDataSource = pPath;
                success = ReadHistoricalData();
            }

            return(success);
        }
Exemple #2
0
        /*****************************************************************************
        *  FUNCTION:       SetHistoricalDataPath
        *  Description:
        *  Parameters:
        *          pPath -
        *****************************************************************************/
        public Boolean SetHistoricalDataPath(String pPath)
        {
            Boolean success = true;

            HistoricalDataSource = pPath;
            success = Helpers.ValidatePath(HistoricalDataSource);

            if (success)
            {
                if (HistoricalData == null)
                {
                    HistoricalData = new ExchangeMarket(HistoricalDataSource);
                }
                else
                {
                    HistoricalData.SetCurrentRepoPath(HistoricalDataSource);
                }
            }

            return(success);
        }