{"id":1392,"date":"2007-11-05T04:02:27","date_gmt":"2007-11-05T04:02:27","guid":{"rendered":"http:\/\/www.amibroker.org\/userkb\/2007\/11\/05\/abbreviated-identifiers-v2\/"},"modified":"2007-11-05T11:40:32","modified_gmt":"2007-11-05T11:40:32","slug":"abbreviated-identifiers-v2","status":"publish","type":"post","link":"http:\/\/www.amibroker.org\/editable_userkb\/2007\/11\/05\/abbreviated-identifiers-v2\/","title":{"rendered":"Abbreviated Identifiers v2"},"content":{"rendered":"
In AFL the identifiers Open<\/em>, High<\/em>, Low<\/em>, Close<\/em>, Volume<\/em>, OpenInt<\/em> and Avg <\/em>are reserved for price field arrays. Of the small number of variables that are reserved the price identifiers are the only ones that can be abbreviated (OHLCVOI can be used instead of the longer form).<\/p>\n They are not case sensitive and when entered into a formula, in the Formula Editor<\/em>, they will default to upper case and bold (as shown in the figure below).<\/p>\n <\/p>\n This is very nice for speeding up formula writing but there is a ‘Catch 22’. <\/p>\n If abbreviated identifiers are used it makes the task of finding and replacing price arrays, using Formula Editor >> Edit >> Replace<\/em> very tedious e.g. if the ‘writer’ wants to replace all “C’s” with a variable = = ParamField, for example, the Replace <\/em>tool will pick up every “C” in the code and ask the user to confirm the replacement.<\/p>\n <\/p>\n Checking Match whole word only<\/strong> in the Text Search Tool <\/em>will change the criteria so that where “C” is part of a word it will be passed over while “C”, on it’s own, will be treated as a word and highlighted in the search report .<\/p>\n <\/p>\n Note: The font format for reserved variables can be customized in Tools >> Preferences.<\/em><\/p>\n <\/p>\n A handy tip for searching, with the Text Search Tool,<\/em> is to position the cursor at the top of the code so that the search will begin from there. If the cursor is lower down the code the search will start from there and it will only traverse to the end before reporting that the search is complete.<\/p>\n","protected":false},"excerpt":{"rendered":" In AFL the identifiers Open, High, Low, Close, Volume, OpenInt and Avg are reserved for price field arrays. Of the small number of variables that are reserved the price identifiers are the only ones that can be abbreviated (OHLCVOI can be used instead of the longer form). They are not case sensitive and when entered […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[111],"tags":[],"_links":{"self":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/1392"}],"collection":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/comments?post=1392"}],"version-history":[{"count":0,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/1392\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/media?parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/categories?post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/tags?post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}