automatic rename vertical line

 

hi

i have a code for indicator that do some calculation starting from a date(pointtme) that i enter,

the setting window for the indicator is

#property indicator_chart_window
extern string VLineName="   ";
extern datetime  PointTime=D'2009.09.07 00:00';
extern int Multiplyer = 00.2220;
extern color LineColor=Red; 
extern int LineStyle=STYLE_DASH;

now when the indicator work it will draw a vertical line in futur date .

ObjectCreate(VLineName, OBJ_VLINE,0,y,y,y,y); 
       ObjectSet(VLineName, OBJPROP_STYLE, LineStyle);
      ObjectSet(VLineName, OBJPROP_COLOR, LineColor);

am looking for a method to set the VLineName to be both PointTime and Multiplyer (2009.09.07 00:00 - 00.2220) automatically instead of enter it manually every time

any help plz

 
any suggestion plz?
 
extern double Multiplyer = 00.2220; // double not an int
string VLineName = TimeToStr(PointTime) + " - 0" + DoubleToStr(Multiplyer,4);
 
qjol:


hi qjol

thanks for ur help ...ur code is what i was looking for ....it's work very good with my code

thanks again

Reason: