{"id":817,"date":"2007-08-05T10:43:16","date_gmt":"2007-08-05T10:43:16","guid":{"rendered":"http:\/\/www.amibroker.org\/userkb\/2007\/08\/05\/code-editor-special-characters-demo\/"},"modified":"2007-09-09T22:12:46","modified_gmt":"2007-09-09T22:12:46","slug":"code-editor-special-characters-demo","status":"publish","type":"post","link":"http:\/\/www.amibroker.org\/editable_userkb\/2007\/08\/05\/code-editor-special-characters-demo\/","title":{"rendered":"Code editor special characters demo"},"content":{"rendered":"

I have been asked if it is possible to enter < > = characters in the code editor.
\nOf course it is possible. See this example:<\/p>\n


\nvariable = Close <= 100;\n<\/afl><\/p>\n

See the other, longer code:<\/p>\n


\nfunction MarketFacilitationIndex()
\n{
\n return ( High – Low )\/Volume;
\n}<\/p>\n

mfac = MarketFacilitationIndex();
\nrm = ROC( mfac, 1 );
\nrv = ROC( Volume, 1 );<\/p>\n

Color = IIf( rm > 0 AND rv > 0, colorGreen,
\n\t\t IIf( rm < 0 AND rv < 0, colorBlue,\n\t\t IIf( rm > 0 AND rv < 0, colorGrey40,\n\t\t IIf( rm < 0 AND rv > 0, colorRed, colorLightGrey ) ) ) );<\/p>\n

Plot( mfac, _DEFAULT_NAME(), Color, ParamStyle(“Style”, styleHistogram | styleThick, maskHistogram ) );
\n<\/afl><\/p>\n","protected":false},"excerpt":{"rendered":"

I have been asked if it is possible to enter < > = characters in the code editor. Of course it is possible. See this example: variable = Close 0 AND rv > 0, colorGreen, IIf( rm < 0 AND rv < 0, colorBlue, IIf( rm > 0 AND rv < 0, colorGrey40, IIf( rm […]\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[104],"tags":[],"_links":{"self":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/817"}],"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\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/comments?post=817"}],"version-history":[{"count":0,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/posts\/817\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/media?parent=817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/categories?post=817"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amibroker.org\/editable_userkb\/wp-json\/wp\/v2\/tags?post=817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}