I know it is possible on "label" objects.
You specify the symbol with its hexa character code in the appropriate font.
I suggest you the "Wingdings" fonts (there are "Wingdings 2" and "Wingdings 3" too. But you may need to find/install them before). Wingdings contains lot of symbols.
You specify the symbol with its hexa character code in the appropriate font.
I suggest you the "Wingdings" fonts (there are "Wingdings 2" and "Wingdings 3" too. But you may need to find/install them before). Wingdings contains lot of symbols.
// Some symbols from the "Wingdings" font (hexa character code); string _SYMB_FLAG = "\x50"; string _SYMB_BOMB = "\x4D"; string _SYMB_DING_DONG = "\x25"; void displaySymbols() { string strSymbols = StringConcatenate(_SYMB_FLAG,_SYMB_BOMB,_SYMB_DING_DONG); symbolObj = ObjectCreate( "SYMBOL_OBJ", OBJ_LABEL, ... ); ObjectSetText( symbolObj, strSymbols, 18, "Wingdings", Black ); ... }
string _SYMB_FLAG = "\x50";
So thats how to enter in hex (and perhaps unicode too).
THanks!
You can use the \x escape code together with the unicode number. Usually, you will see it shown as \u escape code, but mql is special (!). They use \x. For instance, Degree Fahrenheit is \x2109. Here is a handy table: https://www.rapidtables.com/code/text/unicode-characters.html
Unicode characters table
- www.rapidtables.com
Unicode character symbols table with escape sequences & HTML codes.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
ie,
on Comment, Print as well as on Labels/Text.
Is that possible? if so, how?