public bool downloadEMA(string folderPath, string scriptName, bool bIsTestOn, bool bSaveData) { string interval = ddlEMA_Interval.SelectedValue; string period = textboxEMA_Period.Text; string series = ddlEMA_Series.SelectedValue; if (StockApi.getEMAalternate(folderPath, scriptName, day_interval: interval, period: period, seriestype: series, bIsTestModeOn: bIsTestOn, bSaveData: bSaveData, apiKey: Session["ApiKey"].ToString()) == null) { textboxMessage.Text = Environment.NewLine + "EMA data not available for selected script."; return(false); } //if (StockApi.getEMA(folderPath, scriptName, day_interval: interval, period: period, seriestype: series, // bIsTestModeOn: bIsTestOn, bSaveData: bSaveData, apiKey: Session["ApiKey"].ToString()) == null) //{ // textboxMessage.Text = Environment.NewLine + "EMA data not available for selected script."; // return false; //} return(true); }