def clickedS2port(self): st = self.le_st.text() ed = self.le_ed.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() else: s2Port.plotPorts2(st, ed)
def clickedS2ts(self): st = self.le_st.text() ed = self.le_ed.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() else: s2Ts.plotTsS2(st, ed)
def RSIVal(self): tableui.tw_val.setHorizontalHeaderLabels( ['Date', 'Currency Price', 'RSI']) st = self.le_st.text() ed = self.le_ed.text() cur = self.le_currency.text() dp = self.le_dp.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() elif date_value_check.value_check2(dp): al.show() else: tableui.tw_val.setRowCount(0) val = Values.getRSI(st, ed, cur, dp) val.fillna(0, inplace=True) size = val.shape[0] for i in range(size): rowPosition = tableui.tw_val.rowCount() tableui.tw_val.insertRow(rowPosition) tableui.tw_val.setItem(rowPosition, 0, QTableWidgetItem(str(val['Date'][i]))) tableui.tw_val.setItem( rowPosition, 1, QTableWidgetItem(str(val['Currency Price'][i]))) tableui.tw_val.setItem(rowPosition, 2, QTableWidgetItem(str(val['RSI'][i])))
def clickedCcPlot(self): st = self.le_st.text() ed = self.le_ed.text() cur = self.le_currency.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() else: PriceChart.plotPrice(st, ed, cur)
def clickedMaPlot(self): st = self.le_st.text() ed = self.le_ed.text() cur = self.le_currency.text() dp = self.le_dp.text() dp2 = self.le_dp2.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() elif date_value_check.value_check(dp, dp2): al.show() else: MaPlots.smaPlot(st, ed, cur, dp, dp2) # ret returned
def clickedS1port(self): st = self.le_st.text() ed = self.le_ed.text() shortMa = self.dp1.text() longMa = self.dp2.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() elif date_value_check.value_check(shortMa, longMa): al.show() else: s1Port.plotPorts1(st, ed, shortMa, longMa)
def clickedRsiPlot(self): st = self.le_st.text() ed = self.le_ed.text() cur = self.le_currency.text() dp = self.le_dp.text() dp2 = self.le_dp2.text() if date_value_check.date_check(st) or date_value_check.date_check(ed): dtal.show() elif date_value_check.value_check2(dp): al.show() else: Values.plotRSI(st, ed, cur, dp) # ret returned