Creating an indicator do display a watermark-kind of text
- You need to get the size of the text and adjust from there.
Object Functions / TextGetSize - Reference on algorithmic/automated trading language for MetaTrader 5 - The attached indicator just externs RGB values, giving any color and any opacity.
Files:
watermark.mq4
6 kb
William Roeder:
- You need to get the size of the text and adjust from there.
Object Functions / TextGetSize - Reference on algorithmic/automated trading language for MetaTrader 5 - The attached indicator just externs RGB values, giving any color and any opacity.
Thanks for the textgetsize function!
Regarding the indicator, I only work with MT5, so I don't even know how could I use it :/
Hi,
I'm trying to create an indicator what will display some text in a watermark style: centered and with size and opacity configurable.
I don't have much experience with objects in MT5; the only text kind of thing I did was with OBJ_LABEL, but I'm not sure this is the proper way to go this time; there doesn't seem to be any way of changing its opacity.
As for now, what I have is
From this point, what is lacking is:
Any help appreciated!