“Running OLE automation scripts with 32- and 64-bit versions of AmiBroker”<\/a><\/p>Using the very same method you can delete quotes selectively, for example the script below deletes only quotes having zero volume:<\/p>
\/\/ THIS IS NOT AFL\r\/\/ This is Windows script to be run from the outside of AmiBroker\rfunction RemoveQuotesWithZeroVolume( Name )\r{\r AB = new ActiveXObject(\"Broker.Application\");\r Stk = AB.Stocks( Name );\r Quotes = Stk.Quotations;\r iQty = Quotes.Count;\r cnt = 0;\r for( i = iQty - 1; i >= 0; i-- )\r {\r qt = Quotes.Item( i );\r if( qt.Volume == 0 ) \r { \r cnt++;\r Quotes.Remove( i );\r }\r }\r \r AB.RefreshAll();\r\r return cnt;\r}\rn = RemoveQuotesWithZeroVolume(\"MSFT\");\rWScript.Echo ( \"Removed \" + n + \" quotes with zero volume\" );\r<\/pre>","protected":false},"excerpt":{"rendered":"In order to delete quotations from a local database manually, we can use Quotations Editor (Symbol–>Quote Editor), then mark the required range of quotes and press Delete button. To mark a range – it is enough to click on the first line of the range, then scroll to the other line, hold SHIFT and click […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1037"}],"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=1037"}],"version-history":[{"count":2,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1037\/revisions"}],"predecessor-version":[{"id":1044,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/1037\/revisions\/1044"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=1037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=1037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}