Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
Mehrdad Shiri
4450
Mehrdad Shiri 2014.05.18 12:25 

HI

i wrote this code,

void objectCre(string name, int xd, int yd, string text = "-", int fontsize = 42, string font = "Arial", color clr = clrDarkGray)
    {
     int window = ChartWindowOnDropped();
      
     ObjectCreate(0,name, OBJ_LABEL,window, 0,0);
     ObjectSetString(0,name,OBJPROP_TEXT,text);
     ObjectSetInteger(0,name,OBJPROP_COLOR,clr);
     ObjectSetString(0,name,OBJPROP_FONT,font);
     ObjectSetInteger(0,name, OBJPROP_XDISTANCE, xd);
     ObjectSetInteger(0,name, OBJPROP_YDISTANCE, yd);
     
     ObjectSetInteger(0,name, OBJPROP_FONTSIZE , fontsize);
    }

and you can see it in below pic.

 a single red in " yellow zone"


the another code " in blue zone" ( and it is free from market , has ability to move it by mouse on chart ).

what function i must use ; such as the other one i can move it from chart

thanks in advance.

Alain Verleyen
Moderator
30299
Alain Verleyen 2014.05.18 13:17  
TIMisthebest:

HI

i wrote this code,

and you can see it in below pic.

 a single red in " yellow zone"


the another code " in blue zone" ( and it is free from market , has ability to move it by mouse on chart ).

what function i must use ; such as the other one i can move it from chart

thanks in advance.

You have to play with object properties and chart events.
Alexander Piechotta
6933
Alexander Piechotta 2014.05.20 16:10  

Unfortunately I no longer have the source code. (FX Currencies Power Meter 1.0)

I have used a OBJ_BITMAP . look video.

This OBJ_BITMAP and all objects programmed using the CWndContainer.


Mehrdad Shiri
4450
Mehrdad Shiri 2014.05.20 16:21  
FinGeR:

Unfortunately I no longer have the source code. (FX Currencies Power Meter 1.0)

I have used a OBJ_BITMAP . look video.

This OBJ_BITMAP and all objects programmed using the CWndContainer.

 

thank you to reply.
/
To add comments, please log in or register