def __get_value_list_for_x_variable_options__(chart_type: str, predictor: str): if chart_type == CHT.PREDICTOR: if predictor == PRED.FOR_TRADE: return TradeTable.get_feature_columns_for_trades_statistics() elif chart_type == CHT.MY_TRADES: return [DC.PATTERN_RANGE_BEGIN_DT] return TradeTable.get_columns_for_statistics_x_variable()
def __get_drop_down_value_dict__(self) -> dict: return { DDT.CHART_TYPE: CHT.get_chart_types_for_trade_statistics(), DDT.PREDICTOR: PRED.get_for_trade_all(), DDT.CATEGORY: TradeTable.get_columns_for_statistics_category(), DDT.X_VARIABLE: TradeTable.get_columns_for_statistics_x_variable(), DDT.Y_VARIABLE: TradeTable.get_columns_for_statistics_y_variable(), DDT.CHART_TEXT_VARIABLE: TradeTable.get_columns_for_statistics_text_variable(), DDT.PATTERN_TYPE: FT.get_all_for_statistics() }