Download MetaTrader 5

how can i draw a bitmap label fixed with time?

To add comments, please log in or register
Order a robot or an indicator for MetaTrader. The Freelance service will help you!
xuzhe
100
xuzhe 2014.07.01 05:53 

i want to draw a bitmap label on my chart,but i don't want to refresh the X Y position all the time.

what should i do if i want this bitmap fixed with special time like 2014.7.1 00:00:00

when i move my chart,this bitmap will follow it's own bar,not fixed with the whole window.

 

Thanks a lot. 

Alain Verleyen
Moderator
30727
Alain Verleyen 2014.07.01 12:34  
What about using a bitmap object ?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_BITMAP
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_BITMAP
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_BITMAP - Reference on algorithmic/automated trading language for MetaTrader 5
xuzhe
100
xuzhe 2014.07.01 13:02  
angevoyageur:
What about using a bitmap object ?

yes, i successfully draw a bitmap object on chart fixed with time.

 

the next step,i want to show some text on chart when mouse move on these bitmap object.

 

i can not find any information in reference.

 

Do you have any example code about it?How can i use CBmpButton Class in stander library?it looks like what i need.

 

in the CBmpButton Class, i saw OnMove event handler,do you have any sample code.

CBmpButton class have only a method named Create have only absolute position X,Y,may be not useful.  

To add comments, please log in or register