AA: HTML export added that supports FULL COLOR output
\nTo export to HTML just click \"EXPORT\" button in AA window and select \"HTML files\" from \"Files of type\" combo box in file dialog. <\/p>\nYou can also use OLE interface Export method - if EXTENSION provided in the file name is .html then AmiBroker will output HTML file, otherwise it will output CSV (text) file. If you want colorful output in Excel, just EXPORT the file to HTML and load it into Excel (or drag-drop to excel). <\/p>\n
Please note that Excel color palette is limited (not all 16 million colors available in AmiBroker can be represented in Excel).
\nExample colorful test exploration:<\/p>\n
Filter<\/span>=<\/span>1<\/span>; \r
for( <\/span>i <\/span>= <\/span>0<\/span>; <\/span>i <\/span>< <\/span>256<\/span>; <\/span>i <\/span>= <\/span>i <\/span>+ <\/span>16 <\/span>) \r
<\/span>AddColumn<\/span>( <\/span>C<\/span>, <\/span>"C"<\/span>+<\/span>i<\/span>, <\/span>1.2<\/span>, <\/span>colorDefault<\/span>, \r
<\/span>ColorHSB<\/span>( ( <\/span>BarIndex<\/span>() + <\/span>i <\/span>) % <\/span>256<\/span>, <\/span>255<\/span>-<\/span>i<\/span>, <\/span>255 <\/span>) );<\/code><\/pre>\n<\/li>\nList control code reviewed for better 64bit compatibility<\/li>\nList selection is maintained after sorting<\/li>\nMultiple column sort implemented in AA result list (and other list controls as well)\nTo sort by more than one column:
\na) click the FIRST column then
\nb) SHIFT-click second, third, fourth column ... and so on (upto 40 columns can be sorted at once)
\n(to SHIFT-click means to click with left mouse button while having SHIFT key pressed down)
\nc) to change the Asc\/Desc order click on the same column again <\/p>\n
To restart sorting, release SHIFT key and click on column (it will become first). <\/p>\n
Subsequent columns (in the order you have clicked on them) are marked with 1, 2, 3, 4, 5, 6, 7, 8, 9 numbers
\n(if you select more than 10 columns, then all columns above 10th will be marked with '...') <\/li>\n
Backtester: added EarlyExitBars\/EarlyExitFee functionality (not supported by old (v.4.4) backtester)\nEarly exit (redemption) fee is charged when trade is exited during first N bars since entry.
\nThe fee is added to exit commission and you will see it in the commissions reported for example in detailed log. It is also reflected in the portfolio equity (so for first N bars since entry portfolio equity is lower by early exit fee).<\/p>\n
<\/span>\/\/ these two new options can be set on per-symbol basis \r
\/\/ how many bars (trading days) \r
\/\/ an early exit (redemption) fee is applied \r
<\/span>SetOption<\/span>(<\/span>"EarlyExitBars"<\/span>, <\/span>128 <\/span>); \r
<\/span>\/\/ early redemption fee (in percent) \r
<\/span>SetOption<\/span>(<\/span>"EarlyExitFee"<\/span>, <\/span>2 <\/span>);<\/code><\/pre>\n(note 180 calendar days is 128 or 129 trading days)<\/p>\n
<\/span>\/\/ how to set it up on per-symbol basis? \r
\/\/ it is simple - use 'if' statement \r
<\/span>if( <\/span>Name<\/span>() == <\/span>"SYMBOL1" <\/span>) \r
{ \r
<\/span>SetOption<\/span>(<\/span>"EarlyExitBars"<\/span>, <\/span>128 <\/span>); \r
<\/span>SetOption<\/span>(<\/span>"EarlyExitFee"<\/span>, <\/span>2 <\/span>); \r
} \r
\r
if( <\/span>Name<\/span>() == <\/span>"SYMBOL2" <\/span>) \r
{ \r
<\/span>SetOption<\/span>(<\/span>"EarlyExitBars"<\/span>, <\/span>25 <\/span>); \r
<\/span>SetOption<\/span>(<\/span>"EarlyExitFee"<\/span>, <\/span>1 <\/span>); \r
}<\/code><\/pre>\n<\/li>\nAA: \"Scan every\" feature has been renamed to \"Run every\" and allows automatic repeat of scan or exploration (new feaeture) it allows also shorter intervals\nRun every intervals can now be defined in MINUTES (default) or SECONDS.
\nTo enter run-every interval in seconds simply add \"s\" or \"sec\" at the end of interval value, for example:<\/p>\n
10 sec - for run every 10 seconds
\n5 s - for run every 5 seconds
\n13 min - for run every 13 minutes
\n35 m - for run every 35 minutes
\n7 - for run every 7 minutes (if time unit is not specified then by default minutes are used)<\/li>\n
OLE: ExportImage() now supports Width and Height parameters\nExportImage function that now allows to specify width and height. So to export say 640x480 gif image you need to write:<\/p>\n
AB <\/span>= new <\/span>ActiveXObject<\/span>(<\/span>"Broker.Application"<\/span>);\r
<\/span>Win <\/span>= <\/span>AB<\/span>.<\/span>ActiveWindow<\/span>;\r
<\/span>Win<\/span>.<\/span>ExportImage<\/span>( <\/span>"test.gif"<\/span>, <\/span>640<\/span>, <\/span>480 <\/span>);<\/code><\/pre>\nand you will get perfect image with no jagginess or any scaling artifacts.
\nAnd it works independently of your current window size and it does NOT affect your current window size.<\/li>\n
fix: customColor1 can be selected again using color picker <\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"A new beta version (4.78.0) of AmiBroker has just been released. It is available for registered users only from the members area at: http:\/\/www.amibroker.com\/members\/bin\/ab4780beta.exe (File size: 1 098 846 bytes, 1 MB) If you forgot your user name \/ password to the members area you can use automatic reminder service at: http:\/\/www.amibroker.com\/login.html The instructions are […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":0,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}