Пример #1
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);
        }