{"id":582,"date":"2014-10-19T16:52:09","date_gmt":"2014-10-19T21:52:09","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=582"},"modified":"2014-12-04T04:32:58","modified_gmt":"2014-12-04T09:32:58","slug":"how-to-customize-list-view-columns","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/10\/19\/how-to-customize-list-view-columns\/","title":{"rendered":"How to customize list-view columns"},"content":{"rendered":"
A list-view is a view that displays a list of scrollable items in a table-like format. List-views are used in Real-Time quote window, Analysis window, Symbol list, etc. The columns in any<\/strong> list-view in AmiBroker can be customized in various ways to better match our needs and display the required statistics and readings the way we find it most useful. For the sake of example let us consider Analysis window result list.<\/p> Many of the customization actions can be performed directly on the column headers. It is possible to re-order the columns by dragging them with mouse cursor:<\/p> <\/p> and their width can be re-sized by dragging the divider lines between columns (double-clicking on that area will auto-resize the columns to match their contents). <\/p> <\/p> Hint:<\/em> You can auto-resize all<\/strong> columns to their content at once by holding down Ctrl<\/strong> key and pressing +<\/strong> (plus sign) key on the numeric keypad<\/strong>.<\/p> For more operations it is possible to use Setup Columns…<\/strong> menu available from the context menu, which displays after right-clicking on the headers.<\/p> <\/p> Setup Columns<\/strong> dialog allows to re-order, hide\/show selected columns. <\/p> <\/p> To hide a column uncheck the box, to show it back again, check the box. To re-arrange columns, select a column and click Move Up<\/strong>\/Move Down<\/strong> buttons.<\/p> It is important to remember that the set of columns will depend on the last run mode, so it will be different for Scan<\/strong>, for the Backtest<\/strong> Trade List, for Summary type of report or Optimization<\/strong>.<\/p> <\/p> Further customization options are available programmatically. Custom Backtest interface allows to add your own metrics to the backtest report (more info: http:\/\/www.amibroker.com\/guide\/a_custommetrics.html<\/a>)<\/p> We can also define in our code where those additional columns are positioned in the report (this includes both custom metrics added to the report or optimized parameter values in the Optimization). By default they would be listed at the very end, but SetOption<\/a>() function allows to set different position, for example:<\/p> A list-view is a view that displays a list of scrollable items in a table-like format. List-views are used in Real-Time quote window, Analysis window, Symbol list, etc. The columns in any list-view in AmiBroker can be customized in various ways to better match our needs and display the required statistics and readings the way […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[57],"tags":[14,24],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/582"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=582"}],"version-history":[{"count":2,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/582\/revisions"}],"predecessor-version":[{"id":589,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/582\/revisions\/589"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}SetOption<\/span>(<\/span>"ExtraColumnsLocation"<\/span>, <\/span>1 <\/span>)<\/code>","protected":false},"excerpt":{"rendered":"