def get_div_for_tab(self): children_list = [ MyHTMLTabTradeHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(TDD.TRADE_TYPE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(TDD.BUY_TRIGGER)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( TDD.TRADE_STRATEGY)), # MyHTML.div_with_html_button_submit('my_trades_cancel_trade_button', 'Cancel Trade'), MyHTML.div_with_button( **self._button_handler.get_button_parameters(TBTN.CANCEL_TRADE) ), MyHTML.div_with_button(**self._button_handler. get_button_parameters(TBTN.RESTART_REPlAY)), MyHTML.div_with_button( **self._button_handler.get_button_parameters( TBTN.RESET_TRADE_SELECTION)), # MyHTML.div_with_html_button_submit('my_replay_restart_button', 'Restart Trade'), MyHTML.div_with_slider('my_replay_speed_slider', 0, 20, 1, self._replay_speed, show=False), MyHTML.div_with_table('my_trade_table_div', self.__get_table_for_trades__()), MyHTML.div('my_graph_trade_replay_div', '', False) ] # scatter_graph = self.__get_scatter_graph_for_trades__('trade_scatter_graph') return MyHTML.div('my_trades', children_list)
def get_div_for_tab(self): children_list = [ MyHTMLTabRecommenderHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(REDD.INDEX)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( REDD.PERIOD_AGGREGATION, default_value=self.sys_config.period_aggregation)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( REDD.REFRESH_INTERVAL)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( REDD.SECOND_GRAPH_RANGE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(REDD.SCORING)), MyHTML.div_with_html_button_submit('my_recommender_refresh_button', 'Refresh', hidden=''), MyHTML.div_with_html_button_submit( 'my_recommender_active_manage_button', self.__get_position_manage_button_text__()), MyHTML.div_with_table(self._data_table_div, self.__get_table_for_recommender__()), MyHTML.div('my_graph_recommender_position_div'), MyHTML.div('my_graph_recommender_position_second_div') ] return MyHTML.div('my_recommender_div', children_list)
def get_div_for_tab(self): children_list = [ MyHTMLTabPortfolioHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( PODD.PERIOD_AGGREGATION, default_value=self.sys_config.period_aggregation)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( PODD.REFRESH_INTERVAL, default_value=900)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( PODD.SECOND_GRAPH_RANGE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(PODD.INDICATOR)), MyHTML.div_with_button( **self._button_handler.get_button_parameters( PFBTN.RESET_PORTFOLIO_SELECTION)), MyHTML.div_with_html_button_submit('my_portfolio_refresh_button', 'Refresh'), MyHTML.div_with_html_button_submit( 'my_portfolio_active_manage_button', self.__get_position_manage_button_text__()), MyHTML.div_with_table(self._data_table_div, self.__get_table_for_portfolio__()), MyHTML.div('my_graph_portfolio_position_div'), MyHTML.div('my_graph_portfolio_position_second_div') ] return MyHTML.div('my_portfolio_div', children_list)
def get_div_for_tab(self): children_list = [ MyHTML.div_with_html_button_submit('my_switch_trading_mode_button', self.__get_switch_mode_button_text__(), hidden=''), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(CDD.ORDER_MAXIMUM)), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(CDD.SOUND_MACHINE)), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(CDD.SMALL_PROFIT)), MyHTML.div_with_html_button_submit('my_reset_total_result_button', self.__get_reset_total_result_button_text__(), hidden=''), self.get_div_for_tables() ] return MyHTML.div('my_configuration_div', children_list)
def get_div_for_tab(self): children_list = [ self.__get_html_tab_header_table__(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.CHART_TYPE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.CATEGORY)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.PREDICTOR)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.X_VARIABLE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.Y_VARIABLE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( DDT.CHART_TEXT_VARIABLE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.MODEL_TYPE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DDT.PATTERN_TYPE)), MyHTML.div(self._my_statistics_chart_div, self.__get_charts_from_plotter__(), False), ] # print('self._my_statistics_chart_div={}'.format(self._my_statistics_chart_div)) return MyHTML.div(self._my_statistics, children_list)
def get_div_for_tab(self): children_list = [ MyHTMLTabLogHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( LOGDD.LOG_TYPE, default_value=self._selected_log_type)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(LOGDD.PROCESS)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( LOGDD.PROCESS_STEP)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(LOGDD.DATE_RANGE)), MyHTML.div(self._data_table_div, self.__get_table_for_log__(), False), MyDCC.markdown(self._my_log_entry_markdown) ] return MyHTML.div('my_log_div', children_list)
def get_div_for_tab(self): # print('MyHTMLHeaderTable.get_table={}'.format(MyHTMLHeaderTable().get_table())) li = [MyHTMLTabPatternHeaderTable().get_table()] li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.INDEX))), li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.STOCK_SYMBOL))) li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters( PDD.PERIOD_AGGREGATION, default_value=self.sys_config.period_aggregation))) li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.REFRESH_INTERVAL))) li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.SECOND_GRAPH_RANGE))) if self.sys_config.from_db: li.append(self.__get_html_div_with_date_picker_range__()) li.append(MyHTML.div_with_html_button_submit('my_refresh_button', 'Refresh')) li.append(MyHTML.div('my_graph_first_div')) li.append(MyHTML.div('my_graph_second_div')) li.append(MyHTML.div('my_graphs_before_breakout_div')) # li.append(MyHTML.div_embedded('my_graphs_before_breakout_div')) li.append(MyHTML.div_with_html_pre('my_hover_data')) return MyHTML.div('', li)
def _init_cells_for_search_by_database_entries__(self): input_label_div = MyHTML.div(self.my_search_db_label_div, 'Search by database:', True) drop_down = MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(SRDD.SEARCH_DATABASE)), button_search = MyHTML.div_with_html_button_submit( self.my_search_db_button, 'Search', hidden='') self.set_value(2, 1, input_label_div) self.set_value(2, 2, drop_down) self.set_value(2, 3, button_search)
def get_div_for_tab(self): children_list = [ MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( DBDD.TABLE, default_value=self._selected_table_name)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DBDD.LIMIT)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(DBDD.DATE_RANGE)), MyHTML.span('', margin_left=10), MyHTML.div_with_input(element_id=self._my_db_where_clause_input, placeholder='Please enter where clause...', size=500, height=27), MyHTML.div(element_id=self._my_db_query), MyHTML.div_with_table(self._data_table_div, self.__get_table_for_db__()), MyDCC.markdown(self._my_db_entry_markdown) ] return MyHTML.div('my_db_div', children_list)
def get_div_for_tab(self): children_list = [ self._header_table.get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_SOURCE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_REGION)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_CATEGORY)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_SUB_CATEGORY)), MyHTML.div_with_html_button_submit( self._elements.my_search_refresh_button, children='Refresh', hidden=''), MyHTML.div_with_html_element( self._elements.my_search_online_input_table, self._search_online_input_table.get_table()), MyDCC.markdown(self._elements.my_search_input_markdown), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_ENTITIES)), MyHTML.div_with_button_link( self._elements.my_search_result_entry_link, href='', title='', hidden='hidden'), MyDCC.markdown(self._elements.my_search_test_markdown), MyHTML.div_with_table( self._elements.my_search_result_grid_table_div, ''), MyDCC.markdown(self._elements.my_search_result_entry_markdown), MyHTML.div(self._elements.my_search_result_graph_div, '', False), ] return MyHTML.div(self._elements.my_search_div, children_list)
def get_div_for_tab(self): children_list = [ self._header_table.get_table(), MyHTML.div_with_input(element_id=self._my_sales_filter_input, placeholder='Please enter filter for my sales...', size=500, height=27), MyHTML.div_with_button_link(self._my_sales_link, href='', title='', hidden='hidden'), MyHTML.div_with_html_button_submit(self._my_sales_show_detail_button, children='Details', hidden='hidden'), MyHTML.div_with_html_button_submit(self._my_sales_reset_button, children='Reset', hidden='hidden'), MyHTML.div_with_table(self._data_table_div, self.__get_sale_grid_table__()), MyDCC.markdown(self._my_sales_sale_entry_markdown), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(SLDD.SALE_ENTITIES)), MyHTML.div(self._my_sales_regression_chart, self.__get_sales_regression_chart__(), inline=False), MyHTML.div_with_button_link(self._my_sales_similar_sale_link, href='', title='', hidden='hidden'), MyHTML.div_with_table(self._my_sales_similar_sale_grid_table_div, self.__get_similar_sale_grid_table__('')), MyDCC.markdown(self._my_sales_similar_sale_entry_markdown), ] return MyHTML.div(self._my_sales_div, children_list)