Bitmap to display Text on the chart

 

Hello,

I already know how to use the OBJ_TEXT type, but I have seen some nice looking bitmaps able to display text or other images on the chart. However, I can't find a good way to do it no matter how hard I try.

I have tested some bitmap examples I found on MQL, but I did not achieved what I wanted.

Does anyone know how to use bitmaps to create this type of texts?

Basically, something simple like ARROW_LEFT_PRICE, but with Bitmaps so I can decide whatever text I want there? 

Thank you!

 
Hola, estas posteando en el foro  version "español" y es medianamente comprensible que solicitemos que sus aportes, preguntas y demás, lo hagas en español
Si quieres plantear tu problema aun en ingles, diríjase a esta direccion https://www.mql5.com/en/forum

por cierto, aquí hay un tema que explica algo, quizás te sirva: https://www.mql5.com/en/forum/157832

Saludos!!
MQL5 forum
MQL5 forum
  • www.mql5.com
MQL5: Forum on automated trading systems and strategy testing
 
Alexandra Sivill Muedra:

Hello,

I already know how to use the OBJ_TEXT type, but I have seen some nice looking bitmaps able to display text or other images on the chart. However, I can't find a good way to do it no matter how hard I try.

I have tested some bitmap examples I found on MQL, but I did not achieved what I wanted.

Does anyone know how to use bitmaps to create this type of texts?

Basically, something simple like ARROW_LEFT_PRICE, but with Bitmaps so I can decide whatever text I want there? 

Thank you!

hi alexandra, i also looking at some EA that print profit (ie. $10.12) beside the bar.

at first i thought it was OBJ_TEXT with BGCOLOR,

but After inspect it used OBJ_BITMAP, and i try to move it around, it moves as one-object

https://prnt.sc/iOWOvSdBJnfz


i try OBJ_TEXT but cannot have solid background

the best i can achieve is using two object:

- OBJ_TEXT on top to print the profit

- OBJ_BITMAP on background to print the solid color label


but i wonder how the EA i see can use one object OBJ_BITMAP to achieve it

anyone know how its done ?

Screenshot
Screenshot
  • prnt.sc
Captured with Lightshot