Пример #1
0
        public bool downloadRSI(string folderPath, string scriptName, bool bIsTestOn, bool bSaveData)
        {
            string interval = ddlRSI_Interval.SelectedValue;
            string period   = textboxRSI_Period.Text;
            string series   = ddlRSI_Series.SelectedValue;

            if (StockApi.getRSIalternate(folderPath, scriptName, day_interval: interval, period: period, seriestype: series,
                                         bIsTestModeOn: bIsTestOn, bSaveData: bSaveData, apiKey: Session["ApiKey"].ToString()) == null)
            {
                textboxMessage.Text = Environment.NewLine + "RSI data not available for selected script.";
                return(false);
            }
            //if (StockApi.getRSI(folderPath, scriptName, day_interval: interval, period: period, seriestype: series,
            //                    bIsTestModeOn: bIsTestOn, bSaveData: bSaveData, apiKey: Session["ApiKey"].ToString()) == null)
            //{
            //    textboxMessage.Text = Environment.NewLine + "RSI data not available for selected script.";
            //    return false;
            //}
            return(true);
        }